Index: src/effects/SkColorMatrixFilter.cpp |
diff --git a/src/effects/SkColorMatrixFilter.cpp b/src/effects/SkColorMatrixFilter.cpp |
index f7b283e01f7de04418fa40f5a3ee1ced96f9691e..d8eb1f17c54c2b28e1602826b18597b0f8275d9a 100644 |
--- a/src/effects/SkColorMatrixFilter.cpp |
+++ b/src/effects/SkColorMatrixFilter.cpp |
@@ -308,7 +308,7 @@ void SkColorMatrixFilter::flatten(SkFlattenableWriteBuffer& buffer) const { |
SkColorMatrixFilter::SkColorMatrixFilter(SkFlattenableReadBuffer& buffer) |
: INHERITED(buffer) { |
SkASSERT(buffer.getArrayCount() == 20); |
- buffer.readScalarArray(fMatrix.fMat); |
+ buffer.readScalarArray(fMatrix.fMat, 20); |
this->initState(fMatrix.fMat); |
for (int i = 0; i < 20; ++i) { |
buffer.validate(SkScalarIsFinite(fMatrix.fMat[i])); |