zeek/scripts/base
Jon Siwek 76fb1e7fd0 Fixes to decode_netbios_name and decode_netbios_name_type BIFs
Fixes to `decode_netbios_name`:

* Improve validation that input string is a NetBIOS encoding
  (32 bytes, with characters ranging from 'A' to 'P').  This helps
  prevent Undefined Behavior of left-shifting negative values.
  Invalid encodings now cause a return-value of an empty string.

* More liberal in what decoded characters are allowed.  Namely,
  spaces are now allowed (but any trailing null-bytes and spaces
  are trimmed, similar to before).

Fixes to `decode_netbios_name_type`:

* Improve validation that input string is a NetBIOS encoding
  (32 bytes, with characters ranging from 'A' to 'P').  This helps
  prevent Undefined Behavior of left-shifting negative values and
  a heap-buffer-overread when the input string is too small.
  Invalid encodings now cause a return-value of 256.
2021-04-27 15:27:04 -07:00
..
files Support for log filter policy hooks 2020-09-30 12:32:45 -07:00
frameworks fixed out-of-range enum constant 2021-04-01 19:16:07 -07:00
misc Tweak find-filtered-trace to not flag traces if they have non-TCP 2020-09-25 11:29:44 +00:00
packet-protocols GH-1389: Skip VN-Tag headers 2021-02-01 14:34:56 -07:00
protocols Fixes to decode_netbios_name and decode_netbios_name_type BIFs 2021-04-27 15:27:04 -07:00
utils lint fixes: ensuring functions return values, robustness to nil Val's 2021-03-18 08:21:19 -07:00
init-bare.zeek Reference the manual's explanation of originator and responder from conn_id 2021-04-09 10:31:56 -07:00
init-default.zeek Add backtrace() and print_backtrace() 2020-07-03 14:09:31 -07:00
init-frameworks-and-bifs.zeek GH-1122: Allow initializing globals with calls to subdir BIFs 2020-08-27 12:20:37 -07:00