<div dir="ltr">Hi,<div><br></div><div>I recently noticed a segfault while reading xtc files. The bug was first noticed in MDTraj (which uses the gromacs xtc libraries), and was also confirmed against `gmx check` from gromacs 5.0.1. The original bug report can be found <a href="https://github.com/SimTk/mdtraj/issues/606">on the mdtraj github</a>. This xtc file should be sufficient to reproduce the crash: <a href="http://stanford.edu/~rmcgibbo/files/3064-5-95-58.xtc">http://stanford.edu/~rmcgibbo/files/3064-5-95-58.xtc</a>.</div><div><br></div><div>Attached is a small patch that fixes the issue. The patch is against xdrfile-1.1.4 from <a href="http://www.gromacs.org/Developer_Zone/Programming_Guide/XTC_Library">http://www.gromacs.org/Developer_Zone/Programming_Guide/XTC_Library</a>. The issue stems from a buffer overrun inside xdrfile_decompress_coord_float with certain corrupted files.</div><div><br></div><div>-Robert</div><div><br></div><div><br></div><div><br></div></div>