BUG/MINOR: hlua: fix invalid errmsg use in hlua_init()
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 10 Apr 2025 15:35:53 +0000 (17:35 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Tue, 15 Apr 2025 20:27:00 +0000 (22:27 +0200)
commit4d9fee5a728eb0e47fc5d1f6ebf8f2a2f18867fa
tree0987d1d5e8c3a83216fe76796ac2c769d1d056be
parentd06d06ed9753a5689f0d32bf7923f4acdcaff88a
BUG/MINOR: hlua: fix invalid errmsg use in hlua_init()

errmsg is used with memprintf and friends, thus it must be NULL
initialized before being passed to memprintf, else invalid read will
occur.

However in hlua_init() the errmsg value isn't initialized, let's fix that

This is really minor because it would only cause issue on error paths,
yet it may be backported to all stable versions, just in case.

(cherry picked from commit ea3c96369f4a5def90888c9207cd88010d473eb4)
Signed-off-by: Aurelien DARRAGON <adarragon@haproxy.com>
(cherry picked from commit 50838c51a97113d0c9b95d22b4312c9a80a0409d)
Signed-off-by: Aurelien DARRAGON <adarragon@haproxy.com>
src/hlua.c