[Bro-Dev] #932: Assigning an uninitialized variable to a vector stops execution of bro script
Bro Tracker
bro at tracker.bro-ids.org
Wed Jan 16 17:55:10 PST 2013
#932: Assigning an uninitialized variable to a vector stops execution of bro
script
---------------------+------------------------
Reporter: amannb | Owner:
Type: Problem | Status: new
Priority: Normal | Milestone: Bro2.2
Component: Bro | Version: git/master
Keywords: |
---------------------+------------------------
Executing the script
{{{
event bro_init() {
local st: string;
local s: vector of string;
s[0] = st;
print "Continuing";
}
}}}
Stops bro with an internal error, when run in non-bare mode.
In bare mode, the error message
{{{
error in ./t.bro, line 6: value used but not set (st)
}}}
is shown and after that script execution continues. This should probably
also work in non-bare-mode to prevent scripting errors from shutting down
a bro-instance.
--
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/932>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list