From d4d68bdf962a9059ae317837bedb34c802410159 Mon Sep 17 00:00:00 2001 From: "Robert G. Jakabosky" Date: Sun, 13 Mar 2011 20:53:27 -0700 Subject: [PATCH] Fixed memory corruption with LuaJIT2. If you turn on LUA_USE_APICHECK in LuaJIT2, then an exception will be raised in lua_settop(cc, 0). I do not see any reason why lua_settop() should be call when Lua yields. --- src/ngx_http_lua_util.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ngx_http_lua_util.c b/src/ngx_http_lua_util.c index ff8331ba0c..5553bf80f5 100644 --- a/src/ngx_http_lua_util.c +++ b/src/ngx_http_lua_util.c @@ -963,7 +963,6 @@ ngx_http_lua_run_thread(lua_State *L, ngx_http_request_t *r, ngx_http_lua_dump_postponed(r); #endif - lua_settop(cc, 0); return NGX_AGAIN; case 0: