]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: hlua: use a local buffer to format the socket addresses
authorWilly Tarreau <w@1wt.eu>
Thu, 6 Aug 2026 07:38:41 +0000 (09:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 6 Aug 2026 16:05:45 +0000 (18:05 +0200)
commit310a9f39ae993dd8dc384edd22fe559e08d5bf53
treecb82e4e81e1f95048fe4d7d68837b701f59a63a8
parente75361765195646a03772e2d7c1789a5deaac836
BUG/MINOR: hlua: use a local buffer to format the socket addresses

hlua_socket_info() formats the peer or local address of a Lua socket into
a function-static buffer shared by all threads. But there's no reason for
this buffer to be static, and it can cause inter-thread corruption. Let's
just drop the static modifier so that the address lies in the stack.

It can be backported to all versions since it's been there since 1.6
when sockets were introduced to Lua.

Reported-by: Claude (ANT-2026-W66XVDTK)
src/hlua.c