Index: src/core/SkPicturePlayback.cpp |
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp |
index 36d385c0954a1068eda4c6d66fa0cb051dbe5997..3cbcdbbd2f3f55cf1da6dd23a187d1df36ab9071 100644 |
--- a/src/core/SkPicturePlayback.cpp |
+++ b/src/core/SkPicturePlayback.cpp |
@@ -543,8 +543,9 @@ void SkPicturePlayback::handleOp(SkReadBuffer* reader, |
case SAVE: |
// SKPs with version < 29 also store a SaveFlags param. |
if (size > 4) { |
- SkASSERT(8 == size); |
- reader->readInt(); |
+ if (reader->validate(8 == size)) { |
+ reader->readInt(); |
+ } |
} |
canvas->save(); |
break; |