]> git.ipfire.org Git - thirdparty/haproxy.git/commit
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>
Thu, 10 Apr 2025 20:10:26 +0000 (22:10 +0200)
commitea3c96369f4a5def90888c9207cd88010d473eb4
treeeae41a84ba0c1cc92a7bbe71e850707464f6eb91
parent7b6df86a834883f27f6f7d18d0caa8a6ea128c14
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.
src/hlua.c