diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-23 11:20:49 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-24 07:44:02 -0500 |
| commit | 15f30f0a9758848daaf8bd7f923dc8beeaa8050f (patch) | |
| tree | b556f248c2703cf77eaf2ff828af1f2ccce87846 /runtime/opus_decoder/leonida_opus_decoder.h | |
| parent | 21625bca8c675c62f9dbffc318ce6a59d57faf31 (diff) | |
gamedata_blobs: Region 1's lowest cell offset decides where Region 3 starts
parse_spatial_grid_blob found Region 3 as the trailing run of 4-byte-aligned
words below the blob size. When the last word(s) of Region 2 happen to be such
a value, the run took them in, Region 3 started too early and a valid grid was
rejected ("Region 3 start ... does not match lowest cell offset ..." or
"Region 3 offset leaves Region 2 bounds").
docs/gamedata.md (the 0x23c000 row) locates Region 3 as the trailing run
matching min(cell_offs). The run is now only the search range: Region 3 starts
at the lowest start in it where Region 1 (which ends at the lowest Region 3
word) has that start as its lowest cell offset. Blobs main accepted parse the
same; with no agreeing start the old checks still reject the blob.
Tests: cynbun's repro with several colliding last words, a run of three
colliding Region 2 words, truncated blobs, and a skipped first Region 3 word
that has no consistent split. The colliding cases fail on main.
Finding by cynbun in old upstream 7049 (old numbers link nowhere now).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/opus_decoder/leonida_opus_decoder.h')
0 files changed, 0 insertions, 0 deletions