commit | bef6091cff924aebb6d0006642db50b23ab2ee23 | [log] [tgz] |
---|---|---|
author | Marcoen Hirschberg <marcoen@gmail.com> | Fri Feb 12 17:05:24 2016 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Feb 12 17:10:52 2016 +0100 |
tree | b484fdd89322c93f13d4344e1c2c51b49fe8f3de | |
parent | 7282d8eb8b5af097c95ad2e82f861415cf0ed3c9 [diff] |
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]