[Bro-Dev] #485: Error when defining vectors of records with optional fields

Bro Tracker bro at tracker.bro-ids.org
Fri Aug 12 08:03:18 PDT 2011


#485: Error when defining vectors of records with optional fields
-----------------------+------------------------
  Reporter:  vallenti  |      Owner:
      Type:  Problem   |     Status:  new
  Priority:  Normal    |  Milestone:  Bro1.6
 Component:  Bro       |    Version:  git/master
Resolution:            |   Keywords:
-----------------------+------------------------

Comment (by jsiwek):

 In [8c20d2051fe9016874015fb49b68583525ef9fbf/bro]:
 {{{
 #!CommitTicketReference repository="bro"
 revision="8c20d2051fe9016874015fb49b68583525ef9fbf"
 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:1>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker



More information about the bro-dev mailing list