zeek/testing/btest/scripts/base/frameworks
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
..
analyzer General btest cleanup 2020-08-11 11:26:22 -07:00
cluster General btest cleanup 2020-08-11 11:26:22 -07:00
config Improve stability of config/cluster_resend btest 2020-08-20 16:26:46 -07:00
control Avoid race condition in control/id_value btest 2020-09-22 14:11:17 -07:00
dpd Add DPD::max_violations option 2019-07-19 13:00:02 -07:00
file-analysis canonicalization for an error message in one of the alternative test baselines 2021-01-10 14:44:46 -08:00
input Skip negative integers in input framework where not type-permissible 2021-01-28 23:46:43 -08:00
intel Potentially improve intel/remove-item-cluster btest 2020-08-27 18:01:33 -07:00
logging Canonifier improvements for the scripts.base.frameworks.logging.ascii-double test 2020-12-06 20:19:52 -08:00
netcontrol General btest cleanup 2020-08-11 11:26:22 -07:00
notice Improve notice/suppression-cluster btest to avoid race potential 2020-09-14 12:28:25 -07:00
openflow Adjust more btest timings 2020-08-11 11:26:22 -07:00
packet-filter General btest cleanup 2020-08-11 11:26:22 -07:00
reporter General btest cleanup 2020-08-11 11:26:22 -07:00
software General btest cleanup 2020-08-11 11:26:22 -07:00
sumstats Sumstats: allow users to manage epoch manually 2020-11-16 15:48:46 +00:00