]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust: safe string handling in logging
authorJason Ish <ish@unx.ca>
Tue, 20 Jun 2017 18:47:34 +0000 (12:47 -0600)
committerVictor Julien <victor@inliniac.net>
Mon, 26 Jun 2017 07:59:54 +0000 (09:59 +0200)
commit717b826d256a021bfd52991e1ec654779f05c3e5
tree1aaa6a2fcd7128cc0f65929ea1477358acff9570
parent1ebad6bd718815ffab239fb50773c82c8ef4df23
rust: safe string handling in logging

In logging (SCLog*), safely convert strings to cstrings instead
of blindly unwrapping them.

Also implement a simple rust logger if the Suricata C context
is not available.
rust/src/core.rs
rust/src/log.rs