Commit graph

10798 commits

Author SHA1 Message Date
Jon Siwek
f1b0d9a8f0 Silence compiler warnings related to deprecated TYPE_COUNTER 2020-08-03 16:56:07 -07:00
Johanna Amann
22b401f52f Merge remote-tracking branch 'origin/topic/johanna/1095-just-get-rid-of-it'
* origin/topic/johanna/1095-just-get-rid-of-it:
  Re-add TYPE_COUNTER without function and deprecation marker.
  Completely remove all traces of the COUNTER type.
2020-08-03 10:44:43 -07:00
Tim Wojtulewicz
bd983bec8f Update submodule(s)
[nomail]
2020-08-01 09:23:00 -07:00
Tim Wojtulewicz
94e0298f2e Merge remote-tracking branch 'origin/topic/timw/266-namespaces-part3'
* origin/topic/timw/266-namespaces-part3: (24 commits)
  Properly forward-declare zeek::plugin::plugin in DebugLogger
  Rename Brofiler to ScriptCoverageManager
  Move Conn and related types to zeek namespace
  Move reassembler code to namespaces
  Move Session code to namespaces
  Move ODesc to zeek namespace
  Move Stats and related classes to zeek::detail
  Move a few low-use classes to namespaces
  Move DebugLogger to zeek namespaces
  Move all of the hashing classes/functions to zeek::detail namespace
  Move all of the Packet-related classes to namespaces
  Move EventMgr, EventHandler, and EventRegistry code to zeek namespace. Rename mgr to event_mgr.
  Move Timer and PriorityQueue classes to namespaces
  Move BroFile to zeek namespace, rename to File
  Move Reporter to zeek namespace
  Move DNS_Mgr to zeek::detail namespace
  Move BroSubstring to zeek::detail, rename to Substring
  Move regex matching code to zeek namespaces
  Move all of the rule matching code to zeek::detail
  Move IP Addr/Prefix/Header classes into namespaces
  ...
2020-08-01 09:22:03 -07:00
Jon Siwek
26ad26c101 Fix incorrect conflict detection of namespaced-enum-names
E.g. defining a `Foo::RED` enum name when a `GLOBAL::RED` identifier
already exists would previously be treated as an error, even though the
names don't truly conflict.
2020-07-31 16:44:49 -07:00
Jon Siwek
69c0cf1513 Improve error message for an enum name conflicting with non-enum ID 2020-07-31 16:24:26 -07:00
Jon Siwek
4a9567e04f GH-1080: Treat enum name re-use across different enum types as an error 2020-07-31 16:23:40 -07:00
Jon Siwek
613b27eec7 GH-1080: Rename conflicting NetControl::DROP enum definitions
``NetControl::DROP`` had 3 conflicting definitions that could potentially
be used incorrectly without any warnings or type-checking errors.
Such enum redefinition conflicts are now caught and treated as errors,
so the ``NetControl::DROP`` enums had to be renamed:

* The use as enum of type ``Log::ID`` is renamed to ``NetControl::DROP_LOG``

* The use as enum of type ``NetControl::CatchReleaseInfo`` is renamed to
  ``NetControl::DROP_REQUESTED``

* The use as enum of type ``NetControl::RuleType`` is unchanged and still
  named ``NetControl::DROP``
2020-07-31 16:11:35 -07:00
Johanna Amann
cd3400f957 Re-add TYPE_COUNTER without function and deprecation marker. 2020-07-31 14:53:49 -07:00
Tim Wojtulewicz
7a4023a17f Properly forward-declare zeek::plugin::plugin in DebugLogger 2020-07-31 16:26:11 -04:00
Tim Wojtulewicz
3e6ba198db Rename Brofiler to ScriptCoverageManager 2020-07-31 16:26:11 -04:00
Tim Wojtulewicz
7fefdd97af Move Conn and related types to zeek namespace 2020-07-31 16:25:54 -04:00
Tim Wojtulewicz
0355d13099 Move reassembler code to namespaces 2020-07-31 16:25:54 -04:00
Tim Wojtulewicz
e3ee1860b8 Move Session code to namespaces 2020-07-31 16:25:54 -04:00
Tim Wojtulewicz
4e9a5e9d98 Move ODesc to zeek namespace 2020-07-31 16:25:54 -04:00
Tim Wojtulewicz
fdcb2760b2 Move Stats and related classes to zeek::detail 2020-07-31 16:25:53 -04:00
Tim Wojtulewicz
c9ab1f93e7 Move a few low-use classes to namespaces 2020-07-31 16:25:47 -04:00
Tim Wojtulewicz
886fc102b8 Move DebugLogger to zeek namespaces 2020-07-31 16:23:34 -04:00
Tim Wojtulewicz
a2a435360a Move all of the hashing classes/functions to zeek::detail namespace 2020-07-31 16:23:34 -04:00
Tim Wojtulewicz
93948b4d19 Move all of the Packet-related classes to namespaces 2020-07-31 16:23:34 -04:00
Tim Wojtulewicz
45b5a98420 Move EventMgr, EventHandler, and EventRegistry code to zeek namespace. Rename mgr to event_mgr. 2020-07-31 16:23:32 -04:00
Tim Wojtulewicz
1c17700c48 Move Timer and PriorityQueue classes to namespaces 2020-07-31 16:23:02 -04:00
Tim Wojtulewicz
910aa77d95 Move BroFile to zeek namespace, rename to File 2020-07-31 16:22:56 -04:00
Tim Wojtulewicz
bfab224d7c Move Reporter to zeek namespace 2020-07-31 16:22:41 -04:00
Tim Wojtulewicz
7cedd94ee7 Move DNS_Mgr to zeek::detail namespace 2020-07-31 16:22:41 -04:00
Tim Wojtulewicz
55d699af59 Move BroSubstring to zeek::detail, rename to Substring 2020-07-31 16:22:41 -04:00
Tim Wojtulewicz
c7dc7fc955 Move regex matching code to zeek namespaces 2020-07-31 16:22:39 -04:00
Tim Wojtulewicz
382812298d Move all of the rule matching code to zeek::detail 2020-07-31 16:22:04 -04:00
Tim Wojtulewicz
25c0fc7ab2 Move IP Addr/Prefix/Header classes into namespaces 2020-07-31 16:22:04 -04:00
Tim Wojtulewicz
35c61697d9 Move all debugger code into the zeek::detail namespace 2020-07-31 16:22:04 -04:00
Tim Wojtulewicz
834b76f94f Restore globally-namespaced plugin_mgr variable, move zeek::plugin::plugin_mgr to zeek::plugin_mgr 2020-07-31 16:22:04 -04:00
Tim Wojtulewicz
9400b863ea Move all base analyzer classes to zeek::analyzer namespace 2020-07-31 16:21:46 -04:00
Johanna Amann
217d5b531b Update submodule
[nomail]
2020-07-31 12:22:09 -07:00
Tim Wojtulewicz
87054d9d6b Move base Tag class to zeek namespace 2020-07-31 11:37:29 -07:00
Jon Siwek
8517d70e52 Update submodule(s)
[nomail]
2020-07-30 16:09:52 -07:00
Johanna Amann
417a6eb1e9 Completely remove all traces of the COUNTER type.
Relates to GH-1095
2020-07-30 12:11:05 -07:00
Johanna Amann
01fa5611ef Merge remote-tracking branch 'origin/topic/timw/clang-tidy'
* origin/topic/timw/clang-tidy:
  Don't specify 0u for initial value of loops changed to size_t
  Use .empty() instead of checking size against zero
  Use properly-sized loop variables or convert to ranged-for (bugprone-too-small-loop-variable)

Merge changes one type over to ptrdiff_t
2020-07-30 17:54:38 +00:00
Johanna Amann
da5aa15857 Merge remote-tracking branch 'origin/topic/neverlord/heap-use-after-free'
* origin/topic/neverlord/heap-use-after-free:
  Fix potential heap-use-after-free access
2020-07-30 17:47:04 +00:00
Tim Wojtulewicz
a2c3919492 Don't specify 0u for initial value of loops changed to size_t 2020-07-30 09:57:42 -07:00
Dominik Charousset
146707d10d Fix potential heap-use-after-free access 2020-07-30 17:38:58 +02:00
Jon Siwek
202c5dc007 Update submodule(s)
[nomail]
2020-07-29 11:35:49 -07:00
Johanna Amann
aa3d94a3cd Merge remote-tracking branch 'origin/topic/jsiwek/gh-1083-fix-input-set-events'
* origin/topic/jsiwek/gh-1083-fix-input-set-events:
  GH-1083: Fix Input Framework 'change' events for 'set' destinations

Fixes GH-1083
2020-07-28 19:59:48 +00:00
Tim Wojtulewicz
300efc7e04 Use .empty() instead of checking size against zero 2020-07-28 12:36:40 -07:00
Tim Wojtulewicz
1248411a2f Use properly-sized loop variables or convert to ranged-for (bugprone-too-small-loop-variable) 2020-07-28 12:36:40 -07:00
Jon Siwek
94c4c85e82 Update submodule(s)
[nomail]
2020-07-27 18:34:23 -07:00
Jon Siwek
8a5490405d Update site/local.zeek compatibility test 2020-07-27 12:05:10 -07:00
Jon Siwek
20c9e54f9b Reserve spot in NEWS for 4.0.0 2020-07-27 11:53:01 -07:00
Jon Siwek
5c6ebb443e Merge remote-tracking branch
* Fix potential NetbiosSSN analyzer stack overflow
2020-07-27 11:40:40 -07:00
Jon Siwek
fad3edae5b Merge remote-tracking branch
* Fix potential DNS analyzer stack overflow
2020-07-27 11:34:34 -07:00
Jon Siwek
97090ea18d Update submodules 2020-07-27 11:22:55 -07:00