Commit Graph

10 Commits

Author SHA1 Message Date
f38f5fdeb7 Merge pull request #3398 from kapitche 2026-11-22 17:01:51 -05:00
efb51ac62e shader_carve: an output path under a regular file is a one-line error, not a traceback 2026-11-22 15:24:54 -05:00
76c96f5329 shader_carve: resume scanning past carved deflate payloads 2026-11-22 16:08:12 -03:00
4a5c257d8a fix(tools): reject an empty shader carve 2026-11-22 17:40:43 +03:00
a25462b919 shader_carve: isolate index publication staging 2026-11-22 05:06:11 -03:00
b8fb0816dd shader_carve.py: close archive mmap on exit and reject file output paths 2026-11-22 07:23:18 +01:00
f0de80940e shader_carve.py: a DEFLATE stream must reach its end marker
The carver accepted a raw DEFLATE stream when the inflated bytes started with
DXBC and had the expected size, even if the stream never reached its final
block. It now also requires decompressor.eof, so a stream cut off or
corrupted after the payload is counted as rejected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 06:27:32 +01:00
54989059be shader_carve.py: use argparse, and reject a missing or empty archive up front
It read sys.argv by hand, so no arguments stopped with IndexError. A missing archive
(or a folder in its place) created the output folder first and then ended in a
traceback, and an empty archive failed in mmap. It now checks the archive before
anything is created: a usage error (exit 2) with no output folder left behind.
The documented `shader_carve.py <archive.rpf> <out_dir>` form is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 02:47:03 +03:00
c5dc2d0330 shader_carve.py: reject incomplete DXBC parts 2026-11-22 00:04:21 +01:00
eff14e0b62 test(tools): test synthetic DXBC container scanning and boundary validation in shader_carve 2026-11-21 19:02:42 +01:00