zeek/src/threading
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
..
formatters Skip negative integers in input framework where not type-permissible 2021-01-28 23:46:43 -08:00
BasicThread.cc GH-1079: Use full paths starting with zeek/ when including files 2020-11-12 12:15:26 -07:00
BasicThread.h Fix indentation of namespaced aliases 2020-08-20 16:11:46 -07:00
Formatter.cc GH-1079: Use full paths starting with zeek/ when including files 2020-11-12 12:15:26 -07:00
Formatter.h GH-1079: Use full paths starting with zeek/ when including files 2020-11-12 12:15:26 -07:00
Manager.cc GH-1079: Use full paths starting with zeek/ when including files 2020-11-12 12:15:26 -07:00
Manager.h GH-1079: Use full paths starting with zeek/ when including files 2020-11-12 12:15:26 -07:00
MsgThread.cc GH-1079: Use full paths starting with zeek/ when including files 2020-11-12 12:15:26 -07:00
MsgThread.h GH-1079: Use full paths starting with zeek/ when including files 2020-11-12 12:15:26 -07:00
Queue.h GH-1079: Use full paths starting with zeek/ when including files 2020-11-12 12:15:26 -07:00
SerialTypes.cc GH-1079: Use full paths starting with zeek/ when including files 2020-11-12 12:15:26 -07:00
SerialTypes.h Remove BroValUnion by hoisting underlying Val subclass values into subclasses 2021-01-14 11:58:59 -07:00