mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-12-06 12:43:35 +01:00
Legacy savestate headers controlled both the compressed input length and the decompression buffer size. The input was read into a fixed-size buffer without validation, and the unsafe LZO API could write past its output buffer. Use the legacy block size as the output capacity, reject oversized compressed blocks, and use the bounds-checking LZO decompressor.