]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: map: fix segfault during 'show map/acl' on cli.
authorEmeric Brun <ebrun@haproxy.com>
Thu, 29 Jun 2017 13:40:33 +0000 (15:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 30 Jun 2017 04:49:42 +0000 (06:49 +0200)
commit8d85aa44dabb772cf99360c41143486875f3e383
treef0823e8298c3712f7a5bade83d198e1a44851806
parentd6871f785f5a57a051cf593df64d79927180699f
BUG/MAJOR: map: fix segfault during 'show map/acl' on cli.

The reference of the current map/acl element to dump could
be destroyed if map is updated from an 'http-request del-map'
configuration rule or throught a 'del map/acl' on CLI.

We use a 'back_refs' chaining element to fix this. As it
is done to dump sessions.

This patch needs also fix:
'BUG/MAJOR: cli: fix custom io_release was crushed by NULL.'

To clean the back_ref and avoid a crash on a further
del/clear map operation.

Those fixes should be backported on mainline branches 1.7 and 1.6.

This patch wont directly apply on 1.6.
include/types/applet.h
include/types/pattern.h
src/map.c
src/pattern.c