Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 518 by tomwe...@
gmail.com: IncreasePreviousDuration may case encoded_frames_ array overflow
https://bugs.chromium.org/p/webp/issues/detail?id=518What steps will reproduce the problem?
1. build webp with debug mode with get more obvious error.
2. use gif2webp convert attach file 'test.gif' to webp use this command: ./gif2webp -kmin 0 -kmax 0 -lossy -q 75 test.gif -o output.webp
What is the expected output? What do you see instead?
gif2webp will abort by assert fail
gif2webp: /home/tomwei7/workspace/libwebp/src/mux/anim_encode.c:343: GetFrame: Assertion `enc->start_ + position < enc->size_' failed.
What version of the product are you using? On what operating system?
Latest,ArchLinux
Please provide any additional information below.
I do some debug on this issues, that because if kmax and kmin is 0 that encoded_frames_ array will set to minimum size 2. IncreasePreviousDuration will add transparent frame to avoid duration overflow this can lead to encoded_frames_ array full and will overflow on next step.
Attachments:
test.gif 1007 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