Validate repeated BC7 dictionary widths #2665
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2665
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2665"
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?
@luckyteagirl on GitHub · 2026-11-26 05:37 UTC · original
luckyteagirl:codex/bcpack-bc7-width-copies→main· +43 −1 · 2 files · 1 commits · openBC7 dictionary entries 1–254 repeat their index widths before the indices. The table generator discarded the copy, so an input with inconsistent widths could overwrite the generated table and exit successfully. Entry 0 uses that position for its first index. Layout reference
What is in it
Tested
b49be183because the generator accepted the mismatch.python -B -m unittest discover -s scripts -p 'test_*.py': 26 passed, 0 failed, 0 skipped on Windows with Python 3.11.1e548501764588b06e2ed47aa7fed263cd797f3bwith both versions and verified byte-identical output.git diff --checkpassed.Regression run
Not tested
AI use
@oni-swr on GitHub · 2026-11-26 07:01 UTC · original
Independent native Windows CPU verification at
d3d959a18c97d88fa9446fb49102daf79544059eagainst exact parentb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7.Windows 11 Pro build 26200, Ryzen 7 5700X3D, Python 3.11.9.
py -3.11 -B -m unittest discover -s scripts -p 'test_*.py'passed 26 tests at the head and 25 on the parent, with zero failures or skips.In synthetic CLI controls, the parent accepted both repeated-width mismatches and rewrote the destination. The head rejected mismatches in both width-byte positions and preserved destination bytes and modification time in all four failure runs. A valid input produced byte-identical output at both revisions. Cargo, GPU and retail smoke were outside this run.
AI use: Codex (gpt-6.2-sol) wrote and ran the synthetic checks and drafted this report.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.