[PR #2221] [CLOSED] bink_index: validate frame offsets on request #2225

Closed
opened 2026-11-26 21:20:28 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2221
Author: @whoalin1
Created: 11/26/2026
Status: ❌ Closed

Base: main ← Head: bink-index-validate-frames


📝 Commits (1)

  • b6269e6 bink_index: validate frame offsets on request

📊 Changes

3 files changed (+146 additions, -13 deletions)

View changed files

📝 docs/movies.md (+11 -3)
📝 tests/test_bink_index.py (+80 -0)
📝 tools/bink_index.py (+55 -10)

📄 Description

Summary

  • add --validate-frames to check each indexed Bink 2 stream's frame-offset table
  • reject unsupported revisions, truncated tables, offsets outside the stored stream, and non-increasing offsets before writing a report
  • preserve the existing inventory output when validation succeeds
  • document the check and the original whole-archive measurement

Item: BINK-INDEX-VALIDATE-FRAMES

This carries forward the still-uncarried fix in old-pr/10040, originally written by Tiller431, reapplied and verified on current main. The original measurement covered 683,552 frame offsets across 797 indexed streams in the 22 manifest-matching archives; this PR does not include or require any game data.

Tests

Under the local machine coordination lock:

  • control: the new synthetic validation tests fail on the unpatched indexer because frame_index_error does not exist
  • fixed: python -I tests/test_bink_index.py — 41 tests, OK
  • python -m compileall -q tools/bink_index.py tests/test_bink_index.py — pass
  • git diff --cached --check — pass

No game files or GPU.

AI-assisted with Devin.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2221 **Author:** [@whoalin1](https://github.com/whoalin1) **Created:** 11/26/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `bink-index-validate-frames` --- ### 📝 Commits (1) - [`b6269e6`](https://github.com/ubiquitarianism/leonida/commit/b6269e672f0204c5fc4a2847a28065261e585dde) bink_index: validate frame offsets on request ### 📊 Changes **3 files changed** (+146 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `docs/movies.md` (+11 -3) 📝 `tests/test_bink_index.py` (+80 -0) 📝 `tools/bink_index.py` (+55 -10) </details> ### 📄 Description ## Summary - add `--validate-frames` to check each indexed Bink 2 stream's frame-offset table - reject unsupported revisions, truncated tables, offsets outside the stored stream, and non-increasing offsets before writing a report - preserve the existing inventory output when validation succeeds - document the check and the original whole-archive measurement Item: BINK-INDEX-VALIDATE-FRAMES This carries forward the still-uncarried fix in old-pr/10040, originally written by Tiller431, reapplied and verified on current main. The original measurement covered 683,552 frame offsets across 797 indexed streams in the 22 manifest-matching archives; this PR does not include or require any game data. ## Tests Under the local machine coordination lock: - control: the new synthetic validation tests fail on the unpatched indexer because `frame_index_error` does not exist - fixed: `python -I tests/test_bink_index.py` — 41 tests, OK - `python -m compileall -q tools/bink_index.py tests/test_bink_index.py` — pass - `git diff --cached --check` — pass No game files or GPU. AI-assisted with Devin. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 21:20:28 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#2225
No description provided.