Shader scan: trailing file bytes change the hash of a raw DXBC container #246
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#246
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?
@Bennet0k on GitHub · 2026-11-24 22:59 UTC · original
Source · Source
Reproduction. Scan a valid synthetic 32-byte DXBC container, then append
harmless tailafter the declared container length and scan it again. Executing the original parser and raw-source code returns 32 bytes and hash252d095627775c35for the standalone container, versus 45 bytes ande4f0aa8725373303for the embedded container. The parser recognizes the same container both times. The longer slice also flows into diagnostic dumps.Proposed fix. Have the raw-source iterator return exactly the byte range validated by the parser, preferably using the parser's checked length. Add a test asserting identical source bytes and hashes for standalone and embedded copies. This lets
VICTORY_TRANSLATE_ONLYmatch the hash of the same container from runtime logs.Found in an AI-assisted audit of
2119b0e.