Closed RaulPPelaez closed 1 year ago
When no index files are present, xtc_read_frame tries to read the whole file and then return the selected frame.
The garbage_natoms variable is passed as a null pointer to xtc_read, which then tries to set its value to 0 producing a segfault.
This PR fixes this behavior.
When no index files are present, xtc_read_frame tries to read the whole file and then return the selected frame.
The garbage_natoms variable is passed as a null pointer to xtc_read, which then tries to set its value to 0 producing a segfault.
This PR fixes this behavior.