]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: tools: fix off-by-one in port size check
authorWilly Tarreau <w@1wt.eu>
Fri, 6 Jan 2017 15:46:22 +0000 (16:46 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 Jan 2017 15:46:22 +0000 (16:46 +0100)
commitd7dad1bc49176b9e2c6bc93d5918313b8054524e
tree9d68be1eea1df686b3bef673a1b961a06432a87b
parent4c18346c0f18e8ac470bd0cb40b1b895e9345e26
BUG/MINOR: tools: fix off-by-one in port size check

port_to_str() checks that the port size is at least 5 characters instead
of at least 6. While in theory it could permit a buffer overflow, it's
harmless because all callers have at least 6 characters here.

This fix needs to be backported to 1.7, 1.6 and 1.5.
src/standard.c