shithub: sl

Download patch

ref: 8fe167486bc187b6319054be3b125e14d0e0a416
parent: 0be0b9dd1aecc3e1827dbdb4a0383d347bbd523e
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Mon Mar 27 12:54:25 EDT 2023

maxstack: don't run over the code

--- a/maxstack.inc
+++ b/maxstack.inc
@@ -5,7 +5,8 @@
     uint32_t i, n, sp = 0, maxsp = 0;
 
     while (ip < end) {
-        if ((int32_t)sp > (int32_t)maxsp) maxsp = sp;
+        if ((int32_t)sp > (int32_t)maxsp)
+            maxsp = sp;
         op = *ip++;
         switch (op) {
         case OP_LOADA: case OP_LOADI8: case OP_LOADV: case OP_LOADG:
--