Skip to content

Conversation

@kumarsac
Copy link
Contributor

@kumarsac kumarsac commented Oct 8, 2025

User might pass picParam->log2_tile_columns as 0 for >4K width
In this scenario Vp9WriteUncompressHeader may crash in while loop
or huze loop due to possible col_data negative value.

To avoid this added a boundary check and making picParam->log2_tile_columns
same as min_log2_tile_cols.

@kumarsac kumarsac requested a review from XinfengZhang as a code owner October 8, 2025 09:32
User might pass picParam->log2_tile_columns as 0 for >4K width
In this scenario Vp9WriteUncompressHeader may crash in while loop
or huze loop due to possible col_data negative value.

To avoid this added a boundary check and making picParam->log2_tile_columns
same as min_log2_tile_cols.

Signed-off-by: sachin kumar <[email protected]>
@kumarsac kumarsac changed the title [Encode] VP9 Encode Fix file colums calculation [Encode] VP9 Encode Add boundary check for log2_tile_columns Oct 13, 2025
Copy link
Contributor

@RachelChengRJ RachelChengRJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@XinfengZhang XinfengZhang added verifying PR: fix ready and verifying with build/test Encode video encode related VP9 VP9 labels Nov 5, 2025
@intel-mediadev intel-mediadev merged commit 29abf0b into intel:master Nov 10, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Encode video encode related verifying PR: fix ready and verifying with build/test VP9 VP9

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants