2006-12-18 Dex Deacon <occupant4@gmail.com>
authorbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Dec 2006 23:28:08 +0000 (23:28 +0000)
committerbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Dec 2006 23:28:08 +0000 (23:28 +0000)
commit4c5185e00f9f751fd9a0ba57c1cb61af82434515
tree5ee8bcad5c1813aa3648ab39ccc625143b6ff1e6
parent5920554dec45d172833cf6c4b414205de01f82b4
2006-12-18  Dex Deacon  <occupant4@gmail.com>

        Reviewed by Maciej.

        Bug 11760: Animated GIFs with offsets crash WebKit
        http://bugs.webkit.org/show_bug.cgi?id=11760

        * platform/image-decoders/gif/GIFImageDecoder.cpp:
        ensure we don't write past the end of the image buffer when the offset
        is nonzero.  also fix the way we composite frames when animating.
        (WebCore::GIFImageDecoder::initFrameBuffer):
        (WebCore::GIFImageDecoder::haveDecodedRow):

2006-12-18  Dex Deacon  <occupant4@gmail.com>

        Reviewed by Maciej.

        Layout tests for http://bugs.webkit.org/show_bug.cgi?id=11760

        * ChangeLog:
        * fast/images/animated-gif-with-offsets-expected.txt: Added.
        * fast/images/animated-gif-with-offsets.html: Added.
        * fast/images/resources/animated-gif-with-offsets.gif: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18289 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/images/animated-gif-with-offsets-expected.txt [new file with mode: 0644]
LayoutTests/fast/images/animated-gif-with-offsets.html [new file with mode: 0644]
LayoutTests/fast/images/resources/animated-gif-with-offsets.gif [new file with mode: 0644]
WebCore/ChangeLog
WebCore/platform/image-decoders/gif/GIFImageDecoder.cpp