summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2015-11-11 18:08:15 +0000
committer android-build-merger <android-build-merger@google.com> 2015-11-11 18:08:15 +0000
commit5bb2fdb425dab346fb83c7f2bf9afa03bdf79fd6 (patch)
treef96d790c35666b74fd44fedff5336462edd80bff
parent3c8f7b53dae22d5ad8d28a48259eca9f83c66226 (diff)
parent8c8353a8c3152bc3ee4b74815d64c65c2c9d1991 (diff)
Merge "Fix memory corruption in SpotShadow" am: 8c85c00b5e
am: 8c8353a8c3 * commit '8c8353a8c3152bc3ee4b74815d64c65c2c9d1991': 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 7a2b9af2ba57..5d36a03c43c5 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