diff options
| author | bobcatchris <83428450+bobcatchris@users.noreply.github.com> | 2026-11-22 04:59:41 -0600 |
|---|---|---|
| committer | bobcatchris <83428450+bobcatchris@users.noreply.github.com> | 2026-11-22 05:00:37 -0600 |
| commit | 780a0a479d6624e87242133c81a87ee565113bab (patch) | |
| tree | e90f7bb6bef1f0f053e6cf8124812e59378475d2 /runtime/src/pe_loader.cpp | |
| parent | c2967a5e60060e4068fb992196d8f4b494a5046c (diff) | |
shader_diff: refuse an option below 1 instead of running nothing
--programs and --limit took bare ints, so 0 or a negative value ran no
program and still printed "0 programs (seed 1): 0 pass, 0 mismatch ..."
with exit 0. That reads as a pass from the differential oracle the docs
tell people to run, and a negative --limit is easy to get from shell
arithmetic. --max-ops had the same gap and died with
ValueError: empty range in randrange(1, 1).
All three now require at least 1: one argparse line, exit 2, which is what
anim_index, rbf0_index, rpf9_carve and shader_disasm already do. Defaults,
the output format and the 2/1/0 exit codes are unchanged, and the new
tests cover both the refusal and a valid --limit still running that many
programs.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions