Index: src/effects/SkBlurImageFilter.cpp |
diff --git a/src/effects/SkBlurImageFilter.cpp b/src/effects/SkBlurImageFilter.cpp |
index abbf9719dbe287b1e611198cc4747de20301590b..a820152fb39c6a1f9ed4b31b6af8ee6669957e68 100644 |
--- a/src/effects/SkBlurImageFilter.cpp |
+++ b/src/effects/SkBlurImageFilter.cpp |
@@ -19,6 +19,10 @@ SkBlurImageFilter::SkBlurImageFilter(SkFlattenableReadBuffer& buffer) |
: INHERITED(buffer) { |
fSigma.fWidth = buffer.readScalar(); |
fSigma.fHeight = buffer.readScalar(); |
+ buffer.validate(SkScalarIsFinite(fSigma.fWidth) && |
+ SkScalarIsFinite(fSigma.fHeight) && |
+ (fSigma.fWidth >= 0) && |
+ (fSigma.fHeight >= 0)); |
} |
SkBlurImageFilter::SkBlurImageFilter(SkScalar sigmaX, |