[Bro-Dev] [JIRA] (BIT-1026) runtime error with local set of record with optional fields

Jon Siwek (JIRA) jira at bro-tracker.atlassian.net
Mon Mar 16 12:08:00 PDT 2015


     [ https://bro-tracker.atlassian.net/browse/BIT-1026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jon Siwek updated BIT-1026:
---------------------------
    Fix Version/s:     (was: 2.4)
                   2.5

> runtime error with local set of record with optional fields
> -----------------------------------------------------------
>
>                 Key: BIT-1026
>                 URL: https://bro-tracker.atlassian.net/browse/BIT-1026
>             Project: Bro Issue Tracker
>          Issue Type: Problem
>          Components: Bro
>    Affects Versions: git/master
>            Reporter: dmandelb
>             Fix For: 2.5
>
>
> This code:
> {noformat}
> type Foo: record {
>         a: count &optional;
>         b: count &optional;
> };
> event bro_init() {
>         local foos: set[Foo] = {};
>         add foos[[$a=0]];
>         print(foos);
> }
> {noformat}
> Gives this output:
> {noformat}
> error in <no location> and /home/dmandelb/reps/test.bro, line 7: index type doesn't match table ([a=0, b=<uninitialized>] and list of any)
> {
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4-OD-15-055#64014)


More information about the bro-dev mailing list