Webkit unable to show gifs with applcation extension string shorter than 11 bytes
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Mar 2013 18:27:07 +0000 (18:27 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Mar 2013 18:27:07 +0000 (18:27 +0000)
commit4686797ab76ee8ae4785da754580e1cf899c9074
treeee07a6fdc60411ae8ac8b6fb6fb62358ce660462
parent5fbf1c71071e76e0318c04fcfca311bd0b812726
Webkit unable to show gifs with applcation extension string shorter than 11 bytes
https://bugs.webkit.org/show_bug.cgi?id=110620

Patch by Viatcheslav Ostapenko <sl.ostapenko@samsung.com> on 2013-03-12
Reviewed by Laszlo Gombos.

Source/WebCore:

Use actual block size for gifs application extension string even if it is below 11 bytes
to be able to decode this kind of gifs.

Test: fast/images/gif-short-app-extension-string.html

* platform/image-decoders/gif/GIFImageReader.cpp:
(GIFImageReader::decodeInternal):

LayoutTests:

Test that webkit is able to decode gifs with short application extension string.

* fast/images/gif-short-app-extension-string-expected.png: Added.
* fast/images/gif-short-app-extension-string-expected.txt: Added.
* fast/images/gif-short-app-extension-string.html: Added.
* fast/images/resources/short-app-extension-string.gif: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@145569 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/images/gif-short-app-extension-string-expected.png [new file with mode: 0644]
LayoutTests/fast/images/gif-short-app-extension-string-expected.txt [new file with mode: 0644]
LayoutTests/fast/images/gif-short-app-extension-string.html [new file with mode: 0644]
LayoutTests/fast/images/resources/short-app-extension-string.gif [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/image-decoders/gif/GIFImageReader.cpp