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:
parent
d76e56d93c
commit
289d36f905
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user