Address MSAN bug in SkAnimatedImage::decodeNextFrame

Bug: oss-fuzz:6284
Change-Id: I77537d6624e7d03fbbfe96046300a9dd7d609064
Reviewed-on: https://skia-review.googlesource.com/106930
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Leon Scroggins <scroggo@google.com>
This commit is contained in:
Kevin Lubick 2018-02-13 10:25:00 -05:00 committed by Skia Commit-Bot
parent d76e56d93c
commit 289d36f905

View File

@ -176,6 +176,7 @@ int SkAnimatedImage::decodeNextFrame() {
// Static image. This is okay.
frameInfo.fRequiredFrame = SkCodec::kNone;
frameInfo.fAlphaType = fCodec->getInfo().alphaType();
frameInfo.fDisposalMethod = SkCodecAnimation::DisposalMethod::kKeep;
// These fields won't be read.
frameInfo.fDuration = INT_MAX;
frameInfo.fFullyReceived = true;