]> git.ipfire.org Git - thirdparty/suricata.git/commit
json: fix malformed output 1754/head
authorVictor Julien <victor@inliniac.net>
Mon, 23 Nov 2015 08:56:51 +0000 (09:56 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 23 Nov 2015 08:56:51 +0000 (09:56 +0100)
commitbec913b40cf9153fd6a021b33cecda97ff76be47
tree585e4e03d96f16e51edbc80056a292a5c87983fa
parentc80990fe1046876753cd7536db32236a77173f23
json: fix malformed output

Even though the json output callback is called with a null terminated
string, it's not useable directly. The size parameter to the callback
might be a lot smaller than the string size. Libjansson gives the size
up to the first point that needs escaping.
src/output-json.c