]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEBUG: fd: make sure we never try to insert/delete an impossible FD number
authorWilly Tarreau <w@1wt.eu>
Mon, 31 Jan 2022 19:05:02 +0000 (20:05 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 31 Jan 2022 20:00:35 +0000 (21:00 +0100)
commit9aa324de2d9f69d74f5b30c33a78d3a38501342f
tree614fac67a877597039f9ef71046aa454148734ae
parent5ea9fa62e227ba7d1a26f1edebd2acbaf3213331
DEBUG: fd: make sure we never try to insert/delete an impossible FD number

It's among the cases that would provoke memory corruption, let's add
some tests against negative FDs and those larger than the table. This
must never ever happen and would currently result in silent corruption
or a crash. Better have a noticeable one exhibiting the call chain if
that were to happen.
include/haproxy/fd.h
src/fd.c