<div dir="ltr">Using libsndfile with a wrapper to PHYSFS, a crash seems to occur as the system tries to do some reading from the beginning.<div>The following is a mini-trace of the steps it took to read the file, and the crash that ensued:</div><div><br></div><div><div>PHYSFS_fileLength()</div><div>PHYSFS_read(1, 12)</div><div>PHYSFS_tell()</div><div>PHYSFS_read(1, 4084)</div><div>PHYSFS_seek(12)</div><div>PHYSFS_tell()</div><div>PHYSFS_read(1, 4084)</div><div><br></div><div>Exception thrown at 0x00007FF6BA1D366F in quetoo.exe: 0xC0000005: Access violation reading location 0x000001E87DCD607C.</div></div><div><br></div><div>Here's an image of the locals at the time of crash: <a href="https://i.imgur.com/SEWoiv7.png">https://i.imgur.com/SEWoiv7.png</a></div><div>(Note that I have modified doBufferedRead slightly to fix my other bug report; "rc < 0" calls have been changed to "rc <= 0" so that it will not crash earlier in the app).</div></div>