From: Tim Duesterhus Date: Sat, 11 Sep 2021 21:17:25 +0000 (+0200) Subject: BUG/MEDIUM lua: Add missing call to RESET_SAFE_LJMP in hlua_filter_new() X-Git-Tag: v2.5-dev7~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22817382566072991f912903d6ac3d2b236e351e;p=thirdparty%2Fhaproxy.git BUG/MEDIUM lua: Add missing call to RESET_SAFE_LJMP in hlua_filter_new() In one case before exiting leaving the function the panic handler was not reset. Introduced in 69c581a09271e91d306e7b9080502a36abdc415e, which is 2.5+. No backport required. --- diff --git a/src/hlua.c b/src/hlua.c index 72d232491a..915356c09b 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -10005,6 +10005,7 @@ static int hlua_filter_new(struct stream *s, struct filter *filter) /* Check stack size. */ if (!lua_checkstack(s->hlua->T, 1)) { SEND_ERR(s->be, "Lua filter '%s': full stack.\n", conf->reg->name); + RESET_SAFE_LJMP(s->hlua); ret = 0; goto end; }