[Bro-Dev] [JIRA] (BIT-779) missing values cause bro to crash when used inside of a 'when' statement.

Seth Hall (JIRA) jira at bro-tracker.atlassian.net
Wed Aug 14 13:03:21 PDT 2013


    [ https://bro-tracker.atlassian.net/browse/BIT-779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506#comment-13506 ] 

Seth Hall commented on BIT-779:
-------------------------------

This is on git master?  Keep in mind that this is *not* fixed in 2.1.
                
> missing values cause bro to crash when used inside of a 'when' statement.
> -------------------------------------------------------------------------
>
>                 Key: BIT-779
>                 URL: https://bro-tracker.atlassian.net/browse/BIT-779
>             Project: Bro Issue Tracker
>          Issue Type: Problem
>          Components: Bro
>    Affects Versions: git/master
>            Reporter: justin
>            Priority: High
>              Labels: InterpreterException, when
>             Fix For: 2.2
>
>
> Simplest test case:
> {noformat}
> event bro_init()
> {
>     local loc: geo_location;
>     when (local hostname = lookup_addr(127.0.0.1)){
>         print "Location", loc$country_code;
>         print "ok";
>         terminate();
>     }
> }
> {noformat}
> gives:
> {noformat}
> terminate called after throwing an instance of 'InterpreterException'
> {noformat}
> outside of the when block, reporter.log would get:
> {noformat}
> Reporter::ERROR	field value missing [loc$country_code]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://bro-tracker.atlassian.net/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the bro-dev mailing list