Skip to content

MoldescriptorReader misparses a molecule block that declares more atoms than it contains #202

Description

@galjos

A block declaring 3 atoms with only 2 atom lines swallows the next block's header as an atom:

before: [('H2O', 3, ['o', 'h', 'ar']), ('Ar', 0, [])]

A zero-atom residue results, which sends downstream consumers such as xyz2rst into an infinite loop. At end of file the surplus declaration is silently truncated instead.

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