xma: stop at a zero-length frame instead of looping forever #14
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!14
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/14/head"
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?
@9hvn9yt2vk-netizen on GitHub · 2026-11-23 23:02 UTC · original
9hvn9yt2vk-netizen:fix-xma-zero-length→main· +32 −1 · 1 files · 1 commits · merged 2026-11-23 23:18 UTCnext_frame walks the frames before
startto learn whether the frame atstartis the packet's last. A damaged packet whose earlier frame has a length of 0 never advancedat, so the walk spun forever (in a debug build it overflowednumberafter about 4 billion rounds and panicked).Apply the rule read_frame already uses: a length that does not cover its own 15-bit field is not a frame, and the search ends.
Found with a random-input harness. The new test hangs without the fix and passes at once with it.