In my notice.log files i frequently find the following two error messages:
run-time error: string with embedded NUL
run-time error: string without NUL terminator
I cannot give specific information about what packets trigger these errors, but it seems that often it is NetBios. I am running Bro 1.4.
What could be the problem that causes the errors, and how could I avoid them? Do these errors have an impact on signature matching (or other Bro functionality)?
When running this code i get the mentioned error messages. They come from the match_pattern call. As mentioned before, it doesn't happen for every packet, only for some, and these are often NetBios.
Do i need to somehow preprocess the data string before matching it? How can I make Bro successfully match such payloads?