]> git.kaiwu.me - haproxy.git/commit
MINOR: log: pass the input end to the _lf_encode_bytes() byte encoders
authorWilly Tarreau <w@1wt.eu>
Mon, 28 Sep 2026 03:19:48 +0000 (05:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Sep 2026 06:12:07 +0000 (08:12 +0200)
commit9375ed867e92e543ecb5a3c0053e05be6fd20f17
tree06729a922a6d4f7e3d207fa2eaa67421bd635ebf
parentcd6c78247ee99f9f513d848fc1476b6bbb31f72f
MINOR: log: pass the input end to the _lf_encode_bytes() byte encoders

The byte encoding callbacks used by _lf_encode_bytes() only receive the
current byte, so they cannot look at the following ones. This will be
needed by the json encoder to detect multi-byte UTF-8 sequences. Let's
pass them <bytes_stop> as well as an end pointer, which is NULL for
NUL-terminated inputs.
src/log.c