Shader scan: a raw DXBC container's source is exactly its declared length #328
No reviewers
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!328
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-328"
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?
@RenzoWit35 on GitHub · 2026-11-24 23:34 UTC · original
RenzoWit35:fix/246-dxbc-source-exact-range→main· +52 −5 · 2 files · 1 commits · openFixes #246.
sources()gave a raw container&data[offset..], so trailing bytes (and any later containers)went into its hash and dumps, and
VICTORY_TRANSLATE_ONLYcould not match the hash fromruntime logs.
dxbc::Containernow exposes the checked total size (size), and the scanslices exactly that.
Test
raw_source_is_exactly_the_declared_container: a synthetic 32-byte container standaloneand with bytes before and after gives identical bytes and blake3 hashes. Fails on
main(45bytes).
Note: this adds a public field to
victory_shader::dxbc::Container. Nothing outsideparsebuilds one.
Testing
On Windows 11, MSVC Rust 1.98.1, branch alone on top of
main(2119b0e):cargo clippy --workspace --all-targets --locked -- -D warnings, the same with--all-features, andcargo test --workspace --lockedall pass. The new regression test fails onmainand passes here. All nine fix branches for #242-#250 also pass together when merged.🤖 Generated with Claude Code
@kaayzouee on GitHub · 2026-11-25 01:26 UTC · original
Duplicate of #288?
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.