diff options
author | Mike Pall <mike> | 2023-09-21 04:43:40 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2023-09-21 04:43:40 +0200 |
commit | aa6b15c1a8922848bd6f596ba384824ca3fe0f5f (patch) | |
tree | d3827c887f24c540e39c858ad65a9a35e3ef2d8c | |
parent | b138ccfa918518a152bc830fef3d53cd0a922e36 (diff) | |
download | luajit-aa6b15c1a8922848bd6f596ba384824ca3fe0f5f.tar.gz luajit-aa6b15c1a8922848bd6f596ba384824ca3fe0f5f.tar.bz2 luajit-aa6b15c1a8922848bd6f596ba384824ca3fe0f5f.zip |
Follow-up fix for stack overflow handling cleanup.
-rw-r--r-- | src/lj_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_state.c b/src/lj_state.c index 1a3473b4..c2f0b115 100644 --- a/src/lj_state.c +++ b/src/lj_state.c | |||
@@ -102,7 +102,7 @@ void LJ_FASTCALL lj_state_growstack(lua_State *L, MSize need) | |||
102 | if (L->stacksize > LJ_STACK_MAXEX) | 102 | if (L->stacksize > LJ_STACK_MAXEX) |
103 | lj_err_throw(L, LUA_ERRERR); /* Does not invoke an error handler. */ | 103 | lj_err_throw(L, LUA_ERRERR); /* Does not invoke an error handler. */ |
104 | /* 1. We are _at_ the limit after the last growth. */ | 104 | /* 1. We are _at_ the limit after the last growth. */ |
105 | if (!L->status) { /* 2. Throw 'stack overflow'. */ | 105 | if (L->status < LUA_ERRRUN) { /* 2. Throw 'stack overflow'. */ |
106 | L->status = LUA_ERRRUN; /* Prevent ending here again for pushed msg. */ | 106 | L->status = LUA_ERRRUN; /* Prevent ending here again for pushed msg. */ |
107 | lj_err_msg(L, LJ_ERR_STKOV); /* May invoke an error handler. */ | 107 | lj_err_msg(L, LJ_ERR_STKOV); /* May invoke an error handler. */ |
108 | } | 108 | } |