mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-15 15:30:29 +02:00
Follows up the command range validation: - Don't require anything of the data commands' sizes or alignment. Version 2 dumps have empty VERTICES and CLUT commands, and old recorders didn't align anything. Registers() drops a trailing partial word instead. - Split register blocks bigger than the list buffer, which they overran. - Clamp MEMCPYDATA and MEMSET to valid memory. Only their start was checked. - Check the compressed sizes against the file, and the decompressed sizes against what the frame declares, before allocating. Some version 5 dumps leave the size out of the zstd frame; those are checked after decompressing. - Don't let a large FRAMEBUF size wrap around in MarkNeededTargets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>