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
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.

2 participants