Index: src/effects/SkTileImageFilter.cpp |
diff --git a/src/effects/SkTileImageFilter.cpp b/src/effects/SkTileImageFilter.cpp |
index a7374ade0c6a0c743d148cec1e575b04e0d9a93f..8cc096cf370043b4ecbd813bb171305cef43126f 100644 |
--- a/src/effects/SkTileImageFilter.cpp |
+++ b/src/effects/SkTileImageFilter.cpp |
@@ -13,6 +13,7 @@ |
#include "SkMatrix.h" |
#include "SkPaint.h" |
#include "SkShader.h" |
+#include "SkValidationUtils.h" |
bool SkTileImageFilter::onFilterImage(Proxy* proxy, const SkBitmap& src, const SkMatrix& ctm, |
SkBitmap* dst, SkIPoint* offset) { |
@@ -56,6 +57,7 @@ bool SkTileImageFilter::onFilterImage(Proxy* proxy, const SkBitmap& src, const S |
SkTileImageFilter::SkTileImageFilter(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) { |
buffer.readRect(&fSrcRect); |
buffer.readRect(&fDstRect); |
+ buffer.validate(SkIsValidRect(fSrcRect) && SkIsValidRect(fDstRect)); |
} |
void SkTileImageFilter::flatten(SkFlattenableWriteBuffer& buffer) const { |