]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: ssl: fix off-by-one in ALPN list allocation
authorMarcoen Hirschberg <marcoen@gmail.com>
Fri, 12 Feb 2016 16:05:24 +0000 (17:05 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Feb 2016 16:10:52 +0000 (17:10 +0100)
commitbef6091cff924aebb6d0006642db50b23ab2ee23
treeb484fdd89322c93f13d4344e1c2c51b49fe8f3de
parent7282d8eb8b5af097c95ad2e82f861415cf0ed3c9
BUG/MEDIUM: ssl: fix off-by-one in ALPN list allocation

The first time I tried it (1.6.3) I got a segmentation fault :(

After some investigation with gdb and valgrind I found the
problem. memcpy() copies past an allocated buffer in
"bind_parse_alpn". This patch fixes it.

[wt: this fix must be backported into 1.6 and 1.5]
src/ssl_sock.c