]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: signal: signal handler does not properly check for signal bounds
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Jan 2013 01:06:05 +0000 (02:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Jan 2013 15:19:19 +0000 (16:19 +0100)
commit1a53b5ef583988ca0405007f3ef47d2114da9546
treeb5617558b2ba8ceb36fccbf4aba24632c57cb721
parent8ab505bdefb57d2e097d174866ba8ddd207acc47
BUG/MEDIUM: signal: signal handler does not properly check for signal bounds

sig is checked for < 0 or > MAX_SIGNAL, but the signal array is
MAX_SIGNAL in size. At the moment, MAX_SIGNAL is 256. If a system supports
more than MAX_SIGNAL signals, then sending signal MAX_SIGNAL to the process
will corrupt one integer in its memory and might also crash the process.

This bug is also present in 1.4 and 1.3, and the fix must be backported.

Reported-by: Dinko Korunic <dkorunic@reflected.net>
src/signal.c