Commit 0dde72e
committed
Fix copy-paste error in WebPImage::inject_VP8X height check
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.1 parent f9efd0e commit 0dde72e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
773 | | - | |
| 773 | + | |
774 | 774 | | |
775 | 775 | | |
776 | 776 | | |
| |||
0 commit comments