Repository navigation
[Decode] Bound cumulative AV1 slice parameter counts - #2088
Draft
XinfengZhang wants to merge 1 commit into
Draft
XinfengZhang wants to merge 1 commit into
XinfengZhang wants to merge 1 commit into
Conversation
Reject tile parameter batches that exceed the remaining capacity of the fixed AV1 slice arrays in the legacy DDI. Check both parsed tile totals and reserved slice control totals before computing offsets or writing parameters. This prevents multiple individually valid buffers from overflowing the shared arrays.
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.
Multiple AV1 slice parameter buffers can each fit the per-buffer limit while their combined count exceeds the fixed slice array capacity in the legacy DDI.
Check the remaining capacity in both
ParseTileParamsandAllocSliceControlBufferbefore computing offsets or writing parameters. Oversized totals returnVA_STATUS_ERROR_MAX_NUM_EXCEEDED; batches that exactly fill the arrays remain valid.Validation: extracted source functions with minimal dependency stubs under ASan/UBSan passed 392 boundary cases, repeated buffer submission, rejected-operation state checks, and reset checks. The unpatched functions reproduced heap overflows in tile parsing and a simulated client write through an oversized reservation offset.
git diff --checkpassed. Full driver build and GPU testing were not performed.