summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2015-11-11 18:17:25 +0000
committer android-build-merger <android-build-merger@google.com> 2015-11-11 18:17:25 +0000
commit7d9eb2aeb07957eaf407003c2235ee3ea881d8c1 (patch)
treea88dd46eebe7fd7d0c42505b981454f6d45410d5
parent3cc97f524af679d93c2d4a9e93720c09e1ec924c (diff)
parent5bb2fdb425dab346fb83c7f2bf9afa03bdf79fd6 (diff)
Merge "Fix memory corruption in SpotShadow" am: 8c85c00b5e am: 8c8353a8c3
am: 5bb2fdb425 * commit '5bb2fdb425dab346fb83c7f2bf9afa03bdf79fd6': 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 bdce73c79993..759e39b2e4e2 100644
--- a/libs/hwui/SpotShadow.cpp
+++ b/libs/hwui/SpotShadow.cpp
@@ -741,7 +741,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