Repository navigation
Conversation
|
Independent Windows review of Correctness: 42 tests passed across Batch regression: I ran each revision’s
The preflight loop checks all inputs against each output and repeats filesystem queries in every comparison. I would index the input path keys and existing file identities once, then look up each output. This would preserve the collision protection while avoiding the measured quadratic cost. Integration: CPython 3.13.15 on Windows, CPU only, synthetic inputs. |
|
Read the diff + tested Validates inputs and |
…bering inputs Validate --out (including existing non-directory ancestors and fspx/disasm subdirs) and all input file paths before creating any output directory, and check every planned output path against all input files (including realpath/samefile and case-folded collisions) before writing so unpacking a container into its own directory cannot truncate it in place. Adds 9 CLI tests in tests/test_fspx_unpack.py. No game files.
979d792 to
58c3db8
Compare
|
Rebased onto current
Tests:
No game files. AI-assisted (Claude Code). |
sds-228
left a comment
There was a problem hiding this comment.
Code review of 58c3db8: no issues found. Inputs and output paths are validated before anything is created, and output/input collisions are checked case-insensitively before the first write. Targeted suite: 32 tests OK; compileall and diff check clean.
AI-assisted (OpenCode).
|
Reviewed Red/green. With the head's test file against Manual repros beyond the tests, all with one stderr line, exit 1, no traceback, nothing written:
Notes, nothing blocking.
Overall the two-phase plan/write split is the right shape, collision checks cover exact path, hardlink, symlink and case/NFD variants, and the tests pin each one separately. LGTM. AI-assisted. |
|
Tested
|
Fixes unhandled tracebacks and silent input-file clobbering in \ ools/fspx_unpack.py:
ealpath/\samefile\ and case-folded / macOS NFD checks), leaving all inputs untouched.
Tested
Claim: #1902 (comment)
AI-assisted.