]> git.kaiwu.me - haproxy.git/commit
REGTESTS: log: check the escaping performed by the +json option
authorWilly Tarreau <w@1wt.eu>
Thu, 3 Sep 2026 05:05:35 +0000 (07:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 3 Sep 2026 06:32:25 +0000 (08:32 +0200)
commit6457968043ccab554d1b52ecf04e45d35cc4c2b9
treeb2f40b448ce36c556d34ca21b47e16645b5ee222
parentdb9492bcfc9523bd46b752b5aa4283ae44cc4d6a
REGTESTS: log: check the escaping performed by the +json option

Check that a control character, a byte above the printable range and the
two characters which JSON requires to be escaped all come out escaped, and
that nothing outside 32..126 reaches the ring. The test fails without the
previous commit.
reg-tests/log/log_json.vtc [new file with mode: 0644]