[Bro-Dev] #474: &raw_output turns null values into \0

Bro Tracker bro at tracker.bro-ids.org
Wed Aug 3 09:06:37 PDT 2011

#474: &raw_output turns null values into \0
  Reporter:  seth     |      Owner:
      Type:  Problem  |     Status:  new
  Priority:  Normal   |  Milestone:  Bro1.6
 Component:  Bro      |    Version:
Resolution:           |   Keywords:  preview

Comment (by jsiwek):

 In [648e1bda267244dc3f785a9718044b71d73f427b/bro]:
 #!CommitTicketReference repository="bro"
 Fix &raw_output and enable_raw_output interpretation of NUL characters

 When using a `print` statement to write to a file that has raw output
 enabled, NUL characters in string are no longer interpreted into "\0",
 no newline is appended afterwards, and each argument to `print` is
 written to the file without any additional separation.

 (Re)Assigning to identifiers with the &raw_output attribute should also
 now correctly apply the attribute to the file value being assigned.

 Note that the write_file BiF should already be capable of raw string
 data to a file, expect it bypasses the print_hook event.

 Addresses #474

Ticket URL: <http://tracker.bro-ids.org/bro/ticket/474#comment:2>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker

More information about the bro-dev mailing list