mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-22 18:37:01 +00:00
91ee8e1c10
Obviously this should be fixed in the decoder itself, but for some reason I couldn't get it to work in a short period of time. (before every offending READ_UINT16(), I had a call to function that was like this: "if ((_srcPtr - _startPtr) >= _packLen) { _srcPtr -= 2; }", note that _srcPtr is the current position in the buffer, _startPos is the starting position of the buffer and _packLen is the (supposed?) size. but I would still get "Invalid Read of 2" with this in Valgrind ..maybe someone knows what I did wrong?) svn-id: r9050