commit | 9344dd099970e7fee9b83301564b719ff78e69aa | [log] [tgz] |
---|---|---|
author | Marcoen Hirschberg <marcoen@gmail.com> | Fri Feb 12 17:05:24 2016 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Feb 25 12:24:20 2016 +0100 |
tree | 7add967a02079f30203d3c5d31ca0b27d7a31ed1 | |
parent | 6f9344463b19998ae21ca95fb5bd2cecede91118 [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] (cherry picked from commit bef6091cff924aebb6d0006642db50b23ab2ee23) (cherry picked from commit 9cc9c6db93841fd9395749ac6f3d0646ed41f3ab)