SkGifCodec: do not write off the end of memory when repeatCount > 1
authorMatt Sarett <msarett@google.com>
Tue, 25 Oct 2016 18:24:50 +0000 (14:24 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Wed, 26 Oct 2016 00:43:27 +0000 (00:43 +0000)
commit8a4e9c51f4ef57f9a1d5d128e778657d96f14e53
treeea06fc174c621c8f1c04176b0703ebd46cdafcd1
parent8bce117ff770f4778f496911b83f953a53907ed4
SkGifCodec: do not write off the end of memory when repeatCount > 1

BUG=skia:5887

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=3940

Change-Id: I9e3ed6153a73277896ac067ef73918a41a0546b8
Reviewed-on: https://skia-review.googlesource.com/3940
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: Matt Sarett <msarett@google.com>
resources/invalid_images/skbug5887.gif [new file with mode: 0644]
src/codec/SkGifCodec.cpp
tests/CodecTest.cpp