]> git.ipfire.org Git - thirdparty/suricata-verify.git/commit
runner: handle binary output from suricata stderr/stdout
authorJason Ish <jason.ish@oisf.net>
Thu, 15 Sep 2022 15:34:48 +0000 (09:34 -0600)
committerJason Ish <jason.ish@oisf.net>
Fri, 16 Sep 2022 22:07:02 +0000 (16:07 -0600)
commitc8ff4a83bacada2c222b6bc432b0d3b3469b45f1
tree2640108c72db9ceddae5ea756c277b413ec7a2cd
parent5538b423184ac4eb4e3b1e1cb2490ab78c3c1fd4
runner: handle binary output from suricata stderr/stdout

Don't attempt to decode output from Suricata stderr/stdout as utf-8, it
is required for relaying the output from Suricata to the log files,
in fact, its not even desired.  The log files should have a verbatim
copy of the output for analysis.

Only attempt to utf-8 decode the output when logging in verbose mode,
and then if that fails, fallback to logging the data as a byte buffer.
run.py