#931: Ascii writer does not escape empty sets / vectors
---------------------+------------------------
Reporter: amannb | Owner:
Type: Problem | Status: new
Priority: Normal | Milestone: Bro2.2
Component: Bro | Version: git/master
Keywords: |
---------------------+------------------------
The script
{{{
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")
]);
}
}}}
Outputs the line
{{{
EMPTY
}}}
to a log-file. This makes it impossible to distinguish a line containing
EMPTY from a line containing an empty set.
--
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/931>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker
_______________________________________________
bro-dev mailing list
[email protected]
http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev