upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src
diff options
context:
space:
mode:
authorRayhan Robin <rarobin2912@gmail.com>2026-11-21 17:34:45 -0600
committerRayhan Robin <rarobin2912@gmail.com>2026-11-21 17:34:45 -0600
commitcdaaebcac0fff82ad85640ca8660ef049baef22f (patch)
tree81f29d23a289a145f1e5dff5d2f180b3ce177ffc /runtime/src
parent8bd0087d2d0e45fc18fa78fb40b70ecfc6648854 (diff)
Tools: report a short OSG1 signature instead of aborting feature_scan
streams() read `count` 32-byte elements at `first` without checking the part length, so a truncated OSG1 raised struct.error out of scan_dxbc and killed the whole count-only scan. Treat a signature whose element table does not fit (or whose first element overlaps the 8-byte count/offset header) as carrying no stream information, matching the existing len(sig) < 8 case. Well-formed signatures are read exactly as before. Synthetic regression test in tests/test_feature_scan.py: it fails on unmodified main with struct.error and passes with the fix; a work folder with one truncated OSG1 still prints the summary and keeps the real stream-1 count. No game data, no GPU. Full CPU suite: 1559 passed, 150 skipped, 1 xfailed; semantic suite: 423 passed; compileall and --help clean. New BUILD item claimed in #374. AI-assisted (OpenCode).
Diffstat (limited to 'runtime/src')
0 files changed, 0 insertions, 0 deletions