diff options
author | 2015-11-11 18:17:25 +0000 | |
---|---|---|
committer | 2015-11-11 18:17:25 +0000 | |
commit | 7d9eb2aeb07957eaf407003c2235ee3ea881d8c1 (patch) | |
tree | a88dd46eebe7fd7d0c42505b981454f6d45410d5 | |
parent | 3cc97f524af679d93c2d4a9e93720c09e1ec924c (diff) | |
parent | 5bb2fdb425dab346fb83c7f2bf9afa03bdf79fd6 (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.cpp | 2 |
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 |