Skip to content

Reject invalid depth in avifImageAllocatePlanes()#3038

Open
y-guyon wants to merge 3 commits intoAOMediaCodec:mainfrom
y-guyon:depth
Open

Reject invalid depth in avifImageAllocatePlanes()#3038
y-guyon wants to merge 3 commits intoAOMediaCodec:mainfrom
y-guyon:depth

Conversation

@y-guyon
Copy link
Contributor

@y-guyon y-guyon commented Feb 13, 2026

Also reject >16-bit in avifParsePixelInformationProperty() to avoid returning the wrong AVIF_RESULT_OUT_OF_MEMORY error code later. Add test.

Also reject >16-bit in avifParsePixelInformationProperty() to avoid
returning the wrong AVIF_RESULT_OUT_OF_MEMORY error code later.
Add test.
Avoids a debug assertion failure at satoDepth!=0 later on.
It is compared with av1C depth in avifDecoderItemValidateProperties()
for coded items anyway.
Copy link
Collaborator

@wantehchang wantehchang left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks! I didn't review the test.

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