[Bro-Dev] #485: Error when defining vectors of records with optional fields
Bro Tracker
bro at tracker.bro-ids.org
Sat Aug 13 12:15:35 PDT 2011
#485: Error when defining vectors of records with optional fields
----------------------------+------------------------
Reporter: vallenti | Owner:
Type: Merge Request | Status: new
Priority: Normal | Milestone: Bro1.6
Component: Bro | Version: git/master
Resolution: | Keywords:
----------------------------+------------------------
Comment (by robin):
In [6f060a58d6a5f8f38aa97f2ba94382a247956ec2/bro]:
{{{
#!CommitTicketReference repository="bro"
revision="6f060a58d6a5f8f38aa97f2ba94382a247956ec2"
Fix vector initialization for lists of records with optional types.
If possible the list elements now get promoted to the yield type of the
vector. There was also a problem with the value returned by the record
constructor expression's eval being completely unref'd since the vector
element assignment function doesn't ref the element -- so I changed it
to ref values if they just constructed before assigning them to the
vector.
Addresses #485.
}}}
--
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/485#comment:3>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list