diff options
author | Keith Mok <kmok@cyngn.com> | 2015-11-10 16:52:05 -0800 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2015-11-11 04:18:59 -0800 |
commit | 89e02e5eb0c3d60103df0a265c987426ecd5ae51 (patch) | |
tree | 172a5db9abebb2c17147b4a4d9e377327087ae89 /libs/hwui | |
parent | f7fe8ce3da630dd5ffeb1f7da1207f1caa9660f2 (diff) | |
download | frameworks_base-89e02e5eb0c3d60103df0a265c987426ecd5ae51.zip frameworks_base-89e02e5eb0c3d60103df0a265c987426ecd5ae51.tar.gz frameworks_base-89e02e5eb0c3d60103df0a265c987426ecd5ae51.tar.bz2 |
Fix memory corruption in SpotShadow
The array list is too small and causing stack corruption
Change-Id: I0e34dad39357fb63977d2ce6f183ced7b6a632be
Diffstat (limited to 'libs/hwui')
-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 b8c9804..3186a8e 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 |