Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix overflows in avifImageRGBToYUV() #2355

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wantehchang
Copy link
Collaborator

@wantehchang wantehchang commented Aug 1, 2024

Fix overflows when multiplying with rowBytes in avifImageRGBToYUV(), by
storing the various uint32_t rowBytes fields in local variables of the
size_t type. Then multiplications with the size_t rowBytes local
variables will be done in size_t.

Part of the fix to #2271.

@wantehchang wantehchang marked this pull request as draft August 1, 2024 03:13
Fix overflows when multiplying with rowBytes in avifImageRGBToYUV(), by
storing the various uint32_t rowBytes fields in local variables of the
size_t type. Then multiplications with the size_t rowBytes local
variables will be done in size_t.

Part of the fix to AOMediaCodec#2271.
@wantehchang wantehchang changed the title Fix overflows in two functions in src/reformat.c Fix overflows in avifImageRGBToYUV() Aug 2, 2024
@wantehchang wantehchang marked this pull request as ready for review August 2, 2024 00:27
@wantehchang wantehchang marked this pull request as draft August 2, 2024 02:33
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