]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: map: fix a segfault when using http-request set-map
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 11 Jun 2018 08:53:46 +0000 (10:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 Jun 2018 09:02:06 +0000 (11:02 +0200)
commit579fb25b6215d64a2e064550c1d186547414cc68
treebbc8bc39a09bba1fa7b87f86e3c6a192d7f86a57
parent6e1796e85d5351535416018112fc19ccacc7fc5e
BUG/MAJOR: map: fix a segfault when using http-request set-map

The bug happens with an existing entry, when you try to overwrite the
value with wrong data, for example, a string when the type is INT.

The code path was not secure and tried to set *err and *merr while
err = merr = NULL when performing an http action.

Must be backported in 1.6, 1.7, 1.8.
src/pattern.c