diff options
| author | 2015-11-11 17:59:16 +0000 | |
|---|---|---|
| committer | 2015-11-11 17:59:16 +0000 | |
| commit | 8c8353a8c3152bc3ee4b74815d64c65c2c9d1991 (patch) | |
| tree | de6c0d60e6526796c8038e9262d18b2df1bc3981 | |
| parent | 61abae774e7cf3fd298ecab821692ac17417f4c5 (diff) | |
| parent | 8c85c00b5e8fffb226f4af225a67425b8d0f190b (diff) | |
Merge "Fix memory corruption in SpotShadow"
am: 8c85c00b5e
* commit '8c85c00b5e8fffb226f4af225a67425b8d0f190b':
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 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 |