]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: lua: ensure large proxy IDs can be represented
authorWilly Tarreau <w@1wt.eu>
Sun, 6 May 2018 12:50:09 +0000 (14:50 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 6 May 2018 12:50:09 +0000 (14:50 +0200)
commit29d698040d6bb56b29c036aeba05f0d52d8ce94b
tree13f38b9f492719f90513a65850af16fe1b79a1ad
parent706d5ee0c366787536213ccd6dea264d20b76a22
BUG/MINOR: lua: ensure large proxy IDs can be represented

In function hlua_fcn_new_proxy() too small a buffer was passed to
snprintf(), resulting in large proxy or listener IDs to make
snprintf() fail. It is unlikely to meet this case but let's fix it
anyway.

This fix must be backported to all stable branches where it applies.
src/hlua_fcn.c