diff options
author | Mike Pall <mike> | 2011-11-25 19:36:48 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-11-25 19:36:48 +0100 |
commit | 1a42c038071d31a0ba8a300e59bb6b2b1d8d5fb1 (patch) | |
tree | 99ebf74e37401092922ed5bb5872868c814b613c | |
parent | c142b6c53eb8c9cb08ecc3a4db98cc1ff61b5989 (diff) | |
download | luajit-1a42c038071d31a0ba8a300e59bb6b2b1d8d5fb1.tar.gz luajit-1a42c038071d31a0ba8a300e59bb6b2b1d8d5fb1.tar.bz2 luajit-1a42c038071d31a0ba8a300e59bb6b2b1d8d5fb1.zip |
Fix stack check in side exit.
-rw-r--r-- | src/lj_snap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_snap.c b/src/lj_snap.c index 89f73982..10fd6af7 100644 --- a/src/lj_snap.c +++ b/src/lj_snap.c | |||
@@ -352,7 +352,7 @@ const BCIns *lj_snap_restore(jit_State *J, void *exptr) | |||
352 | setcframe_pc(cframe_raw(L->cframe), pc+1); | 352 | setcframe_pc(cframe_raw(L->cframe), pc+1); |
353 | 353 | ||
354 | /* Make sure the stack is big enough for the slots from the snapshot. */ | 354 | /* Make sure the stack is big enough for the slots from the snapshot. */ |
355 | if (LJ_UNLIKELY(L->base + snap->topslot > tvref(L->maxstack))) { | 355 | if (LJ_UNLIKELY(L->base + snap->topslot >= tvref(L->maxstack))) { |
356 | L->top = curr_topL(L); | 356 | L->top = curr_topL(L); |
357 | lj_state_growstack(L, snap->topslot - curr_proto(L)->framesize); | 357 | lj_state_growstack(L, snap->topslot - curr_proto(L)->framesize); |
358 | } | 358 | } |