diff options
author | Ivan Afanasyev <ivafanas@yandex-team.ru> | 2017-10-09 10:09:53 +0700 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-09 19:17:05 +0000 |
commit | 2631558d58a86b7904d05d368729d814a4ffe9d7 (patch) | |
tree | 80e3e67b366144694f06bd4f179e0d22e43e2882 /src/codec | |
parent | 7cf2fd6ff62378c5060d06a9699f3ff4510bdf53 (diff) |
fix use of uninitialized flag in SkCodec
SkCodec class has the fStartedIncrementalDecode field, which is not
initialized on construction, but may be used in incrementalDecode
method being uninitialized.
Bug: skia:
Change-Id: I378412a375100ad2df4aa38f2dd5682867e0e34b
Reviewed-on: https://skia-review.googlesource.com/53160
Commit-Queue: Heather Miller <hcm@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/codec')
-rw-r--r-- | src/codec/SkCodec.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codec/SkCodec.cpp b/src/codec/SkCodec.cpp index 9b55790db4..c3d99f2793 100644 --- a/src/codec/SkCodec.cpp +++ b/src/codec/SkCodec.cpp @@ -138,6 +138,7 @@ SkCodec::SkCodec(int width, int height, const SkEncodedInfo& info, , fDstInfo() , fOptions() , fCurrScanline(-1) + , fStartedIncrementalDecode(false) {} SkCodec::SkCodec(const SkEncodedInfo& info, const SkImageInfo& imageInfo, @@ -151,6 +152,7 @@ SkCodec::SkCodec(const SkEncodedInfo& info, const SkImageInfo& imageInfo, , fDstInfo() , fOptions() , fCurrScanline(-1) + , fStartedIncrementalDecode(false) {} SkCodec::~SkCodec() {} |