diff options
author | Chloe Marcec <dmarcecguzman@gmail.com> | 2021-02-07 23:52:56 +1100 |
---|---|---|
committer | Chloe Marcec <dmarcecguzman@gmail.com> | 2021-02-07 23:52:56 +1100 |
commit | 9d5a56a40b6f25548ebc364c590ab891c9bbe8ba (patch) | |
tree | 2b65ab7c6470520175317f99a0b93adbcc2cfe97 /src/input_common/sdl/sdl_impl.cpp | |
parent | 4a01812ebe3eb7fa593105cf596690731c70a1a9 (diff) |
lm: Fix ReadLeb128
Fixes assertion on Bloodstained Ritual of the Night.
We would over read sometimes, this is fixed by checking if the top bit is set in the first iteration. We also lock the loop off to be only the max size of the type we can fit. Finally we changed an incorrect print of "DEBUG" to "TRACE" to reflect the proper log severity
Diffstat (limited to 'src/input_common/sdl/sdl_impl.cpp')
0 files changed, 0 insertions, 0 deletions