BUG/MEDIUM: log: use function "escape_string" instead of "escape_chunk"
authorDragan Dosen <ddosen@haproxy.com>
Mon, 25 Jul 2016 09:35:02 +0000 (11:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 26 Jul 2016 13:25:32 +0000 (15:25 +0200)
commitdb1b6f9ecb552d0337a1471305ad687084947d13
tree0351bec3f41786148b7b53868d462ded525f7055
parent1a5d06032b989f81c13dee32ea297ede6f1e8b94
BUG/MEDIUM: log: use function "escape_string" instead of "escape_chunk"

In function lf_text_len(), we used escape_chunk() to escape special
characters. There could be a problem if len is greater than the real src
string length (zero-terminated), eg. when calling lf_text_len() from
lf_text().
src/log.c