Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 382 by
dani...@tumblr.com: Integer Overflow on loop count > UINT16 in gif2webp
https://bugs.chromium.org/p/webp/issues/detail?id=382What steps will reproduce the problem?
1. Using libwebp master
2. Build the gif2webp example tool
3. Download the example gif attached
4. Run `gif2webp -mt -lossy test_gif.gif -o test_out.webp
Observe the "ERROR (WEBP_MUX_INVALID_ARGUMENT): Could not update loop count."
What is the expected output? What do you see instead?
- Expected output is the gif getting converted, instead it just fails.
What version of the product are you using? On what operating system?
- libwebp1.0.0 using macOS Sierra v 10.12.6
Please provide any additional information below.
- Possible fix is to check that "loop_count < UINT16_MAX" on this line
https://chromium.googlesource.com/webm/libwebp/+/master/examples/gif2webp.c#481In order to prevent the overflow when doing loop_count += 1
Attachments:
test_gif.gif 864 KB
--
You received this message because:
1. The project was configured to send all issue notifications to this address
You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings