Commit graph

16055 commits

Author SHA1 Message Date
Tim Wojtulewicz
a090fb936a Merge remote-tracking branch 'origin/topic/timw/script-opt-memory-leak'
* origin/topic/timw/script-opt-memory-leak:
  Fix memory leak in script_opt's Expr code
2023-08-01 09:58:13 -07:00
Arne Welzel
ab388844bf UsageAnalyzer: Collect identifiers found in attributes as seeds
This marks every identifier used within an attribute as seeds. The scenario
this avoids is functions referenced through attributes on unused tables or
record types (&default, &expire_func, ...) being dinged as unused as
that's rather confusing.

Also adds test for the above and a light smoke test into language/ as it
doesn't appear we had coverage here.

Closes #3122
2023-08-01 15:46:10 +02:00
Tim Wojtulewicz
430d344ec2 Fix memory leak in script_opt's Expr code 2023-07-31 16:09:04 -07:00
Tim Wojtulewicz
3c7a52d0a7 Merge remote-tracking branch 'origin/topic/johanna/3205-do-not-parse-udp-padding'
* origin/topic/johanna/3205-do-not-parse-udp-padding:
  Do not forward more than the remaining data to downstream UDP analyzer
2023-07-31 15:59:59 -07:00
Arne Welzel
9c291dc397 Merge remote-tracking branch 'origin/topic/timw/refresh-windows-ci-image'
* origin/topic/timw/refresh-windows-ci-image:
  Force rebuild of windows CI image
2023-07-31 10:47:31 +02:00
Tim Wojtulewicz
190728ab40 Force rebuild of windows CI image 2023-07-28 12:40:32 -07:00
zeek-bot
85e6dff741 Update doc submodule [nomail] [skip ci] 2023-07-28 00:23:09 +00:00
Johanna Amann
a391367c36 Do not forward more than the remaining data to downstream UDP analyzer
This fixes a bug introduced in 2b9de839b0
/ GH-3080, which causes UDP padding to be sent to UDP based analyzers.

Fixes GH-3205.
2023-07-27 13:35:41 +01:00
Tim Wojtulewicz
bd75d72f3f Merge remote-tracking branch 'origin/topic/vern/zam-memory-reduction'
* origin/topic/vern/zam-memory-reduction:
  Baseline "-a zam" update
  increase BTest wait time to abide ZAM compilation times
  avoid script coverage overhead (especially memory) when using ZAM
  fixes for correctly tracking which functions have been fully inlined
  support for discarding ASTs once compiled via ZAM script optimization
  some code simplifications and streamlining
2023-07-26 14:46:23 -07:00
Vern Paxson
ed75b82b3b Baseline "-a zam" update 2023-07-26 13:32:00 -07:00
Vern Paxson
35a6efbfa7 increase BTest wait time to abide ZAM compilation times 2023-07-26 13:32:00 -07:00
Vern Paxson
2355f5af47 avoid script coverage overhead (especially memory) when using ZAM 2023-07-26 13:32:00 -07:00
Vern Paxson
3f64858335 fixes for correctly tracking which functions have been fully inlined 2023-07-26 13:32:00 -07:00
Vern Paxson
91d70e6dd4 support for discarding ASTs once compiled via ZAM script optimization 2023-07-26 13:32:00 -07:00
Tim Wojtulewicz
b3940b6db3 Merge remote-tracking branch 'origin/topic/vern/lambda-scope-tweak'
* origin/topic/vern/lambda-scope-tweak:
  fix for installing identifiers for lambdas into the global scope
2023-07-25 10:23:59 -07:00
Tim Wojtulewicz
c7ff0c2219 Merge remote-tracking branch 'origin/topic/johanna/better-input-framework-messages-with-optional-or-index-that-is-not-set'
* origin/topic/johanna/better-input-framework-messages-with-optional-or-index-that-is-not-set:
  Better input framework error messages for unset non-optionals
2023-07-25 09:36:36 -07:00
Tim Wojtulewicz
80aea71089 Merge remote-tracking branch 'origin/topic/timw/cpp-script-opt-code-gen-modernization'
* origin/topic/timw/cpp-script-opt-code-gen-modernization:
  Bump debian 11 and alpine Dockerfile versions
  Fix script_opt/cpp test scripts to work correctly on all platforms
  CPP code-gen: Use std::move for constructor arguments
  CPP code-gen: Mark child classes final, remove final from function defs
2023-07-25 09:35:13 -07:00
Tim Wojtulewicz
1c0795fe87 Bump debian 11 and alpine Dockerfile versions 2023-07-25 09:18:33 -07:00
Tim Wojtulewicz
067bbf82fb Fix script_opt/cpp test scripts to work correctly on all platforms 2023-07-25 08:39:31 -07:00
Tim Wojtulewicz
c9f6b3463f CPP code-gen: Use std::move for constructor arguments 2023-07-25 08:39:31 -07:00
Tim Wojtulewicz
73adf2bf01 CPP code-gen: Mark child classes final, remove final from function defs 2023-07-25 08:39:31 -07:00
Vern Paxson
d8efb4b1f0 fix for installing identifiers for lambdas into the global scope 2023-07-22 08:49:03 -07:00
Johanna Amann
33d6e1a011 Better input framework error messages for unset non-optionals
The input framework currently gives a rather opaque error message when
encountering a line in which a required value is not provided. This
change updates this behavior; the error message now provides the record
element (or the name or the index element) which was not set in the
input data, even though it is required to be set by the underlying Zeek
type.
2023-07-21 15:11:31 +01:00
Tim Wojtulewicz
0e40f7e6af More test updates for opaqueval changes 2023-07-20 14:01:33 -07:00
Tim Wojtulewicz
5b74e717bc Fix plugin.hooks test for opaque-printing change 2023-07-20 10:43:36 -07:00
Vern Paxson
79c53c9ed6 some code simplifications and streamlining 2023-07-20 09:35:07 -07:00
Tim Wojtulewicz
2f1238089c Merge remote-tracking branch 'origin/topic/timw/print-opaque-type'
* origin/topic/timw/print-opaque-type:
  Print type of opaque instead of 'no value description'
2023-07-20 09:23:55 -07:00
Tim Wojtulewicz
18c77ddc2c Fix cmake formatting issue 2023-07-19 09:16:08 -07:00
Tim Wojtulewicz
401bdc86dd Add compiler flag to disable unknown pragma warnings on Windows
Without this flag you get a warning from every use of Type.h since it
contains a '#pramga GCC' for disabling a deprecation warning.
2023-07-18 16:13:38 -07:00
zeek-bot
5a4a3267fb Update doc submodule [nomail] [skip ci] 2023-07-18 00:47:36 +00:00
Tim Wojtulewicz
819b79e121 Merge remote-tracking branch 'origin/topic/vern/dyn-sig-actions'
* origin/topic/vern/dyn-sig-actions:
  allow signature actions to be dynamically updated
2023-07-17 16:35:15 -07:00
Tim Wojtulewicz
1f39a33442 Merge remote-tracking branch 'origin/topic/vern/ZAM-maint.Jul23'
* origin/topic/vern/ZAM-maint.Jul23:
  ZAM btest baseline update
  more extensive ZAM inlining & compilation of lambdas
  fixes for ZAM compilation of switch statements
  fix for ZAM inlining failing to inline function call arguments
  avoid constructing TypeList's on-the-fly for ListVal's with fixed types
  ZAM optimization for ?$ operator applied to non-optional fields
  ASSERT seatbelts for low-level vector accesses
  comment typo
  low-level ZAM micro-optimizations
  fix for recent smart pointer change
2023-07-17 16:33:46 -07:00
Vern Paxson
57e5d1462e ZAM btest baseline update 2023-07-17 16:31:31 -07:00
Vern Paxson
1ff490b41c more extensive ZAM inlining & compilation of lambdas 2023-07-17 16:31:30 -07:00
Vern Paxson
b9949560c6 fixes for ZAM compilation of switch statements 2023-07-17 16:31:30 -07:00
Vern Paxson
51eec61272 fix for ZAM inlining failing to inline function call arguments 2023-07-17 16:31:30 -07:00
Vern Paxson
6b0d595dae avoid constructing TypeList's on-the-fly for ListVal's with fixed types 2023-07-17 16:31:30 -07:00
Vern Paxson
1d5bc841e0 ZAM optimization for ?$ operator applied to non-optional fields 2023-07-17 16:31:30 -07:00
Tim Wojtulewicz
41545baf7e Print type of opaque instead of 'no value description' 2023-07-17 14:33:44 -07:00
Tim Wojtulewicz
59f7b26b51 Add std::move for a couple of variables passed by value 2023-07-17 11:54:30 -07:00
Tim Wojtulewicz
fdf45df65a Merge remote-tracking branch 'origin/topic/vern/CPP-maint.Jul23'
* origin/topic/vern/CPP-maint.Jul23:
  -O gen-C++ fix for recent smart pointer changes
  -a cpp Btest baseline updates
  minor BTest generalizations & simplifications
  fixes for compiling function calls that return non-error nil ValPtr's
2023-07-14 09:15:48 -07:00
Vern Paxson
781cc0dcf0 allow signature actions to be dynamically updated 2023-07-13 17:25:32 -07:00
Vern Paxson
10797bb955 -O gen-C++ fix for recent smart pointer changes 2023-07-13 15:05:16 -07:00
Vern Paxson
bf6d030894 -a cpp Btest baseline updates 2023-07-13 13:11:26 -07:00
Vern Paxson
42697d72f2 minor BTest generalizations & simplifications 2023-07-13 13:10:14 -07:00
Vern Paxson
5480dc8869 fixes for compiling function calls that return non-error nil ValPtr's 2023-07-13 13:06:42 -07:00
Vern Paxson
3505827982 ASSERT seatbelts for low-level vector accesses 2023-07-13 11:42:53 -07:00
Vern Paxson
c61360e181 comment typo 2023-07-13 11:40:41 -07:00
Vern Paxson
eb84286b9c low-level ZAM micro-optimizations 2023-07-13 11:39:55 -07:00
Vern Paxson
cc059f6b51 fix for recent smart pointer change 2023-07-13 11:38:27 -07:00