diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-06 20:14:46 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-06 20:14:46 +0000 |
commit | c2e9db30d393862bd3485cfe57b4ac06433f2f32 (patch) | |
tree | ad1a292701c5fa0444dda0724e41e9ec86721776 /src/core/SkValidatingReadBuffer.h | |
parent | 7842c817e920a0e0c83be339f8d7e19b016c3373 (diff) |
Fixed a few places where uninitialized memory could have been read
Also added early exit in SkImageFilter's constructor to avoid attempting to deserialize all inputs once a bad input has been found. This avoids hanging if a filter pretends to have 1 billion inputs when that's just an error on the number of inputs read by the filter.
BUG=326206,326197,326229
R=senorblanco@chromium.org, senorblanco@google.com, reed@google.com, sugoi@google.com
Author: sugoi@chromium.org
Review URL: https://codereview.chromium.org/106943002
git-svn-id: http://skia.googlecode.com/svn/trunk@12544 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkValidatingReadBuffer.h')
-rw-r--r-- | src/core/SkValidatingReadBuffer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/SkValidatingReadBuffer.h b/src/core/SkValidatingReadBuffer.h index 2bcdc43e8b..febf0c0b42 100644 --- a/src/core/SkValidatingReadBuffer.h +++ b/src/core/SkValidatingReadBuffer.h @@ -61,6 +61,7 @@ public: virtual SkTypeface* readTypeface() SK_OVERRIDE; virtual bool validate(bool isValid) SK_OVERRIDE; + virtual bool isValid() const SK_OVERRIDE; private: bool readArray(void* value, size_t size, size_t elementSize); |