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:
authorSuarezPM <SuarezPM@users.noreply.github.com>2026-11-21 17:31:08 -0300
committerSuarezPM <SuarezPM@users.noreply.github.com>2026-11-21 17:31:08 -0300
commit87989cea5f1080dac729d5407aa3fa19cb3f8fd3 (patch)
tree83f0812413e3315487fccdda5f6e654f12870001 /runtime/test/loader_test.cpp
parentab270f39d6f283975ead43092f0929fe081c2e72 (diff)
Parse RTS0 via DXBC chunk walk; fix OOB wrap and FourCC typo
The MS serializer returns a DXBC container, not a bare payload (proven by the CI blob dump starting with DXBC). parse_rts0 now walks the chunk table like input_signature does and decodes the RTS0 payload. Also fixed: 'O' (0x4F) vs '0' (0x30) in the FourCC check, which silently missed every chunk, and u32 arithmetic wrap in the bounds checks (a hostile offset could wrap off+8 past the guard into an OOB read). Adds a hand-built DXBC container test covering the walk path.
Diffstat (limited to 'runtime/test/loader_test.cpp')
0 files changed, 0 insertions, 0 deletions