]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: thread: lua: Wrong SSL context initialization.
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 29 Aug 2018 11:46:24 +0000 (13:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 30 Aug 2018 08:06:45 +0000 (10:06 +0200)
commit54f2bcf22bbf91090c4a1949fab76e9d7b8fd4ee
tree98600ad14c8d584a38edcf97c41708b21223b78c
parentc7ffa91763de09b9adef197ca3d67395cc411fc2
BUG/MAJOR: thread: lua: Wrong SSL context initialization.

When calling ->prepare_srv() callback for SSL server which
depends on global "nbthread" value, this latter was not already parsed,
so equal to 1 default value. This lead to bad memory accesses.

Thank you to Pieter (PiBa-NL) for having reported this issue and
for having provided a very helpful reg testing file to reproduce
this issue (reg-test/lua/b00002.*).

Must be backported to 1.8.
reg-tests/lua/b00002.lua [new file with mode: 0644]
reg-tests/lua/b00002.vtc [new file with mode: 0644]
reg-tests/lua/b00002_print_r.lua [new file with mode: 0644]
reg-tests/lua/common.pem [new symlink]
src/hlua.c