mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:15:51 +01:00
[PR #2252] bink_index: refuse an incomplete embedded stream before probing #2257
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2257
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2252
Author: @kirigayakazima
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:codex/bink-index-truncated-probe-copy📝 Commits (1)
a58ea6bbink_index: refuse an incomplete embedded stream before probing📊 Changes
2 files changed (+14 additions, -1 deletions)
View changed files
📝
tests/test_bink_index.py(+13 -0)📝
tools/bink_index.py(+1 -1)📄 Description
Claimed in the coordination issue as: BINK-INDEX-TRUNCATED-PROBE-COPY
What and why
An archive can shrink between indexing and probing. Detect EOF before the indexed byte count has been copied, clean up the temporary stream and report a failed probe. The regression truncates a synthetic archive by one byte and verifies that ffprobe never receives the partial file.
Tested
Windows, Python 3.14.7. The regression failed on the parent commit and passed with this change.
python -I tests/test_bink_index.pygit diff --checkand the changed-path no-game-data scan passed.GPUs tested: N/A (synthetic CPU tests).
AI-assisted: Yes.
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.