zeek/testing/btest/scripts/base
Christian Kreibich 38d6b6a98b Skip negative integers in input framework where not type-permissible
Script-layer counts, when provided as negative integers in an input
file, got cast to unsigned values because strtoull() does not complain
about negative values. For example, input string "-1" would lead to
value 18446744073709551615 (an all-ones 64-bit int) on x86_64. This is
more likely to be an error than an intent to get very large,
platform-dependent values, so these input lines are now skipped with
according messaging in the reporter.log/stderr.

This also affected ports: -1/tcp got cast to unsigned and only thrown
out because PortVal rejects values > 65535, mapping them to 0. We now
skip such inputs as well.

Updates existing input framework tests to capture the new behavior.
2021-01-28 23:46:43 -08:00
..
files Update btest-diff calls on binary files to using "--binary" 2020-12-06 20:19:52 -08:00
frameworks Skip negative integers in input framework where not type-permissible 2021-01-28 23:46:43 -08:00
misc Tweak find-filtered-trace to not flag traces if they have non-TCP 2020-09-25 11:29:44 +00:00
protocols GH-1352: Added flag to stop processing SMTP headers in attached 2021-01-21 14:55:10 -05:00
utils Update Python invocations to explicit python3 2020-11-25 14:57:09 -08:00