Index: src/effects/gradients/SkGradientShader.cpp |
diff --git a/src/effects/gradients/SkGradientShader.cpp b/src/effects/gradients/SkGradientShader.cpp |
index c90adfeca09a6617a714cd43d35a91c30464b994..27761993461ba7761a8afc57c36eac9ec2754cc4 100644 |
--- a/src/effects/gradients/SkGradientShader.cpp |
+++ b/src/effects/gradients/SkGradientShader.cpp |
@@ -159,7 +159,7 @@ SkGradientShaderBase::SkGradientShaderBase(SkFlattenableReadBuffer& buffer) : IN |
} else { |
fOrigColors = fStorage; |
} |
- buffer.readColorArray(fOrigColors); |
+ buffer.readColorArray(fOrigColors, colorCount); |
{ |
uint32_t packed = buffer.readUInt(); |