]> git.ipfire.org Git - thirdparty/suricata.git/commit
http/eve: use set_string_from_bytes where appropriate
authorJason Ish <jason.ish@oisf.net>
Fri, 4 Sep 2020 15:04:34 +0000 (09:04 -0600)
committerVictor Julien <victor@inliniac.net>
Mon, 7 Sep 2020 12:24:48 +0000 (14:24 +0200)
commit583593aa1b8dafdbbe177a4b74cdcd325bcf5002
treea9ffd921a2537e4d98266596a1073d338b946148
parentd6cf4b33353131f2705f3e0e3cb4091bf4613a31
http/eve: use set_string_from_bytes where appropriate

The JsonBuilder set_string_from_bytes will escape unprintable
characters in the output stream. Using BytesToStringBuffer
can generate invalid UTF-8 which prevents the conversion from
a C string to a Rust string.
src/output-json-http.c