Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89e02e5e authored by Keith Mok's avatar Keith Mok Committed by Steve Kondik
Browse files

Fix memory corruption in SpotShadow

The array list is too small and causing stack corruption

Change-Id: I0e34dad39357fb63977d2ce6f183ced7b6a632be
parent f7fe8ce3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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