diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-23 14:10:52 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-24 08:00:13 -0500 |
| commit | ad136ffb9c8ab1b36cf4ccbe0ca72aecb50217b6 (patch) | |
| tree | a4ba91de7aa947a23de58a42f24de86de4827d31 /docs/github-metadata-export.md | |
| parent | 51f31609236a952badeb9c9aba9efc2a6e4dc2ff (diff) | |
vs_layout_census: refuse a --json that is an input or a directory before survey() (BUILD-589)
--json was checked with a raw os.path.samefile against index.json only, so
naming an indexed .dxbc container or a disasm/*.s listing overwrote that
input, and a directory ran survey() (llvm-mc over the corpus) before the
write failed.
main() now refuses, before survey() runs, a --json that is an existing
directory, and one that tools/report_paths.same_report_path matches against
index.json or any container or listing the index names (input_paths(), which
shares load_index() with survey()). Each refusal is one error line and exit 2.
Synthetic tests in tests/test_vs_layout_census.py: a listing, a container and
index.json refuse and stay unchanged; a directory refuses with survey() and
default_disasm mocked and never called; a ../ spelling, a symlink, a hard link
and (on a case-folding volume) another case refuse; a separate --json still runs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/github-metadata-export.md')
0 files changed, 0 insertions, 0 deletions