]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: hlua: hlua_register_task() may longjmp
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 21 Apr 2023 15:38:37 +0000 (17:38 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 5 May 2023 14:28:32 +0000 (16:28 +0200)
Adding __LJMP prefix to hlua_register_task() to indicate that the
function may longjmp when executed.

src/hlua.c

index b5c9facbc18986350d7c09f7109d33b4cec55b1d..2c68d4fbc4adfe7ec774321c6133d3534f43a1d4 100644 (file)
@@ -8863,7 +8863,7 @@ __LJMP static int hlua_register_init(lua_State *L)
  *
  * <arg1..4> are optional arguments that will be provided to <function>
  */
-static int hlua_register_task(lua_State *L)
+__LJMP static int hlua_register_task(lua_State *L)
 {
        struct hlua *hlua = NULL;
        struct task *task = NULL;