diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-23 12:08:04 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-24 07:49:18 -0500 |
| commit | 0cbc40239bffe3a873ec938047558322f7d67d22 (patch) | |
| tree | 442ef6b70a87e82f137d1678b8e73f3a09fd8966 /runtime/src/main.cpp | |
| parent | 9898deecbb8c6b3202e59c5ae95eb720a350ac22 (diff) | |
world_lights_paths: read pool references through world_index.split_pointer
Meta.ref took the block number from bits 0..11 and refused any value with
bits 12-19 set as a pool reference, so a pointer to block 4,096 or above
fell through to the system-pointer path. Those bits are the high bits of the
20-bit block number. The guard did not screen system pointers either: with
fewer than 4,096 blocks, a value with bits 12-19 set has a 20-bit block number
above the block count, so it still reaches the system-pointer path.
Over levels.rpf (188,449 0x7a resources, 8,576 with lights) the summary is
byte-identical with the old and the new decoder.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions