Skip to content

[Decode] Validate VVC active reference counts - #2084

Open
XinfengZhang wants to merge 1 commit into
intel:masterfrom
XinfengZhang:fix-vvc-reference-count
Open

XinfengZhang wants to merge 1 commit into
intel:masterfrom
XinfengZhang:fix-vvc-reference-count

Conversation

@XinfengZhang

Copy link
Copy Markdown
Contributor

Validate VVC active reference counts at slice parsing and basic-feature update, and keep the internal count unsigned. Reject counts above the 15-entry reference-list capacity and invalid list indices before constructing VVCP reference-index commands, preventing out-of-bounds command and parameter array accesses.

Validation: extracted the actual reference command structures, parameter structure, setter body, and DDI/HAL validation statements from the patched source. ASan/UBSan passed 196,608 boundary cases, covering all byte-valued counts and list indices, valid command fields, and rejection without command writes. git diff --check passed. Full driver build and GPU testing were not performed.

Keep active reference counts unsigned and reject counts exceeding the
reference-list capacity before copying or consuming slice parameters.
Validate the count and list index when constructing VVCP reference-index
commands to prevent out-of-bounds accesses to command and parameter arrays.
@XinfengZhang
XinfengZhang marked this pull request as ready for review November 26, 2026 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant