[Bro-Dev] #779: missing values cause bro to crash when used inside of a 'when' statement.

Bro Tracker bro at tracker.bro-ids.org
Tue Feb 21 12:25:42 PST 2012


#779: missing values cause bro to crash when used inside of a 'when' statement.
------------------------+---------------------------------------
 Reporter:  justin      |       Type:  Problem
   Status:  new         |   Priority:  Normal
Milestone:              |  Component:  Bro
  Version:  git/master  |   Keywords:  when InterpreterException
------------------------+---------------------------------------
 Simplest test case:

 {{{
 event bro_init()
 {
     local loc: geo_location;
     when (local hostname = lookup_addr(127.0.0.1)){
         print "Location", loc$country_code;
         print "ok";
         terminate();
     }
 }

 }}}


 gives:

 {{{
 terminate called after throwing an instance of 'InterpreterException'
 }}}

 outside of the when block, reporter.log would get:


 {{{
 Reporter::ERROR field value missing [loc$country_code]
 }}}

-- 
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/779>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker



More information about the bro-dev mailing list