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:40:40 -0300
committerSuarezPM <SuarezPM@users.noreply.github.com>2026-11-21 17:40:40 -0300
commit71d39cefb9b513364bdbbfce75210d8f895596a2 (patch)
tree4fd88d42c98731729db7c7cfc326dd0e83ac1b59 /runtime/test/loader_test.cpp
parent87989cea5f1080dac729d5407aa3fa19cb3f8fd3 (diff)
Rework RTS0 parser to offset-table layout; harden oracle test
Per maintainer feedback: the real blob is a DXBC container whose RTS0 chunk starts version, numParameters, parametersOffset, numStaticSamplers, staticSamplersOffset, flags, with parameters as a {type, visibility, offset} table and payloads at their offsets (d3d types follow D3D12_ROOT_PARAMETER_TYPE numbering, not the model's enum order). Also fixes the oracle segfault mechanism: return early when parsing fails instead of indexing an empty model, and bounds every offset addition in size_t so hostile containers cannot wrap the guard into an OOB read. Adds a wild-offset control plus a DXBC-walk test (19 portable checks green under ASan+UBSan).
Diffstat (limited to 'runtime/test/loader_test.cpp')
0 files changed, 0 insertions, 0 deletions