summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2015-11-11 17:52:08 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-11-11 17:52:08 +0000
commit8c85c00b5e8fffb226f4af225a67425b8d0f190b (patch)
tree8c1ddf5f8c76da9e03a5d11be2e3f00d5b35ce6d
parent8fa7e93050f5b3d7ccac8775fee302f1f4394d4f (diff)
parenta1f563134065abb360096cc06f6bfe4a8cca7a48 (diff)
Merge "Fix memory corruption in SpotShadow"
-rw-r--r--libs/hwui/SpotShadow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/SpotShadow.cpp b/libs/hwui/SpotShadow.cpp
index b8c98041a6bf..3186a8e9735e 100644
--- a/libs/hwui/SpotShadow.cpp
+++ b/libs/hwui/SpotShadow.cpp
@@ -742,7 +742,7 @@ inline void genNewPenumbraAndPairWithUmbra(const Vector2* penumbra, int penumbra
// vertex's location.
int newPenumbraNumber = indexDelta - 1;
- float accumulatedDeltaLength[newPenumbraNumber];
+ float accumulatedDeltaLength[indexDelta];
float totalDeltaLength = 0;
// To save time, cache the previous umbra vertex info outside the loop