BUG/MINOR: lua: Some lua init operation are processed unsafe
authorThierry Fournier <thierry.fournier@ozon.io>
Sat, 28 Nov 2020 15:08:02 +0000 (16:08 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 14 Dec 2020 10:38:36 +0000 (11:38 +0100)
commit43d6bb0f44a622189994f2206022b3bdcda9a74a
tree9158c31d0712a26becbeb6af7dabbba7c4ac1c26
parent229e27a1013cfbe17d9c491652071cd38377a658
BUG/MINOR: lua: Some lua init operation are processed unsafe

Operation luaL_openlibs() and lua_prepend path are processed whithout
the safe context, so in case of failure Haproxy aborts or stops without
error message.

This patch could be backported until 1.8

(cherry picked from commit 2f05cc6f86ee6beda9c42a6bb99a9a96fad37b68)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 2b7983c78dc9bb0d143280a813ea75ad985b4167)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit e1968054851cc40be520493c51be7d2bf50297c5)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/hlua.c