Index: src/effects/SkDropShadowImageFilter.cpp |
diff --git a/src/effects/SkDropShadowImageFilter.cpp b/src/effects/SkDropShadowImageFilter.cpp |
index 75a86689c0b9ad796dc74aee80d15b1ac8c720d9..4fc29bae837016f514bfd93fe08aa83067dcf588 100644 |
--- a/src/effects/SkDropShadowImageFilter.cpp |
+++ b/src/effects/SkDropShadowImageFilter.cpp |
@@ -29,6 +29,9 @@ SkDropShadowImageFilter::SkDropShadowImageFilter(SkFlattenableReadBuffer& buffer |
fDy = buffer.readScalar(); |
fSigma = buffer.readScalar(); |
fColor = buffer.readColor(); |
+ buffer.validate(SkScalarIsFinite(fDx) && |
+ SkScalarIsFinite(fDy) && |
+ SkScalarIsFinite(fSigma)); |
} |
void SkDropShadowImageFilter::flatten(SkFlattenableWriteBuffer& buffer) const |