]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hlua: some luaL_checktype() calls were not guarded with MAY_LJMP
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 5 Oct 2022 09:46:45 +0000 (11:46 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 12 Oct 2022 07:22:05 +0000 (09:22 +0200)
commitd83d045cda401caf505ea57384eea02aa4a70e01
tree4d9fe88a62752ed8537b93835b3b053c58392f07
parent487d04f6d7410059b44b69d56c53be7802963bab
MINOR: hlua: some luaL_checktype() calls were not guarded with MAY_LJMP

In hlua code, we mark every function that may longjump using
MAY_LJMP macro so it's easier to identify them by reading the code.

However, some luaL_checktypes() were performed without the MAY_LJMP.

According to lua doc:
Functions called luaL_check* always raise an error if
the check is not satisfied.

-> Adding the missing MAY_LJMP for those luaLchecktypes() calls.

No backport needed.
src/hlua.c