[Bro-Dev] #931: Ascii writer does not escape empty sets / vectors
Bro Tracker
bro at tracker.bro-ids.org
Wed Jan 16 17:50:50 PST 2013
#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
More information about the bro-dev
mailing list