Skip to content

ReadMasterMoleculeList error handling of empty molecule lists #2

@AlistairBoettiger

Description

@AlistairBoettiger

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions