summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2015-11-11 17:59:16 +0000
committer android-build-merger <android-build-merger@google.com> 2015-11-11 17:59:16 +0000
commit8c8353a8c3152bc3ee4b74815d64c65c2c9d1991 (patch)
treede6c0d60e6526796c8038e9262d18b2df1bc3981
parent61abae774e7cf3fd298ecab821692ac17417f4c5 (diff)
parent8c85c00b5e8fffb226f4af225a67425b8d0f190b (diff)
Merge "Fix memory corruption in SpotShadow"
am: 8c85c00b5e * commit '8c85c00b5e8fffb226f4af225a67425b8d0f190b': 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