From: Jérémie Astor Date: Sun, 24 May 2020 20:07:25 +0000 (+0200) Subject: :art: Improve overflow X-Git-Tag: nightly~1522 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=e2432c5f606aa3b3561bdebee20ae356b1a07bed;p=gwion.git :art: Improve overflow --- 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;