If the target molecule list happens to be empty (size 1 byte) for some reason because the file was never fully written or otherwise corrupt, ReadMasterMoleculeList attempts to initialize an array with an impossible number of molecules / fields which will result in a computer crash:
Version para
Contains 1702126957 field
Status: 1702126957
Number of molecules in Frame 0: 543450483
Compact Representation: 1
It would be better to return an error that the file is corrupt, the anticipated number of molecules does not match the file size, or something like that.
If the target molecule list happens to be empty (size 1 byte) for some reason because the file was never fully written or otherwise corrupt,
ReadMasterMoleculeListattempts to initialize an array with an impossible number of molecules / fields which will result in a computer crash:It would be better to return an error that the file is corrupt, the anticipated number of molecules does not match the file size, or something like that.