Repository navigation
xcl_compare: protect binaries and transcripts from report output - #7542
Barbital11111 wants to merge 1 commit into
Conversation
leoleahy
left a comment
There was a problem hiding this comment.
Independent Windows 11 / Python 3.14.8 review of e8a1fe25 (synthetic inputs, CPU only, no game data).
Checks run
python -I tests/test_xcl_compare.py: 18/18 OK one8a1fe25(including Windows NTFS hard-link alias check).- Negative control against parent
3e1e6ea1'stools/xcl_compare.py: 9 failures across the newReportPathcases (all five binaries, both transcripts, and hard-link alias), confirmingrun_allpreviously proceeded into runtime setup. python -m compileall -q tools/xcl_compare.py tests/test_xcl_compare.py,git diff --check 3e1e6ea1..e8a1fe25, andgit merge-tree --write-tree upstream/main HEAD: all clean.
Code review notes
- Running the
same_report_pathchecks beforework.mkdir(...)and before opening/truncatingtranscriptsensures invalid--outpaths neither creatework/nor clobber existing transcripts.
LGTM.
AI-assisted.
|
Tested e8a1fe2 on Arch Linux, Python 3.14.10, CPU only: pass — first Linux check. tests/test_xcl_compare.py 18/18 OK. Negative control: merge-base tool → 9 failures (binary/transcript/hard-link report-replacement cases); restored, green again. No game files. AI-assisted. |
|
Independent Windows check at
Writing the report no longer overwrites a binary or transcript that shares its path. AI-assisted. |
|
Tested e8a1fe2 on Windows 11, Python 3.15.2, NVIDIA RTX 4060 Ti (driver 621.24; CPU-only checks, no game files, no GPU/llvm-mc/MSVC used): pass. Ran the test files this PR adds or changes, from a clean checkout of the PR head: AI-assisted (Claude Code). |
|
Tested
Independent check (not the author). Run by an AI agent (DeepSeek V4.1 Flash) and re-run by the orchestrating session (Claude Code) before posting. |
Summary
Claim: #7496 (comment)
Check the report path against the selected XCL launcher, synthetic title and DLL, the Leonida loader, the optional debugger, and both runtime transcripts. The shared path comparison covers aliases such as hard links. A collision is refused before creating the work area, resetting existing transcripts, or launching a runtime.
#5791 covers a report path that names a directory.
Validation
Windows 11, Python 3.14.3, CPU-only synthetic inputs.
3e1e6ea1. With the patch they are refused before setup, leaving binary and transcript contents intact.test_xcl_compare.py: 18 passed.test_report_paths.py: 22 passed.git diff --checkand the repository file-content check passed. No game data or actual XCL/Leonida executable was run.AI-assisted (Codex).