upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/loader_test.cpp
diff options
context:
space:
mode:
authorcxchhh <35392417+cxchhh@users.noreply.github.com>2026-11-22 06:57:44 +0000
committercxchhh <35392417+cxchhh@users.noreply.github.com>2026-11-22 06:57:44 +0000
commit67f8a5338da0b356b594bfce5abf14f27fea3ca9 (patch)
treef8f4020c1322f1e0b1233f0cda6e55c95f14854b /runtime/test/loader_test.cpp
parenteabcb993a752959305fb48f1c70c0c799f1213bf (diff)
psin_data: reject block tables that run past the region; read 0x62 enums both ways
Review on #1077 (@kapitche): block sizes came straight from the table, so a damaged size made the walker allocate gigabytes. block_table now rejects blocks that end past the first section. Every real container fills the region exactly, so no counts change. The same review asked why 0x62 was read as s32. LENM lists values on both sides of the sign bit for 0x62 enums, so a value now counts as listed under either reading. Unlisted enum values drop from 31,624 to 827; the 30,577 'hash-like' values in story000_script were this. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/loader_test.cpp')
0 files changed, 0 insertions, 0 deletions