Index: src/core/SkMallocPixelRef.cpp |
diff --git a/src/core/SkMallocPixelRef.cpp b/src/core/SkMallocPixelRef.cpp |
index 341ac9eb88ed951897a570802bdb889859c284e6..f229e9de34d0fa8dbdd29304dd0ac0f7a78e5611 100644 |
--- a/src/core/SkMallocPixelRef.cpp |
+++ b/src/core/SkMallocPixelRef.cpp |
@@ -54,7 +54,7 @@ SkMallocPixelRef::SkMallocPixelRef(SkFlattenableReadBuffer& buffer) |
: INHERITED(buffer, NULL) { |
fSize = buffer.getArrayCount(); |
fStorage = sk_malloc_throw(fSize); |
- buffer.readByteArray(fStorage); |
+ buffer.readByteArray(fStorage, fSize); |
if (buffer.readBool()) { |
fCTable = SkNEW_ARGS(SkColorTable, (buffer)); |
} else { |