OLD-10040: bink_index: validate frame offsets within each stored stream #1022
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1022"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by klikso on 2026-11-24T17:00:40Z.
Claimed in the coordination issue as: OLD-10040
What and why
Carries forward
old-pr/10040(draft #305) rebased onto currentmain:tools/bink_index.py.docs/movies.md.tests/test_bink_index.py.Original commit preserved:
Tiller431 <[email protected]>.Tested
python -I tests/test_bink_index.py: 41/41 passedpython -I scripts/check_no_game_data.py tools/bink_index.py tests/test_bink_index.py docs/movies.md: passed (no game data)python -I tests/test_text_write_line_endings.py: passedpython -m compileall -q make_game.py tools tests: cleanGPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed: n/a (no translator rule).Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T07:01:09Z.
Reviewed
77df8717:ran
tests/test_bink_index.pyin the sandbox (41 OK on PR; 34 OK on main, 46 errors with PR's tests on main),test_bink_names/test_report_source_collision/test_csv_line_endingsOK on both trees, doc tests OK, andcheck_no_game_data.pyclean.frame_index_error()matches the documented canonical Bink 2 layout and exits 2before writing on bad tables or unsupported revisions. Non-blocking note:
parse_header()'s pre-existing0x2Cfallback for
i/j/k/nis untracked; if strictness is ever wanted, refuse fallback layouts in a follow-up.AI-assisted review.
Recommendation: Merge
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T21:46:19Z.
Verified by OreoFR
5cb45921e+ PR head77df8717apython -I tests/test_bink_index.pyAI-assisted (Claude Code, Claude Opus 5.5).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T21:52:48Z.
Merged after OreoFR's red/green check (check) (RTX 4070 Laptop, driver 621.40, Windows 11) and a local re-check here. Merged after local re-verification: this PR merged onto
maine4933c33dwithout conflict, and its test file(s) (tests/test_bink_index.py) pass there. Earlier today the same tests failed onmainwithout the PR (red/green) and a bundle with other open PRs showed no new failures.check_no_game_data.pyis clean. Windows 11, Python 3.14; no GPU needed for these tests.AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.