Jon Siwek
e35888a994
GH-1555: Fix reading empty set[enum] values from config files
2021-05-14 16:32:19 -07:00
Florian Wilkens
95a6ee27b1
analyzer/ssl: silence warning in DTLS analyzer
2021-05-11 19:12:24 +02:00
Florian Wilkens
68f5ae9538
analyzer/ssl: move proc-{client,server}-hello into the respective analyzers
2021-05-11 19:12:24 +02:00
Florian Wilkens
febc69d320
analyzer/ssl: cleanup SSL_Analyzer
...
- make TLS12 PRF a member function of the analyzer
- use std::string in PRF
- use StringValPtr instead of zeek::StringVal
- replace malloc/free with C++ style allocations
2021-05-11 19:12:16 +02:00
Tim Wojtulewicz
13f80ed5dd
Add unit tests to ZeekString.cc
2021-05-11 09:26:16 -07:00
Vern Paxson
e697f351ad
fixed cut-and-paste botch (redundant line of code)
2021-05-09 14:42:03 -07:00
Jon Siwek
1b825c51de
Fix LGTM warnings in script_opt/CPP code
...
i.e. shadowed variables and "missing return values" (scare quotes)
2021-05-06 12:06:57 -07:00
Vern Paxson
ac257e4a86
bug fixes for stand-alone compiles with empty records
2021-05-05 19:32:30 -07:00
Vern Paxson
2b0f1c9d6e
remove -O force-C++, and also some inadvertently replicated code
2021-05-05 19:11:17 -07:00
Vern Paxson
c116b2b8ad
better initial workflow, thanks to Jon Siwek
2021-05-05 18:52:06 -07:00
Vern Paxson
4a1d5adcf4
remove optimization no longer needed
2021-05-05 17:08:18 -07:00
Vern Paxson
93e9801f89
removed redundant Traverse invocation
2021-05-05 16:55:05 -07:00
Vern Paxson
94ac72cd84
style nit: removed std:: where not needed due to "using" clause
2021-05-05 16:55:05 -07:00
Jon Siwek
3e85375010
Fix various compiler/linter warnings in script_opt/CPP code
2021-05-05 16:55:05 -07:00
Vern Paxson
e200016200
first cut at embedding filenames in C++ function names - for Justin to test
2021-05-05 16:55:05 -07:00
Vern Paxson
b5b87d0b15
fixes for personal build scripts - will go away once workflow is streamlined
2021-05-05 16:55:05 -07:00
Vern Paxson
2fdb8a1cc8
whoops removed a std:: from generated code
2021-05-05 16:55:05 -07:00
Vern Paxson
72413f315c
decluttered code by removing "std::" - no semantic changes
...
(also some whitespace fixes)
2021-05-05 16:55:05 -07:00
Vern Paxson
bbe5ab39f6
porting fixes from Justin
2021-05-05 16:55:04 -07:00
Vern Paxson
22d060d461
documenting poor run-time error messages
2021-05-05 16:55:04 -07:00
Vern Paxson
605d636d94
README documentation
2021-05-05 16:55:04 -07:00
Vern Paxson
f6c841c737
minor tweaks tidyness tweaks
2021-05-05 16:55:04 -07:00
Vern Paxson
24e92fa54a
hooks for activating the compiler & associated BiF
2021-05-05 16:55:04 -07:00
Vern Paxson
863be9436b
the bulk of the compiler
2021-05-05 16:55:04 -07:00
Vern Paxson
158e82a2c1
expand profiling to include values to which globals are assigned
2021-05-05 16:55:04 -07:00
Vern Paxson
dd05beff50
fixed missing profiling for ?$ operator
2021-05-05 16:55:04 -07:00
Vern Paxson
72f62f398a
FuncInfo now tracks priority; some tidying/widening of its accessors
2021-05-05 16:55:04 -07:00
Vern Paxson
8d2bb28f03
setting the stage for implementation of lambdas in compiled-to-C++ code
2021-05-05 16:55:04 -07:00
Vern Paxson
5efba9e115
Stmt tag for compiled-to-C++; Inliner knows to avoid it
2021-05-05 16:55:04 -07:00
Vern Paxson
8d10fd32d0
additional ScriptFunc constructor for compiled-to-C++ scripts
2021-05-05 16:55:04 -07:00
Vern Paxson
3796e2508b
track current script body's priority as well as its AST
2021-05-05 16:55:04 -07:00
Vern Paxson
00d66f1ac2
method for reporting run-time errors in compiled-to-C++ scripts
2021-05-05 16:55:04 -07:00
Vern Paxson
cf79c05e3a
tracking of expressions used to define/redef variables
2021-05-05 16:55:04 -07:00
Vern Paxson
1f15f53f4b
VectorVal methods to leverage ZVal representation
2021-05-05 16:54:58 -07:00
Vern Paxson
e80ab06775
fix backtrace BiF to avoid iterator invalidation & support compiled code
2021-05-05 16:50:54 -07:00
Vern Paxson
1ede6a8424
accessors / friends needed for compiling-to-C++
2021-05-05 16:50:54 -07:00
Vern Paxson
66fb3e0f56
low-level tidying / documentation tweaks
2021-05-05 16:50:29 -07:00
Tim Wojtulewicz
9eebbd1633
Minor cleanup in IPAddr.h
2021-05-05 14:05:10 +00:00
Tim Wojtulewicz
36d5116628
Fix a few Coverity warnings from the session manager work
...
- Be explicit about setting the copied flag in session::Key. Coverity seems
confused about when that flag is set if it gets set by default
initialization. This should fix 1452757 and 1452759.
- Explicitly copy the fields in ConnKey instead of using memcpy. Fixes
1452758.
2021-05-05 14:05:10 +00:00
Florian Wilkens
c1c0cb6f3c
analyzer/ssl: Formatting, printf -> DBG_LOG, namespacing
2021-05-05 15:58:15 +02:00
Vern Paxson
09dc074a26
switched RecordVal's to use std::optional for tracking missing fields
2021-05-02 12:33:20 -07:00
Vern Paxson
e4ae853058
added constructors for directly building ZVal's
2021-05-02 12:32:40 -07:00
Jon Siwek
9e8eb30620
Add missing zeek/ prefix to a telemetry header's includes
2021-04-30 18:29:34 -07:00
Tim Wojtulewicz
72ba93d9a3
Merge remote-tracking branch 'origin/topic/jsiwek/gh-1534-better-duplicate-enum-error'
...
* origin/topic/jsiwek/gh-1534-better-duplicate-enum-error:
GH-1534: Fix excessive coredump for duplicate enum definitions
2021-04-30 09:42:40 -07:00
Tim Wojtulewicz
ad67d810be
Merge remote-tracking branch 'origin/topic/jsiwek/fix-netbios-decode-bifs'
...
* origin/topic/jsiwek/fix-netbios-decode-bifs:
Fixes to `decode_netbios_name` and `decode_netbios_name_type` BIFs
2021-04-30 09:40:46 -07:00
Jon Siwek
13f3cb377f
GH-1534: Fix excessive coredump for duplicate enum definitions
...
An adequate error message was previously reported for duplicate enum
definitions, this just now prevents trying to access it as a constant in
subsequent parsing and further generating a coredump.
2021-04-29 15:20:09 -07:00
Tim Wojtulewicz
9684624a52
Rename ConnID and ConnIDKey
2021-04-29 11:09:35 -07:00
Tim Wojtulewicz
0b7ca5e7bc
Remove Session prefix from some session-related classes and files
2021-04-29 11:09:35 -07:00
Tim Wojtulewicz
18c6aaaa33
Move session code into new directory and into zeek::session namespace
2021-04-29 11:09:35 -07:00
Tim Wojtulewicz
3ee171eb2d
Move SessionKey into a separate file, added comments
2021-04-29 11:09:35 -07:00