Index: src/effects/SkTableColorFilter.cpp |
diff --git a/src/effects/SkTableColorFilter.cpp b/src/effects/SkTableColorFilter.cpp |
index 083b54c4886691a9c3f7663e0e702533c2de1839..e15baf69284334681925bce517e71c25abfcc3de 100644 |
--- a/src/effects/SkTableColorFilter.cpp |
+++ b/src/effects/SkTableColorFilter.cpp |
@@ -189,7 +189,7 @@ SkTable_ColorFilter::SkTable_ColorFilter(SkFlattenableReadBuffer& buffer) : INHE |
size_t size = buffer.getArrayCount(); |
SkASSERT(size <= sizeof(storage)); |
- buffer.readByteArray(storage); |
+ buffer.readByteArray(storage, size); |
SkDEBUGCODE(size_t raw = ) SkPackBits::Unpack8(storage, size, fStorage); |