Index: src/effects/SkOffsetImageFilter.cpp |
diff --git a/src/effects/SkOffsetImageFilter.cpp b/src/effects/SkOffsetImageFilter.cpp |
index d684ded368e12bb123439f40d3eaff39b8c56b16..fc8e71c1d9c4c9faba4fe0ca72f9572c725d47f9 100644 |
--- a/src/effects/SkOffsetImageFilter.cpp |
+++ b/src/effects/SkOffsetImageFilter.cpp |
@@ -77,4 +77,6 @@ SkOffsetImageFilter::SkOffsetImageFilter(SkScalar dx, SkScalar dy, SkImageFilter |
SkOffsetImageFilter::SkOffsetImageFilter(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) { |
buffer.readPoint(&fOffset); |
+ buffer.validate(SkScalarIsFinite(fOffset.fX) && |
+ SkScalarIsFinite(fOffset.fY)); |
} |