Index: src/core/SkImageFilter.cpp |
diff --git a/src/core/SkImageFilter.cpp b/src/core/SkImageFilter.cpp |
index 6ec982bbfb5a01b873479f2c32c4d1aeffe94d97..9bf392515dbf0cc3e63942e9511e3035f568cfbc 100644 |
--- a/src/core/SkImageFilter.cpp |
+++ b/src/core/SkImageFilter.cpp |
@@ -10,6 +10,7 @@ |
#include "SkBitmap.h" |
#include "SkFlattenableBuffers.h" |
#include "SkRect.h" |
+#include "SkValidationUtils.h" |
#if SK_SUPPORT_GPU |
#include "GrContext.h" |
#include "GrTexture.h" |
@@ -65,6 +66,7 @@ SkImageFilter::SkImageFilter(SkFlattenableReadBuffer& buffer) |
buffer.readRect(&rect); |
uint32_t flags = buffer.readUInt(); |
fCropRect = CropRect(rect, flags); |
+ buffer.validate(SkIsValidRect(rect)); |
} |
void SkImageFilter::flatten(SkFlattenableWriteBuffer& buffer) const { |