zeek/src
Dominik Charousset cebb85b1e8 Fix unsafe and inefficient uses of copy_string
Add a new overload to `copy_string` that takes the input characters plus
size. The new overload avoids inefficient scanning of the input for the
null terminator in cases where we know the size beforehand. Furthermore,
this overload *must* be used when dealing with input character sequences
that may have no null terminator, e.g., when the input is from a
`std::string_view` object.
2023-11-03 15:25:38 +01:00
..
3rdparty@c2763e952e Remove deprecations tagged for v6.1 2023-06-14 10:07:22 -07:00
analyzer Bump pre-commit hooks 2023-10-30 09:41:12 +01:00
broker Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
file_analysis Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
fuzzers Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
include Creating a symlink src/include/zeek -> src/ 2022-11-09 18:16:13 +02:00
input Fix unsafe and inefficient uses of copy_string 2023-11-03 15:25:38 +01:00
iosource Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
logging Fix unsafe and inefficient uses of copy_string 2023-11-03 15:25:38 +01:00
packet_analysis build_inner_connection: Use the outer packet's timestamp 2023-11-01 12:03:55 +01:00
plugin Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
probabilistic Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
script_opt Fix unsafe and inefficient uses of copy_string 2023-11-03 15:25:38 +01:00
session Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
spicy Fix unsafe and inefficient uses of copy_string 2023-11-03 15:25:38 +01:00
supervisor Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
telemetry Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
threading Fix unsafe and inefficient uses of copy_string 2023-11-03 15:25:38 +01:00
zeekygen Fix unsafe and inefficient uses of copy_string 2023-11-03 15:25:38 +01:00
Anon.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Anon.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Attr.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Attr.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Base64.cc Bump pre-commit hooks 2023-10-30 09:41:12 +01:00
Base64.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
BifReturnVal.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
BifReturnVal.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
binpac-lib.pac Code modernization: Convert from deprecated C standard library headers 2022-06-27 09:47:31 -07:00
binpac.pac
binpac_zeek-lib.pac Spelling src 2022-11-09 12:08:15 -05:00
binpac_zeek.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
CCL.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
CCL.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
CMakeLists.txt Remove usage of FindRequiredPackage 2023-08-07 09:33:52 -07:00
communityid.bif Add community_id_v1() based on corelight/zeek-community-id 2023-04-21 20:44:09 +02:00
CompHash.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
CompHash.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Conn.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Conn.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
const.bif Remove deprecations tagged for v6.1 2023-06-14 10:07:22 -07:00
DbgBreakpoint.cc Bump pre-commit hooks 2023-10-30 09:41:12 +01:00
DbgBreakpoint.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
DbgDisplay.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
DbgHelp.cc updated Bro->Zeek in comments in the source tree 2022-01-24 14:26:20 -08:00
DbgWatch.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
DbgWatch.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Debug.cc Fix unsafe and inefficient uses of copy_string 2023-11-03 15:25:38 +01:00
Debug.h Bump pre-commit hooks 2023-10-30 09:41:12 +01:00
DebugCmdInfoConstants.in Merge remote-tracking branch 'microsoft/master' 2022-11-11 15:23:21 -07:00
DebugCmds.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
DebugCmds.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
DebugLogger.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
DebugLogger.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Desc.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Desc.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
DFA.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
DFA.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Dict.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Dict.h Bump pre-commit hooks 2023-10-30 09:41:12 +01:00
digest.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
digest.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Discard.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Discard.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
DNS_Mapping.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
DNS_Mapping.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
DNS_Mgr.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
DNS_Mgr.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
EquivClass.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
EquivClass.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
event.bif Conn: In-place val flip and connection_flipped() 2023-07-04 20:01:17 +02:00
Event.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Event.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
EventHandler.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
EventHandler.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
EventLauncher.cc Minor fixes for build problems after reformatting 2021-09-16 15:36:09 -07:00
EventLauncher.h Minor fixes for build problems after reformatting 2021-09-16 15:36:09 -07:00
EventRegistry.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
EventRegistry.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
EventTrace.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
EventTrace.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Expr.cc Fix unsafe and inefficient uses of copy_string 2023-11-03 15:25:38 +01:00
Expr.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
File.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
File.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Flare.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Flare.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Frag.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Frag.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Frame.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Frame.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Func.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Func.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Hash.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Hash.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
ID.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
ID.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
input.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
IntrusivePtr.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
IntSet.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
IntSet.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
IP.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
IP.h Bump pre-commit hooks 2023-10-30 09:41:12 +01:00
IPAddr.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
IPAddr.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
List.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
List.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
main.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
make_dbg_constants.py Format Python scripts with yapf. 2021-11-24 23:13:24 +01:00
module_util.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
module_util.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
net_util.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
net_util.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
NetVar.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
NetVar.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
NFA.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
NFA.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Notifier.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Notifier.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Obj.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Obj.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
OpaqueVal.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
OpaqueVal.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
option.bif option.bif: Short-circuit option changes when terminating 2022-07-29 18:22:03 +02:00
Options.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Options.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Overflow.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Overflow.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
PacketFilter.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
PacketFilter.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
parse.y introduce internal "mask" expression node to avoid mixed-type overloading of "/" 2023-09-26 14:39:26 -07:00
Pipe.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Pipe.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
PolicyFile.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
PolicyFile.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
PrefixTable.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
PrefixTable.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
PriorityQueue.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
PriorityQueue.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
RandTest.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
RandTest.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
re-parse.y Fix memory leak caused by pattern compilation failure 2023-05-10 05:42:03 +00:00
re-scan.l Include stdint.h early in flex files to prevent redefinition of int type macros 2023-02-22 16:39:54 -07:00
RE.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
RE.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Reassem.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Reassem.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
reporter.bif Fix a bunch of -Wunqualified-std-cast-call warnings from clang 15 2023-03-24 13:58:01 -07:00
Reporter.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Reporter.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
rule-parse.y A handful of int-to-bool conversions 2023-07-07 09:17:05 -07:00
rule-scan.l Include stdint.h early in flex files to prevent redefinition of int type macros 2023-02-22 16:39:54 -07:00
Rule.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Rule.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
RuleAction.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
RuleAction.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
RuleCondition.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
RuleCondition.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
RuleMatcher.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
RuleMatcher.h Bump pre-commit hooks 2023-10-30 09:41:12 +01:00
RunState.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
RunState.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
scan.l Add &default_insert attribute for tables 2023-08-04 12:30:36 +02:00
ScannedFile.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
ScannedFile.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Scope.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Scope.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
ScriptCoverageManager.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
ScriptCoverageManager.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
ScriptProfile.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
ScriptProfile.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
ScriptValidation.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
ScriptValidation.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
SerializationFormat.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
SerializationFormat.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
SmithWaterman.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
SmithWaterman.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Span.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
stats.bif Add optional packet filtered statistics for packet sources 2023-04-06 09:47:04 -07:00
Stats.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Stats.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Stmt.cc Fix unsafe and inefficient uses of copy_string 2023-11-03 15:25:38 +01:00
Stmt.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
StmtBase.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
StmtEnums.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
strings.bif all: Fix typos identified by typos pre-commit hook 2023-06-13 17:57:32 +02:00
Tag.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Tag.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Timer.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Timer.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Traverse.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Traverse.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
TraverseTypes.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Trigger.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Trigger.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
TunnelEncapsulation.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
TunnelEncapsulation.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Type.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Type.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
types.bif Pass parsed file record information with ReadFile/WriteFile events 2023-08-07 13:44:38 -07:00
UID.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
UID.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
util.cc Fix unsafe and inefficient uses of copy_string 2023-11-03 15:25:38 +01:00
util.h Fix unsafe and inefficient uses of copy_string 2023-11-03 15:25:38 +01:00
Val.cc Fix unsafe and inefficient uses of copy_string 2023-11-03 15:25:38 +01:00
Val.h Fix unsafe and inefficient uses of copy_string 2023-11-03 15:25:38 +01:00
Var.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Var.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
version.c.in Change VERSION variable in CMake config to ZEEK_VERSION_FULL 2023-08-07 09:33:52 -07:00
WeirdState.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
WeirdState.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
zeek-affinity.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
zeek-affinity.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
zeek-bif.h Reformat the world 2021-09-16 15:35:39 -07:00
zeek-setup.cc Fix unsafe and inefficient uses of copy_string 2023-11-03 15:25:38 +01:00
zeek-setup.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
zeek.bif Fix unsafe and inefficient uses of copy_string 2023-11-03 15:25:38 +01:00
zeek.pac Add GTPv1 packet analyzer, disable old analyzer 2021-11-23 19:36:50 -07:00
ZeekArgs.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
ZeekArgs.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
ZeekConfig.cmake.in Revert "Merge remote-tracking branch 'origin/topic/neverlord/gh-3247'" 2023-08-29 12:13:40 -07:00
ZeekList.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
ZeekPluginBootstrap.cmake.in ZeekPluginBootstrap: Encode Zeek's CMAKE_BUILD_TYPE 2023-06-15 10:46:06 +02:00
ZeekPluginConfig.cmake.in Fix install directory for plugins 2023-04-22 16:12:22 +02:00
ZeekString.cc Fix unsafe and inefficient uses of copy_string 2023-11-03 15:25:38 +01:00
ZeekString.h Fix unsafe and inefficient uses of copy_string 2023-11-03 15:25:38 +01:00
ZVal.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
ZVal.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00