Index: src/effects/SkColorMatrixFilter.cpp |
diff --git a/src/effects/SkColorMatrixFilter.cpp b/src/effects/SkColorMatrixFilter.cpp |
index 1e3c779ec661d36e1e8e4aca12acdc769b9555b7..f7b283e01f7de04418fa40f5a3ee1ced96f9691e 100644 |
--- a/src/effects/SkColorMatrixFilter.cpp |
+++ b/src/effects/SkColorMatrixFilter.cpp |
@@ -310,6 +310,9 @@ SkColorMatrixFilter::SkColorMatrixFilter(SkFlattenableReadBuffer& buffer) |
SkASSERT(buffer.getArrayCount() == 20); |
buffer.readScalarArray(fMatrix.fMat); |
this->initState(fMatrix.fMat); |
+ for (int i = 0; i < 20; ++i) { |
+ buffer.validate(SkScalarIsFinite(fMatrix.fMat[i])); |
+ } |
} |
bool SkColorMatrixFilter::asColorMatrix(SkScalar matrix[20]) const { |