]> git.kaiwu.me - haproxy.git/commit
REGTESTS: map: check map_regm inside an ACL over an iterating fetch
authorFrederic Lecaille <flecaille@haproxy.com>
Thu, 10 Sep 2026 13:37:17 +0000 (15:37 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Thu, 10 Sep 2026 13:40:28 +0000 (15:40 +0200)
commit992eda1bbf46e55b60bb0900b4cf6f0fcc8878c5
treef112572b9d4a09150c2e2ebc77276a48d2c8ab97
parent7646c657af79b304c6bff76564d310af5c7de67f
REGTESTS: map: check map_regm inside an ACL over an iterating fetch

This test covers the bug fixed by this commit:

    7646c657a BUG/MEDIUM: map: do not overwrite the fetch context in pat_match_regm()

It uses map_regm in an ACL over req.hdr() with no occurrence. The first
value does not match, so the ACL runs a second iteration of the fetch,
which crashed the process before the fix. A request with two header
values checks that the fetch cursor survives the first iteration.

Thank you to @Michael-JRead for having produced the first version of this reg
test.

This must be backported with the fix above.
reg-tests/http-rules/map_regm_in_acl.map [new file with mode: 0644]
reg-tests/http-rules/map_regm_in_acl.vtc [new file with mode: 0644]