[Bro-Dev] [JIRA] (BIT-931) Ascii writer does not escape empty sets / vectors
Jon Siwek (JIRA)
jira at bro-tracker.atlassian.net
Mon Mar 16 15:04:00 PDT 2015
[ https://bro-tracker.atlassian.net/browse/BIT-931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jon Siwek reassigned BIT-931:
-----------------------------
Assignee: Seth Hall
> Ascii writer does not escape empty sets / vectors
> -------------------------------------------------
>
> Key: BIT-931
> URL: https://bro-tracker.atlassian.net/browse/BIT-931
> Project: Bro Issue Tracker
> Issue Type: Problem
> Components: Bro
> Affects Versions: git/master
> Reporter: Johanna Amann
> Assignee: Seth Hall
> Fix For: 2.4
>
>
> The script
> {noformat}
> redef LogAscii::empty_field = "EMPTY";
> module SSH;
> export {
> redef enum Log::ID += { LOG };
> type Log: record {
> ss: set[string];
> } &log;
> }
> event bro_init()
> {
> Log::create_stream(SSH::LOG, [$columns=Log]);
> Log::write(SSH::LOG, [
> $ss=set("EMPTY")
> ]);
> }
> {noformat}
> Outputs the line
> {noformat}
> EMPTY
> {noformat}
> to a log-file. This makes it impossible to distinguish a line containing EMPTY from a line containing an empty set.
--
This message was sent by Atlassian JIRA
(v6.4-OD-15-055#64014)
More information about the bro-dev
mailing list