Skip to content

Fix copy-paste error in WebPImage::inject_VP8X height check (backport #9280)#9314

Open
mergify[bot] wants to merge 1 commit into
0.28.xfrom
mergify/bp/0.28.x/pr-9280
Open

Fix copy-paste error in WebPImage::inject_VP8X height check (backport #9280)#9314
mergify[bot] wants to merge 1 commit into
0.28.xfrom
mergify/bp/0.28.x/pr-9280

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify Bot commented May 29, 2026

Fix #9279:

Line 773 checks width > 0 instead of height > 0. This was introduced in commit bf151a1. When height is 0, the enforce does not catch it and height - 1 wraps as an unsigned integer.

Change the check to validate height instead of width.


This is an automatic backport of pull request #9280 done by Mergify.

Line 773 checks width > 0 instead of height > 0. This was
introduced in commit bf151a1. When height is 0, the enforce
does not catch it and height - 1 wraps as an unsigned integer.

Change the check to validate height instead of width.

(cherry picked from commit 0dde72e)
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