From e2432c5f606aa3b3561bdebee20ae356b1a07bed Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sun, 24 May 2020 22:07:25 +0200 Subject: [PATCH] :art: Improve overflow --- src/vm/vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm/vm.c b/src/vm/vm.c index 1df6c21d..349f959c 100644 --- a/src/vm/vm.c +++ b/src/vm/vm.c @@ -643,7 +643,7 @@ regtomemother: memcpy(mem+VAL, reg, VAL2); DISPATCH() overflow: - if(overflow_(mem, shred)) { + if(overflow_(mem + VAL2, shred)) { shred->pc = PC; exception(shred, "StackOverflow"); continue; -- 2.43.0