Repository navigation
[Decode] Reject oversized AV1 tile counts on Gen12 - #2081
Open
XinfengZhang wants to merge 1 commit into
Open
XinfengZhang wants to merge 1 commit into
XinfengZhang wants to merge 1 commit into
Conversation
Reject a declared tile count above the descriptor limit before parsing tile parameters or performing error concealment. This prevents access past the descriptor array for large scale tile pictures and matches the validation in the common AV1 tile coding path.
XinfengZhang
marked this pull request as ready for review
November 25, 2026 08:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reject AV1 tile counts above the descriptor limit before tile parsing and error concealment on Gen12. Large scale tile pictures allocate 4096 descriptors, so accepting a larger declared count can access past the allocation. This matches the validation in the common AV1 path.
Validation: ASan/UBSan on the extracted production ParseTileInfo, ErrorDetectAndConceal and CalcNumPass functions. The baseline reproduces a heap buffer overflow at 4097 tiles; the fix passes 65,552 cases covering the full 16-bit count range and boundary submission counts. Full driver build and hardware decode testing were not run.