]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: map: fix map_regm with backref
authorEmeric Brun <ebrun@haproxy.com>
Tue, 17 Jul 2018 13:47:07 +0000 (09:47 -0400)
committerWilly Tarreau <w@1wt.eu>
Thu, 16 Aug 2018 17:44:04 +0000 (19:44 +0200)
commit271022150d7961b9aa39dbfd88e0c6a4bc48c3ee
treeaa035fe05162ab7060e3991e5b3e9fffb57309e1
parente1b4ed4352619f985d7d65f5d95a830ef5775c46
BUG/MINOR: map: fix map_regm with backref

Due to a cascade of get_trash_chunk calls the sample is
corrupted when we want to read it.

The fix consist to use a temporary chunk to copy the sample
value and use it.

[wt: for 1.8 and older, a backport was successfully tested here :
 https://www.mail-archive.com/haproxy@formilux.org/msg30694.html]
src/map.c