diff options
author | robertphillips <robertphillips@google.com> | 2016-04-20 11:43:33 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-20 11:43:33 -0700 |
commit | 9ca06c4b00bfb9bb1a7f352efd264185e5a95fbc (patch) | |
tree | 4e0f68db60529671d9324c7768740ac3a6ca2b93 /src/core/SkPicturePlayback.h | |
parent | df02d338be8e3c1c50b48a3a9faa582703a39c07 (diff) |
Fix ImageFilter fuzzer issue
What appears to be happening in this fuzz is that a paint index inside the picture of an SkPictureImageFilter is getting changed to be out of range.
BUG=skia:5192
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1893423002
Review URL: https://codereview.chromium.org/1893423002
Diffstat (limited to 'src/core/SkPicturePlayback.h')
-rw-r--r-- | src/core/SkPicturePlayback.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkPicturePlayback.h b/src/core/SkPicturePlayback.h index ca6ad1ade4..7cedaeb499 100644 --- a/src/core/SkPicturePlayback.h +++ b/src/core/SkPicturePlayback.h @@ -38,13 +38,13 @@ protected: // The offset of the current operation when within the draw method size_t fCurOffset; - void handleOp(SkReader32* reader, + void handleOp(SkReadBuffer* reader, DrawType op, uint32_t size, SkCanvas* canvas, const SkMatrix& initialMatrix); - static DrawType ReadOpAndSize(SkReader32* reader, uint32_t* size); + static DrawType ReadOpAndSize(SkReadBuffer* reader, uint32_t* size); class AutoResetOpID { public: |