libAtoms / ExtXYZ.jl

Extended XYZ read/write support for Julia
MIT License
13 stars 6 forks source link

Segfault on empty xyz file #33

Closed mfherbst closed 1 year ago

mfherbst commented 1 year ago

Hi @jameskermode

here is a (somewhat artificial) edge case. The xyz file

0

causes a segfault, although in my perception would be sort of valid.

mfherbst commented 1 year ago

By the way a fully empty file (apart from a few newlines) does not cause a segfault, but also prints a rather cryptic error.