We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Does anybody here know why this -1 adjustment is needed in WebPImage::inject_VP8X?
-1
WebPImage::inject_VP8X
exiv2/src/webpimage.cpp
Line 764 in a5c521e
Most of the time, it looks like it's cancelling the corresponding +1 adjustments in WebPImage::doWriteMetadata, like this one:
+1
WebPImage::doWriteMetadata
Line 267 in a5c521e
But there's no +1 adjustment here:
Line 215 in a5c521e
Which means that I can create a poc that causes w to be negative in WebPImage::inject_VP8X. Is that a bug? To run the poc:
w
exiv2 rm poc.webp
Nothing visibly bad happens. You need to set a breakpoint in WebPImage::inject_VP8X to see that w == -1.
w == -1
The text was updated successfully, but these errors were encountered:
No idea from my side 😅
Sorry, something went wrong.
width being negative sounds like a bug 🤷
kevinbackhouse
Successfully merging a pull request may close this issue.
Does anybody here know why this
-1
adjustment is needed inWebPImage::inject_VP8X
?exiv2/src/webpimage.cpp
Line 764 in a5c521e
Most of the time, it looks like it's cancelling the corresponding
+1
adjustments inWebPImage::doWriteMetadata
, like this one:exiv2/src/webpimage.cpp
Line 267 in a5c521e
But there's no
+1
adjustment here:exiv2/src/webpimage.cpp
Line 215 in a5c521e
Which means that I can create a poc that causes
w
to be negative inWebPImage::inject_VP8X
. Is that a bug? To run the poc:Nothing visibly bad happens. You need to set a breakpoint in
WebPImage::inject_VP8X
to see thatw == -1
.The text was updated successfully, but these errors were encountered: