You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 901c0bf
Browse filesBrowse the repository at this point in the historyBrowse files
run_rule and detect_stack passed every candidate file on one rg command line. On
Windows (32767-char CreateProcess cap) this crashed at ~180 files with an
uncaught OSError (WinError 206) that exited 1 — so a scanner crash masqueraded as
'findings present' and no checkpoint/report was written. detect_stack was worst:
it passed ALL files regardless of per-rule globs.
Fix: _batches() splits files so each rg command stays under a conservative
24000-char budget; _run_rg() runs the batches and maps OSError -> RuntimeError
(caught by cmd_scan -> exit 2, the documented 'execution error'). Verified: a
400-file repo that crashed before now scans (exit 0); fixture unchanged (32).
Added a _batches unit test.
0 commit comments