Repository navigation
Conversation
…h (finding by DeepSeek5) The local copy took realpath+normcase+samefile and missed report_paths' normalization rule (a folding volume's NFD/case-fold path_key and the same-name probe), so on a case-insensitive macOS volume --out naming the input in a composed/accent-decomposed spelling could truncate it. The shared rules own this check; bink_names.py inherits the fix through the same function.
Contributor
|
Tested
|
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as this finding, from DeepSeek5's report.
What and why
tools/bink_index.py'ssame_output_pathreimplemented the report-overwrite check with realpath + normcase + samefile and missedtools/report_paths.py's normalization rule, so on a case-insensitive macOS volume--outnaming an input in the composed/accent-decomposed spelling of one file could truncate it. The function now forwards tosame_report_path(the rules the other report tools use);tools/bink_names.py:368inherits the fix through the same function. bink_index already needed no extra sys.path work beyond the shared insert the other tools do.Two commits: the tool, then the test.
Tested
python -m pytest tests/test_bink_index.py -q: 27 passed, 14 subtests passed (newtest_the_output_guard_asks_report_paths);tests/test_bink_names.pyhas one pre-existing failure on this Windows host (test_unreadable_mount_directory_preserves_the_reportprints the path through repr, doubling the backslashes - the same message-shape PR tools: print a refused or unreadable path as typed, not through repr() (5 tests fail on Windows) #5927 is fixing), and it fails identically with and without this branch.tests/test_report_paths.pydoes): it passes on main as well on this host, because Windows' own normcase already folds case - the behavioral gap this closes shows where normcase does not (macOS/Linux hosts).samefileinside same_report_path), a distinct name still passes.Windows 11, Python 3.12.10, CPU only. No game files.
Checklist
docs/design.md, with how it was confirmed. (No translator changes.)