Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/bro-2.6.4+ds1/src/RuleMatcher.cc
Examining data/bro-2.6.4+ds1/src/DbgBreakpoint.h
Examining data/bro-2.6.4+ds1/src/RE.cc
Examining data/bro-2.6.4+ds1/src/DebugCmdInfoConstants.cc
Examining data/bro-2.6.4+ds1/src/Attr.cc
Examining data/bro-2.6.4+ds1/src/Traverse.h
Examining data/bro-2.6.4+ds1/src/Brofiler.cc
Examining data/bro-2.6.4+ds1/src/Conn.h
Examining data/bro-2.6.4+ds1/src/IPAddr.h
Examining data/bro-2.6.4+ds1/src/Flare.h
Examining data/bro-2.6.4+ds1/src/Conn.cc
Examining data/bro-2.6.4+ds1/src/DFA.h
Examining data/bro-2.6.4+ds1/src/module_util.h
Examining data/bro-2.6.4+ds1/src/siphash24.c
Examining data/bro-2.6.4+ds1/src/DbgWatch.h
Examining data/bro-2.6.4+ds1/src/Pipe.cc
Examining data/bro-2.6.4+ds1/src/Scope.h
Examining data/bro-2.6.4+ds1/src/Obj.cc
Examining data/bro-2.6.4+ds1/src/PacketFilter.h
Examining data/bro-2.6.4+ds1/src/BroList.h
Examining data/bro-2.6.4+ds1/src/binpac_bro.h
Examining data/bro-2.6.4+ds1/src/PrefixTable.h
Examining data/bro-2.6.4+ds1/src/DbgWatch.cc
Examining data/bro-2.6.4+ds1/src/DebugCmdInfoConstants.h
Examining data/bro-2.6.4+ds1/src/ConvertUTF.c
Examining data/bro-2.6.4+ds1/src/threading/BasicThread.cc
Examining data/bro-2.6.4+ds1/src/threading/BasicThread.h
Examining data/bro-2.6.4+ds1/src/threading/SerialTypes.cc
Examining data/bro-2.6.4+ds1/src/threading/Formatter.cc
Examining data/bro-2.6.4+ds1/src/threading/Manager.h
Examining data/bro-2.6.4+ds1/src/threading/Manager.cc
Examining data/bro-2.6.4+ds1/src/threading/SerialTypes.h
Examining data/bro-2.6.4+ds1/src/threading/Queue.h
Examining data/bro-2.6.4+ds1/src/threading/MsgThread.cc
Examining data/bro-2.6.4+ds1/src/threading/MsgThread.h
Examining data/bro-2.6.4+ds1/src/threading/formatters/Ascii.h
Examining data/bro-2.6.4+ds1/src/threading/formatters/JSON.h
Examining data/bro-2.6.4+ds1/src/threading/formatters/JSON.cc
Examining data/bro-2.6.4+ds1/src/threading/formatters/Ascii.cc
Examining data/bro-2.6.4+ds1/src/threading/Formatter.h
Examining data/bro-2.6.4+ds1/src/EventLauncher.cc
Examining data/bro-2.6.4+ds1/src/module_util.cc
Examining data/bro-2.6.4+ds1/src/Val.cc
Examining data/bro-2.6.4+ds1/src/PacketFilter.cc
Examining data/bro-2.6.4+ds1/src/NetVar.h
Examining data/bro-2.6.4+ds1/src/util.h
Examining data/bro-2.6.4+ds1/src/Trigger.cc
Examining data/bro-2.6.4+ds1/src/siphash24.h
Examining data/bro-2.6.4+ds1/src/DNS_Mgr.h
Examining data/bro-2.6.4+ds1/src/Traverse.cc
Examining data/bro-2.6.4+ds1/src/setsignal.c
Examining data/bro-2.6.4+ds1/src/IP.h
Examining data/bro-2.6.4+ds1/src/Timer.h
Examining data/bro-2.6.4+ds1/src/RuleAction.cc
Examining data/bro-2.6.4+ds1/src/Dict.h
Examining data/bro-2.6.4+ds1/src/bro_inet_ntop.h
Examining data/bro-2.6.4+ds1/src/StmtEnums.h
Examining data/bro-2.6.4+ds1/src/setsignal.h
Examining data/bro-2.6.4+ds1/src/PersistenceSerializer.h
Examining data/bro-2.6.4+ds1/src/Reassem.cc
Examining data/bro-2.6.4+ds1/src/Type.h
Examining data/bro-2.6.4+ds1/src/Frag.cc
Examining data/bro-2.6.4+ds1/src/CCL.h
Examining data/bro-2.6.4+ds1/src/RandTest.cc
Examining data/bro-2.6.4+ds1/src/TraverseTypes.h
Examining data/bro-2.6.4+ds1/src/RE.h
Examining data/bro-2.6.4+ds1/src/File.cc
Examining data/bro-2.6.4+ds1/src/bsd-getopt-long.h
Examining data/bro-2.6.4+ds1/src/bsd-getopt-long.c
Examining data/bro-2.6.4+ds1/src/patricia.h
Examining data/bro-2.6.4+ds1/src/Timer.cc
Examining data/bro-2.6.4+ds1/src/cq.c
Examining data/bro-2.6.4+ds1/src/Val.h
Examining data/bro-2.6.4+ds1/src/UID.cc
Examining data/bro-2.6.4+ds1/src/Var.h
Examining data/bro-2.6.4+ds1/src/BroString.cc
Examining data/bro-2.6.4+ds1/src/Rule.cc
Examining data/bro-2.6.4+ds1/src/modp_numtoa.c
Examining data/bro-2.6.4+ds1/src/Frame.h
Examining data/bro-2.6.4+ds1/src/Sessions.h
Examining data/bro-2.6.4+ds1/src/PersistenceSerializer.cc
Examining data/bro-2.6.4+ds1/src/PolicyFile.h
Examining data/bro-2.6.4+ds1/src/OpaqueVal.cc
Examining data/bro-2.6.4+ds1/src/PolicyFile.cc
Examining data/bro-2.6.4+ds1/src/bro-bif.h
Examining data/bro-2.6.4+ds1/src/SmithWaterman.cc
Examining data/bro-2.6.4+ds1/src/Expr.h
Examining data/bro-2.6.4+ds1/src/PriorityQueue.cc
Examining data/bro-2.6.4+ds1/src/SerialObj.cc
Examining data/bro-2.6.4+ds1/src/Var.cc
Examining data/bro-2.6.4+ds1/src/DbgBreakpoint.cc
Examining data/bro-2.6.4+ds1/src/SmithWaterman.h
Examining data/bro-2.6.4+ds1/src/ChunkedIO.cc
Examining data/bro-2.6.4+ds1/src/CompHash.h
Examining data/bro-2.6.4+ds1/src/Continuation.h
Examining data/bro-2.6.4+ds1/src/net_util.h
Examining data/bro-2.6.4+ds1/src/Dict.cc
Examining data/bro-2.6.4+ds1/src/BroString.h
Examining data/bro-2.6.4+ds1/src/Obj.h
Examining data/bro-2.6.4+ds1/src/Base64.cc
Examining data/bro-2.6.4+ds1/src/strsep.c
Examining data/bro-2.6.4+ds1/src/PacketDumper.cc
Examining data/bro-2.6.4+ds1/src/RuleCondition.h
Examining data/bro-2.6.4+ds1/src/Flare.cc
Examining data/bro-2.6.4+ds1/src/Event.h
Examining data/bro-2.6.4+ds1/src/net_util.cc
Examining data/bro-2.6.4+ds1/src/util.cc
Examining data/bro-2.6.4+ds1/src/Stats.h
Examining data/bro-2.6.4+ds1/src/Sessions.cc
Examining data/bro-2.6.4+ds1/src/Stmt.cc
Examining data/bro-2.6.4+ds1/src/UID.h
Examining data/bro-2.6.4+ds1/src/Net.cc
Examining data/bro-2.6.4+ds1/src/Tag.h
Examining data/bro-2.6.4+ds1/src/SerializationFormat.h
Examining data/bro-2.6.4+ds1/src/NetVar.cc
Examining data/bro-2.6.4+ds1/src/cq.h
Examining data/bro-2.6.4+ds1/src/Reporter.h
Examining data/bro-2.6.4+ds1/src/OSFinger.h
Examining data/bro-2.6.4+ds1/src/OSFinger.cc
Examining data/bro-2.6.4+ds1/src/StateAccess.h
Examining data/bro-2.6.4+ds1/src/EventRegistry.cc
Examining data/bro-2.6.4+ds1/src/PrefixTable.cc
Examining data/bro-2.6.4+ds1/src/ID.h
Examining data/bro-2.6.4+ds1/src/ID.cc
Examining data/bro-2.6.4+ds1/src/IntSet.cc
Examining data/bro-2.6.4+ds1/src/plugin/Component.cc
Examining data/bro-2.6.4+ds1/src/plugin/Plugin.cc
Examining data/bro-2.6.4+ds1/src/plugin/Component.h
Examining data/bro-2.6.4+ds1/src/plugin/TaggedComponent.h
Examining data/bro-2.6.4+ds1/src/plugin/Manager.h
Examining data/bro-2.6.4+ds1/src/plugin/Manager.cc
Examining data/bro-2.6.4+ds1/src/plugin/ComponentManager.h
Examining data/bro-2.6.4+ds1/src/plugin/Plugin.h
Examining data/bro-2.6.4+ds1/src/broker/Data.h
Examining data/bro-2.6.4+ds1/src/broker/Data.cc
Examining data/bro-2.6.4+ds1/src/broker/Manager.h
Examining data/bro-2.6.4+ds1/src/broker/Store.cc
Examining data/bro-2.6.4+ds1/src/broker/Store.h
Examining data/bro-2.6.4+ds1/src/broker/Manager.cc
Examining data/bro-2.6.4+ds1/src/Scope.cc
Examining data/bro-2.6.4+ds1/src/IntSet.h
Examining data/bro-2.6.4+ds1/src/patricia.c
Examining data/bro-2.6.4+ds1/src/Func.cc
Examining data/bro-2.6.4+ds1/src/Debug.cc
Examining data/bro-2.6.4+ds1/src/RuleAction.h
Examining data/bro-2.6.4+ds1/src/List.h
Examining data/bro-2.6.4+ds1/src/Trigger.h
Examining data/bro-2.6.4+ds1/src/Op.h
Examining data/bro-2.6.4+ds1/src/iosource/pcap/Source.cc
Examining data/bro-2.6.4+ds1/src/iosource/pcap/Plugin.cc
Examining data/bro-2.6.4+ds1/src/iosource/pcap/Dumper.h
Examining data/bro-2.6.4+ds1/src/iosource/pcap/Dumper.cc
Examining data/bro-2.6.4+ds1/src/iosource/pcap/Source.h
Examining data/bro-2.6.4+ds1/src/iosource/Component.cc
Examining data/bro-2.6.4+ds1/src/iosource/PktSrc.h
Examining data/bro-2.6.4+ds1/src/iosource/Packet.cc
Examining data/bro-2.6.4+ds1/src/iosource/FD_Set.h
Examining data/bro-2.6.4+ds1/src/iosource/PktDumper.cc
Examining data/bro-2.6.4+ds1/src/iosource/Component.h
Examining data/bro-2.6.4+ds1/src/iosource/Manager.h
Examining data/bro-2.6.4+ds1/src/iosource/BPF_Program.cc
Examining data/bro-2.6.4+ds1/src/iosource/Manager.cc
Examining data/bro-2.6.4+ds1/src/iosource/IOSource.h
Examining data/bro-2.6.4+ds1/src/iosource/Packet.h
Examining data/bro-2.6.4+ds1/src/iosource/PktSrc.cc
Examining data/bro-2.6.4+ds1/src/iosource/BPF_Program.h
Examining data/bro-2.6.4+ds1/src/iosource/PktDumper.h
Examining data/bro-2.6.4+ds1/src/Desc.h
Examining data/bro-2.6.4+ds1/src/List.cc
Examining data/bro-2.6.4+ds1/src/DFA.cc
Examining data/bro-2.6.4+ds1/src/DebugLogger.cc
Examining data/bro-2.6.4+ds1/src/PacketDumper.h
Examining data/bro-2.6.4+ds1/src/Attr.h
Examining data/bro-2.6.4+ds1/src/EventLauncher.h
Examining data/bro-2.6.4+ds1/src/SerializationFormat.cc
Examining data/bro-2.6.4+ds1/src/Brofiler.h
Examining data/bro-2.6.4+ds1/src/Desc.cc
Examining data/bro-2.6.4+ds1/src/EventRegistry.h
Examining data/bro-2.6.4+ds1/src/NFA.h
Examining data/bro-2.6.4+ds1/src/DNS_Mgr.cc
Examining data/bro-2.6.4+ds1/src/nb_dns.h
Examining data/bro-2.6.4+ds1/src/IPAddr.cc
Examining data/bro-2.6.4+ds1/src/ConvertUTF.h
Examining data/bro-2.6.4+ds1/src/modp_numtoa.h
Examining data/bro-2.6.4+ds1/src/DebugCmds.h
Examining data/bro-2.6.4+ds1/src/IP.cc
Examining data/bro-2.6.4+ds1/src/Hash.h
Examining data/bro-2.6.4+ds1/src/SerialTypes.h
Examining data/bro-2.6.4+ds1/src/Frame.cc
Examining data/bro-2.6.4+ds1/src/Expr.cc
Examining data/bro-2.6.4+ds1/src/Queue.cc
Examining data/bro-2.6.4+ds1/src/analyzer/Component.cc
Examining data/bro-2.6.4+ds1/src/analyzer/Tag.h
Examining data/bro-2.6.4+ds1/src/analyzer/Component.h
Examining data/bro-2.6.4+ds1/src/analyzer/Manager.h
Examining data/bro-2.6.4+ds1/src/analyzer/Analyzer.cc
Examining data/bro-2.6.4+ds1/src/analyzer/Manager.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/bittorrent/BitTorrent.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/bittorrent/BitTorrent.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/bittorrent/BitTorrentTracker.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/bittorrent/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/bittorrent/BitTorrentTracker.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ncp/NCP.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ncp/NCP.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ncp/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/modbus/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/modbus/Modbus.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/modbus/Modbus.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/imap/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/imap/IMAP.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/imap/IMAP.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/gtpv1/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/gtpv1/GTPv1.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/gtpv1/GTPv1.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/teredo/Teredo.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/teredo/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/teredo/Teredo.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/login/Login.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/login/RSH.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/login/Rlogin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/login/Login.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/login/Telnet.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/login/Telnet.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/login/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/login/NVT.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/login/RSH.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/login/Rlogin.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/login/NVT.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/rfb/RFB.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/rfb/RFB.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/rfb/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/stepping-stone/SteppingStone.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/stepping-stone/SteppingStone.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/stepping-stone/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ayiya/AYIYA.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ayiya/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ayiya/AYIYA.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/syslog/Syslog.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/syslog/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/syslog/Syslog.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ident/Ident.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ident/Ident.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ident/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ssh/SSH.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ssh/SSH.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ssh/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/rdp/RDP.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/rdp/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/rdp/RDP.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/smtp/SMTP.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/smtp/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/smtp/SMTP.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ssl/SSL.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ssl/DTLS.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ssl/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ssl/DTLS.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ssl/SSL.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/arp/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/arp/ARP.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/arp/ARP.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ntlm/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ntlm/NTLM.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ntlm/NTLM.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/dce-rpc/DCE_RPC.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/dce-rpc/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/dce-rpc/DCE_RPC.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/sip/SIP.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/sip/SIP_TCP.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/sip/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/sip/SIP_TCP.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/sip/SIP.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/tcp/TCP.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/tcp/ContentLine.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/tcp/ContentLine.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/tcp/TCP.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/tcp/Stats.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/tcp/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/tcp/TCP_Flags.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/tcp/TCP_Reassembler.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/tcp/TCP_Endpoint.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/tcp/TCP_Reassembler.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/tcp/Stats.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/tcp/TCP_Endpoint.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/socks/SOCKS.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/socks/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/socks/SOCKS.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ntp/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ntp/NTP.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ntp/NTP.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/pop3/POP3.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/pop3/POP3.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/pop3/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/irc/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/irc/IRC.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/irc/IRC.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/netbios/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/netbios/NetbiosSSN.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/netbios/NetbiosSSN.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/file/File.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/file/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/file/File.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/gnutella/Gnutella.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/gnutella/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/gnutella/Gnutella.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ftp/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ftp/FTP.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/ftp/FTP.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/interconn/InterConn.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/interconn/InterConn.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/interconn/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/udp/UDP.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/udp/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/udp/UDP.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/zip/ZIP.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/zip/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/zip/ZIP.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/krb/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/krb/KRB.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/krb/KRB_TCP.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/krb/KRB.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/krb/KRB_TCP.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/smb/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/smb/SMB.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/smb/SMB.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/mime/MIME.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/mime/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/mime/MIME.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/dhcp/DHCP.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/dhcp/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/dhcp/DHCP.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/dnp3/DNP3.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/dnp3/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/dnp3/DNP3.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/dns/DNS.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/dns/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/dns/DNS.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/backdoor/BackDoor.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/backdoor/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/backdoor/BackDoor.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/snmp/SNMP.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/snmp/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/snmp/SNMP.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/finger/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/finger/Finger.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/finger/Finger.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/xmpp/XMPP.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/xmpp/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/xmpp/XMPP.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/rpc/RPC.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/rpc/RPC.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/rpc/XDR.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/rpc/NFS.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/rpc/XDR.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/rpc/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/rpc/MOUNT.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/rpc/MOUNT.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/rpc/Portmap.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/rpc/NFS.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/rpc/Portmap.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/conn-size/ConnSize.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/conn-size/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/conn-size/ConnSize.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/radius/RADIUS.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/radius/RADIUS.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/radius/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/http/HTTP.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/http/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/http/HTTP.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/gssapi/GSSAPI.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/gssapi/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/gssapi/GSSAPI.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/icmp/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/icmp/ICMP.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/icmp/ICMP.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/mysql/MySQL.h
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/mysql/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/mysql/MySQL.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/pia/Plugin.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/pia/PIA.cc
Examining data/bro-2.6.4+ds1/src/analyzer/protocol/pia/PIA.h
Examining data/bro-2.6.4+ds1/src/analyzer/Tag.cc
Examining data/bro-2.6.4+ds1/src/analyzer/Analyzer.h
Examining data/bro-2.6.4+ds1/src/bro_inet_ntop.c
Examining data/bro-2.6.4+ds1/src/Rule.h
Examining data/bro-2.6.4+ds1/src/Discard.h
Examining data/bro-2.6.4+ds1/src/RuleCondition.cc
Examining data/bro-2.6.4+ds1/src/DbgDisplay.h
Examining data/bro-2.6.4+ds1/src/Anon.h
Examining data/bro-2.6.4+ds1/src/Frag.h
Examining data/bro-2.6.4+ds1/src/Queue.h
Examining data/bro-2.6.4+ds1/src/SerialInfo.h
Examining data/bro-2.6.4+ds1/src/RemoteSerializer.cc
Examining data/bro-2.6.4+ds1/src/CCL.cc
Examining data/bro-2.6.4+ds1/src/input.h
Examining data/bro-2.6.4+ds1/src/Discard.cc
Examining data/bro-2.6.4+ds1/src/Func.h
Examining data/bro-2.6.4+ds1/src/RemoteSerializer.h
Examining data/bro-2.6.4+ds1/src/RandTest.h
Examining data/bro-2.6.4+ds1/src/DebugCmds.cc
Examining data/bro-2.6.4+ds1/src/TunnelEncapsulation.cc
Examining data/bro-2.6.4+ds1/src/logging/Component.cc
Examining data/bro-2.6.4+ds1/src/logging/WriterBackend.cc
Examining data/bro-2.6.4+ds1/src/logging/writers/none/None.cc
Examining data/bro-2.6.4+ds1/src/logging/writers/none/None.h
Examining data/bro-2.6.4+ds1/src/logging/writers/none/Plugin.cc
Examining data/bro-2.6.4+ds1/src/logging/writers/ascii/Ascii.h
Examining data/bro-2.6.4+ds1/src/logging/writers/ascii/Plugin.cc
Examining data/bro-2.6.4+ds1/src/logging/writers/ascii/Ascii.cc
Examining data/bro-2.6.4+ds1/src/logging/writers/sqlite/Plugin.cc
Examining data/bro-2.6.4+ds1/src/logging/writers/sqlite/SQLite.cc
Examining data/bro-2.6.4+ds1/src/logging/writers/sqlite/SQLite.h
Examining data/bro-2.6.4+ds1/src/logging/Tag.h
Examining data/bro-2.6.4+ds1/src/logging/WriterFrontend.cc
Examining data/bro-2.6.4+ds1/src/logging/WriterFrontend.h
Examining data/bro-2.6.4+ds1/src/logging/Component.h
Examining data/bro-2.6.4+ds1/src/logging/Manager.h
Examining data/bro-2.6.4+ds1/src/logging/Manager.cc
Examining data/bro-2.6.4+ds1/src/logging/WriterBackend.h
Examining data/bro-2.6.4+ds1/src/logging/Tag.cc
Examining data/bro-2.6.4+ds1/src/input/Component.cc
Examining data/bro-2.6.4+ds1/src/input/ReaderFrontend.h
Examining data/bro-2.6.4+ds1/src/input/Tag.h
Examining data/bro-2.6.4+ds1/src/input/Component.h
Examining data/bro-2.6.4+ds1/src/input/ReaderBackend.cc
Examining data/bro-2.6.4+ds1/src/input/Manager.h
Examining data/bro-2.6.4+ds1/src/input/Manager.cc
Examining data/bro-2.6.4+ds1/src/input/ReaderFrontend.cc
Examining data/bro-2.6.4+ds1/src/input/readers/config/Config.h
Examining data/bro-2.6.4+ds1/src/input/readers/config/Config.cc
Examining data/bro-2.6.4+ds1/src/input/readers/config/Plugin.cc
Examining data/bro-2.6.4+ds1/src/input/readers/raw/Raw.cc
Examining data/bro-2.6.4+ds1/src/input/readers/raw/Plugin.cc
Examining data/bro-2.6.4+ds1/src/input/readers/raw/Raw.h
Examining data/bro-2.6.4+ds1/src/input/readers/raw/Plugin.h
Examining data/bro-2.6.4+ds1/src/input/readers/benchmark/Benchmark.h
Examining data/bro-2.6.4+ds1/src/input/readers/benchmark/Plugin.cc
Examining data/bro-2.6.4+ds1/src/input/readers/benchmark/Benchmark.cc
Examining data/bro-2.6.4+ds1/src/input/readers/binary/Binary.h
Examining data/bro-2.6.4+ds1/src/input/readers/binary/Plugin.cc
Examining data/bro-2.6.4+ds1/src/input/readers/binary/Binary.cc
Examining data/bro-2.6.4+ds1/src/input/readers/ascii/Ascii.h
Examining data/bro-2.6.4+ds1/src/input/readers/ascii/Plugin.cc
Examining data/bro-2.6.4+ds1/src/input/readers/ascii/Ascii.cc
Examining data/bro-2.6.4+ds1/src/input/readers/sqlite/Plugin.cc
Examining data/bro-2.6.4+ds1/src/input/readers/sqlite/SQLite.cc
Examining data/bro-2.6.4+ds1/src/input/readers/sqlite/SQLite.h
Examining data/bro-2.6.4+ds1/src/input/Tag.cc
Examining data/bro-2.6.4+ds1/src/input/ReaderBackend.h
Examining data/bro-2.6.4+ds1/src/file_analysis/FileReassembler.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/Component.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/File.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/AnalyzerSet.h
Examining data/bro-2.6.4+ds1/src/file_analysis/Tag.h
Examining data/bro-2.6.4+ds1/src/file_analysis/AnalyzerSet.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/Component.h
Examining data/bro-2.6.4+ds1/src/file_analysis/Manager.h
Examining data/bro-2.6.4+ds1/src/file_analysis/Analyzer.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/FileReassembler.h
Examining data/bro-2.6.4+ds1/src/file_analysis/Manager.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/hash/Plugin.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/hash/Hash.h
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/hash/Hash.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/extract/Extract.h
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/extract/Plugin.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/extract/Extract.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/unified2/Unified2.h
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/unified2/Plugin.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/unified2/Unified2.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/pe/PE.h
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/pe/Plugin.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/pe/PE.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/data_event/DataEvent.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/data_event/Plugin.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/data_event/DataEvent.h
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/x509/OCSP.h
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/x509/X509Common.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/x509/OCSP.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/x509/X509.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/x509/X509Common.h
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/x509/Plugin.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/x509/X509.h
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/entropy/Entropy.h
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/entropy/Entropy.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/analyzer/entropy/Plugin.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/FileTimer.h
Examining data/bro-2.6.4+ds1/src/file_analysis/File.h
Examining data/bro-2.6.4+ds1/src/file_analysis/FileTimer.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/Tag.cc
Examining data/bro-2.6.4+ds1/src/file_analysis/Analyzer.h
Examining data/bro-2.6.4+ds1/src/Event.cc
Examining data/bro-2.6.4+ds1/src/Reassem.h
Examining data/bro-2.6.4+ds1/src/nb_dns.c
Examining data/bro-2.6.4+ds1/src/DebugLogger.h
Examining data/bro-2.6.4+ds1/src/digest.h
Examining data/bro-2.6.4+ds1/src/broxygen/utils.cc
Examining data/bro-2.6.4+ds1/src/broxygen/Info.h
Examining data/bro-2.6.4+ds1/src/broxygen/Target.h
Examining data/bro-2.6.4+ds1/src/broxygen/Configuration.cc
Examining data/bro-2.6.4+ds1/src/broxygen/IdentifierInfo.h
Examining data/bro-2.6.4+ds1/src/broxygen/utils.h
Examining data/bro-2.6.4+ds1/src/broxygen/Configuration.h
Examining data/bro-2.6.4+ds1/src/broxygen/ScriptInfo.h
Examining data/bro-2.6.4+ds1/src/broxygen/PackageInfo.cc
Examining data/bro-2.6.4+ds1/src/broxygen/Manager.h
Examining data/bro-2.6.4+ds1/src/broxygen/Manager.cc
Examining data/bro-2.6.4+ds1/src/broxygen/IdentifierInfo.cc
Examining data/bro-2.6.4+ds1/src/broxygen/PackageInfo.h
Examining data/bro-2.6.4+ds1/src/broxygen/ReStructuredTextTable.cc
Examining data/bro-2.6.4+ds1/src/broxygen/ReStructuredTextTable.h
Examining data/bro-2.6.4+ds1/src/broxygen/ScriptInfo.cc
Examining data/bro-2.6.4+ds1/src/broxygen/Target.cc
Examining data/bro-2.6.4+ds1/src/SerialObj.h
Examining data/bro-2.6.4+ds1/src/EventHandler.h
Examining data/bro-2.6.4+ds1/src/NFA.cc
Examining data/bro-2.6.4+ds1/src/File.h
Examining data/bro-2.6.4+ds1/src/Anon.cc
Examining data/bro-2.6.4+ds1/src/EquivClass.h
Examining data/bro-2.6.4+ds1/src/StateAccess.cc
Examining data/bro-2.6.4+ds1/src/Stmt.h
Examining data/bro-2.6.4+ds1/src/Hash.cc
Examining data/bro-2.6.4+ds1/src/probabilistic/BloomFilter.h
Examining data/bro-2.6.4+ds1/src/probabilistic/BitVector.h
Examining data/bro-2.6.4+ds1/src/probabilistic/Hasher.cc
Examining data/bro-2.6.4+ds1/src/probabilistic/CardinalityCounter.cc
Examining data/bro-2.6.4+ds1/src/probabilistic/BloomFilter.cc
Examining data/bro-2.6.4+ds1/src/probabilistic/Topk.h
Examining data/bro-2.6.4+ds1/src/probabilistic/CardinalityCounter.h
Examining data/bro-2.6.4+ds1/src/probabilistic/BitVector.cc
Examining data/bro-2.6.4+ds1/src/probabilistic/CounterVector.cc
Examining data/bro-2.6.4+ds1/src/probabilistic/CounterVector.h
Examining data/bro-2.6.4+ds1/src/probabilistic/Topk.cc
Examining data/bro-2.6.4+ds1/src/probabilistic/Hasher.h
Examining data/bro-2.6.4+ds1/src/Stats.cc
Examining data/bro-2.6.4+ds1/src/Serializer.cc
Examining data/bro-2.6.4+ds1/src/CompHash.cc
Examining data/bro-2.6.4+ds1/src/Debug.h
Examining data/bro-2.6.4+ds1/src/TunnelEncapsulation.h
Examining data/bro-2.6.4+ds1/src/RuleMatcher.h
Examining data/bro-2.6.4+ds1/src/Base64.h
Examining data/bro-2.6.4+ds1/src/Tag.cc
Examining data/bro-2.6.4+ds1/src/EventHandler.cc
Examining data/bro-2.6.4+ds1/src/Type.cc
Examining data/bro-2.6.4+ds1/src/Reporter.cc
Examining data/bro-2.6.4+ds1/src/Serializer.h
Examining data/bro-2.6.4+ds1/src/PriorityQueue.h
Examining data/bro-2.6.4+ds1/src/DbgHelp.cc
Examining data/bro-2.6.4+ds1/src/Net.h
Examining data/bro-2.6.4+ds1/src/ChunkedIO.h
Examining data/bro-2.6.4+ds1/src/OpaqueVal.h
Examining data/bro-2.6.4+ds1/src/Pipe.h
Examining data/bro-2.6.4+ds1/src/EquivClass.cc
Examining data/bro-2.6.4+ds1/src/main.cc
Examining data/bro-2.6.4+ds1/testing/btest/plugins/pktsrc-plugin/src/Foo.cc
Examining data/bro-2.6.4+ds1/testing/btest/plugins/pktsrc-plugin/src/Foo.h
Examining data/bro-2.6.4+ds1/testing/btest/plugins/pktsrc-plugin/src/Plugin.cc
Examining data/bro-2.6.4+ds1/testing/btest/plugins/pktdumper-plugin/src/Foo.cc
Examining data/bro-2.6.4+ds1/testing/btest/plugins/pktdumper-plugin/src/Foo.h
Examining data/bro-2.6.4+ds1/testing/btest/plugins/pktdumper-plugin/src/Plugin.cc
Examining data/bro-2.6.4+ds1/testing/btest/plugins/reader-plugin/src/Foo.cc
Examining data/bro-2.6.4+ds1/testing/btest/plugins/reader-plugin/src/Foo.h
Examining data/bro-2.6.4+ds1/testing/btest/plugins/reader-plugin/src/Plugin.cc
Examining data/bro-2.6.4+ds1/testing/btest/plugins/reader-plugin/src/Plugin.h
Examining data/bro-2.6.4+ds1/testing/btest/plugins/file-plugin/src/Foo.cc
Examining data/bro-2.6.4+ds1/testing/btest/plugins/file-plugin/src/Foo.h
Examining data/bro-2.6.4+ds1/testing/btest/plugins/file-plugin/src/Plugin.cc
Examining data/bro-2.6.4+ds1/testing/btest/plugins/protocol-plugin/src/Foo.cc
Examining data/bro-2.6.4+ds1/testing/btest/plugins/protocol-plugin/src/Foo.h
Examining data/bro-2.6.4+ds1/testing/btest/plugins/protocol-plugin/src/Plugin.cc
Examining data/bro-2.6.4+ds1/testing/btest/plugins/logging-hooks-plugin/src/Plugin.cc
Examining data/bro-2.6.4+ds1/testing/btest/plugins/logging-hooks-plugin/src/Plugin.h
Examining data/bro-2.6.4+ds1/testing/btest/plugins/reporter-hook-plugin/src/Plugin.cc
Examining data/bro-2.6.4+ds1/testing/btest/plugins/reporter-hook-plugin/src/Plugin.h
Examining data/bro-2.6.4+ds1/testing/btest/plugins/writer-plugin/src/Foo.cc
Examining data/bro-2.6.4+ds1/testing/btest/plugins/writer-plugin/src/Foo.h
Examining data/bro-2.6.4+ds1/testing/btest/plugins/writer-plugin/src/Plugin.cc
Examining data/bro-2.6.4+ds1/testing/btest/plugins/writer-plugin/src/Plugin.h
Examining data/bro-2.6.4+ds1/testing/btest/plugins/hooks-plugin/src/Plugin.cc
Examining data/bro-2.6.4+ds1/testing/btest/plugins/hooks-plugin/src/Plugin.h

FINAL RESULTS:

data/bro-2.6.4+ds1/src/DNS_Mgr.cc:217:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	if ( sscanf(buf, "%lf %d %512s %d %512s %d %d %" PRIu32, &creation_time,
data/bro-2.6.4+ds1/src/DNS_Mgr.cc:422:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(cache_name, "%s/%s", cache_dir, ".bro-dns-cache");
data/bro-2.6.4+ds1/src/Debug.cc:73:11:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	retval = vfprintf(stderr, fmt, args);
data/bro-2.6.4+ds1/src/Debug.cc:156:11:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	retval = vfprintf(trace_file, fmt, args);
data/bro-2.6.4+ds1/src/Debug.h:57:59:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	int LogTrace(const char* fmt, ...) __attribute__((format(printf, 2, 3)));;
data/bro-2.6.4+ds1/src/Debug.h:184:61:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
int debug_msg(const char* fmt, ...) __attribute__ ((format (printf, 1, 2)));
data/bro-2.6.4+ds1/src/DebugLogger.cc:159:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(file, fmt, ap);
data/bro-2.6.4+ds1/src/DebugLogger.cc:179:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(file, fmt, ap);
data/bro-2.6.4+ds1/src/DebugLogger.h:62:75:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	void Log(DebugStream stream, const char* fmt, ...) __attribute__((format(printf, 3, 4)));
data/bro-2.6.4+ds1/src/DebugLogger.h:63:85:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	void Log(const plugin::Plugin& plugin, const char* fmt, ...) __attribute__((format(printf, 3, 4)));
data/bro-2.6.4+ds1/src/File.cc:211:20:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			f = fopen(name, access);
data/bro-2.6.4+ds1/src/File.cc:247:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	delete [] access;
data/bro-2.6.4+ds1/src/File.cc:298:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		f = fopen(name, access);
data/bro-2.6.4+ds1/src/File.cc:942:25:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	SERIALIZE_OPTIONAL_STR(access);
data/bro-2.6.4+ds1/src/File.cc:958:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	UNSERIALIZE_OPTIONAL_STR(access);
data/bro-2.6.4+ds1/src/File.h:26:57:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	BroFile(FILE* arg_f, const char* filename, const char* access);
data/bro-2.6.4+ds1/src/File.h:27:44:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	BroFile(const char* filename, const char* access, BroType* arg_t = 0);
data/bro-2.6.4+ds1/src/File.h:132:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	char* access;
data/bro-2.6.4+ds1/src/PersistenceSerializer.cc:463:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		StateAccess* access;
data/bro-2.6.4+ds1/src/PersistenceSerializer.cc:554:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
							StateAccess* access)
data/bro-2.6.4+ds1/src/PersistenceSerializer.cc:562:39:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		success = Serialize(&status->info, *access);
data/bro-2.6.4+ds1/src/PersistenceSerializer.cc:568:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
							status->peer, *access);
data/bro-2.6.4+ds1/src/PersistenceSerializer.h:96:64:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	bool DoAccessSerialization(SerialStatus* status, StateAccess* access);
data/bro-2.6.4+ds1/src/RE.cc:97:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(s, app_fmt, pattern_text, new_pat);
data/bro-2.6.4+ds1/src/RE.cc:99:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(s, orig_fmt, new_pat);
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:959:25:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
					const StateAccess& access)
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:966:2:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	access.Describe(&desc);
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:975:25:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if ( ! Serialize(info, access) )
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:985:25:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
					const StateAccess& access)
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:991:29:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	return SendAccess(info, p, access);
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:994:72:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
bool RemoteSerializer::SendAccess(SerialInfo* info, const StateAccess& access)
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:1013:42:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if ( ! SendAccess(&new_info, peers[i], access) )
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:1274:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(data, BUFSIZE, "%s,%" PRIu16",%d,%d,%s,%" PRIu32,
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:1787:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy((char*) args, peer->our_class.c_str());
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:2484:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(dst, fname);
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:4085:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(data, BUFSIZE, "%s,%" PRIu32, peer->ip.AsString().c_str(),
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:4297:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(data, BUFSIZE, "%s,%" PRIu32, peer->ip.AsString().c_str(),
data/bro-2.6.4+ds1/src/RemoteSerializer.h:81:55:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	bool SendAccess(SerialInfo* info, const StateAccess& access);
data/bro-2.6.4+ds1/src/RemoteSerializer.h:84:67:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	bool SendAccess(SerialInfo* info, PeerID pid, const StateAccess& access);
data/bro-2.6.4+ds1/src/RemoteSerializer.h:304:67:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	bool SendAccess(SerialInfo* info, Peer* peer, const StateAccess& access);
data/bro-2.6.4+ds1/src/Reporter.cc:20:5:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
int syslog(int priority, const char* message_fmt, ...);
data/bro-2.6.4+ds1/src/Reporter.h:39:40:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define FMT_ATTR __attribute__((format(printf, 2, 3))) // sic! 1st is "this" I guess.
data/bro-2.6.4+ds1/src/Reporter.h:78:86:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	void ExprRuntimeError(const Expr* expr, const char* fmt, ...) __attribute__((format(printf, 3, 4)));
data/bro-2.6.4+ds1/src/Reporter.h:82:90:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	void RuntimeError(const Location* location, const char* fmt, ...) __attribute__((format(printf, 3, 4)));
data/bro-2.6.4+ds1/src/Reporter.h:104:88:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	void AnalyzerError(analyzer::Analyzer* a, const char* fmt, ...) __attribute__((format(printf, 3, 4)));;
data/bro-2.6.4+ds1/src/Reporter.h:237:78:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		   const char* postfix, const char* fmt, va_list ap) __attribute__((format(printf, 10, 0)));
data/bro-2.6.4+ds1/src/Reporter.h:241:124:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	void WeirdHelper(EventHandlerPtr event, Val* conn_val, const char* addl, const char* fmt_name, ...) __attribute__((format(printf, 5, 6)));;
data/bro-2.6.4+ds1/src/Reporter.h:242:112:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	void WeirdFlowHelper(const IPAddr& orig, const IPAddr& resp, const char* fmt_name, ...) __attribute__((format(printf, 4, 5)));;
data/bro-2.6.4+ds1/src/StateAccess.cc:863:36:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
void StateAccess::Log(StateAccess* access)
data/bro-2.6.4+ds1/src/StateAccess.cc:897:40:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			state_serializer->Serialize(&info, *access);
data/bro-2.6.4+ds1/src/StateAccess.cc:901:41:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		remote_serializer->SendAccess(&info, *access);
data/bro-2.6.4+ds1/src/StateAccess.cc:905:38:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		persistence_serializer->LogAccess(*access);
data/bro-2.6.4+ds1/src/StateAccess.cc:908:30:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		notifiers.AccessPerformed(*access);
data/bro-2.6.4+ds1/src/StateAccess.cc:918:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	delete access;
data/bro-2.6.4+ds1/src/StateAccess.h:66:31:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	static void Log(StateAccess* access);
data/bro-2.6.4+ds1/src/analyzer/protocol/bittorrent/BitTorrentTracker.cc:445:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	if ( sscanf(status, FMT_UINT, &res_status) != 1 )
data/bro-2.6.4+ds1/src/analyzer/protocol/bittorrent/BitTorrentTracker.cc:683:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
				if ( sscanf(benc_int, FMT_INT,
data/bro-2.6.4+ds1/src/analyzer/protocol/krb/KRB.cc:32:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if ( access(keytab_filename, R_OK) != 0 )
data/bro-2.6.4+ds1/src/analyzer/protocol/syslog/Plugin.cc:15:64:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
		AddComponent(new ::analyzer::Component("Syslog", ::analyzer::syslog::Syslog_Analyzer::Instantiate));
data/bro-2.6.4+ds1/src/analyzer/protocol/syslog/Syslog.cc:7:27:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
using namespace analyzer::syslog;
data/bro-2.6.4+ds1/src/analyzer/protocol/syslog/Syslog.h:10:32:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
namespace analyzer { namespace syslog {
data/bro-2.6.4+ds1/src/bro_inet_ntop.c:83:6:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	l = snprintf(tmp, sizeof(tmp), fmt, src[0], src[1], src[2], src[3]);
data/bro-2.6.4+ds1/src/bro_inet_ntop.c:187:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(dst, tmp);
data/bro-2.6.4+ds1/src/broker/Manager.h:336:26:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		__attribute__((format (printf, 2, 3)));
data/bro-2.6.4+ds1/src/bsd-getopt-long.c:211:17:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                fprintf(stderr, ambig, (int)current_argv_len,
data/bro-2.6.4+ds1/src/bsd-getopt-long.c:221:17:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                fprintf(stderr, noarg, (int)current_argv_len,
data/bro-2.6.4+ds1/src/bsd-getopt-long.c:251:17:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                fprintf(stderr, recargstring,
data/bro-2.6.4+ds1/src/bsd-getopt-long.c:269:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr, illoptstring, current_argv);
data/bro-2.6.4+ds1/src/bsd-getopt-long.c:435:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr, illoptchar, optchar);
data/bro-2.6.4+ds1/src/bsd-getopt-long.c:446:17:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                fprintf(stderr, recargchar, optchar);
data/bro-2.6.4+ds1/src/bsd-getopt-long.c:468:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                    fprintf(stderr, recargchar, optchar);
data/bro-2.6.4+ds1/src/input/Manager.h:252:79:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	void Info(const Stream* i, const char* fmt, ...) const __attribute__((format(printf, 3, 4)));
data/bro-2.6.4+ds1/src/input/Manager.h:253:82:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	void Warning(const Stream* i, const char* fmt, ...) const __attribute__((format(printf, 3, 4)));
data/bro-2.6.4+ds1/src/input/Manager.h:254:80:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	void Error(const Stream* i, const char* fmt, ...) const __attribute__((format(printf, 3, 4)));
data/bro-2.6.4+ds1/src/input/Manager.h:257:121:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	void ErrorHandler(const Stream* i, ErrorType et, bool reporter_send, const char* fmt, ...) const __attribute__((format(printf, 5, 6)));
data/bro-2.6.4+ds1/src/input/Manager.h:258:128:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	void ErrorHandler(const Stream* i, ErrorType et, bool reporter_send, const char* fmt, va_list ap) const __attribute__((format(printf, 5, 0)));
data/bro-2.6.4+ds1/src/input/readers/raw/Raw.cc:177:3:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execl("/bin/sh", "sh", "-c", fname.c_str(), (char*) NULL);
data/bro-2.6.4+ds1/src/nb_dns.c:206:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(errstr, NB_DNS_ERRSIZE, serr, 1);
data/bro-2.6.4+ds1/src/nb_dns.c:215:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			snprintf(errstr, NB_DNS_ERRSIZE, serr, 2);
data/bro-2.6.4+ds1/src/nb_dns.c:219:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			snprintf(errstr, NB_DNS_ERRSIZE, serr, 3);
data/bro-2.6.4+ds1/src/nb_dns.c:229:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			snprintf(errstr, NB_DNS_ERRSIZE, serr, 2);
data/bro-2.6.4+ds1/src/nb_dns.c:234:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			snprintf(errstr, NB_DNS_ERRSIZE, serr, 3);
data/bro-2.6.4+ds1/src/nb_dns.c:241:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(errstr, NB_DNS_ERRSIZE, serr, 4);
data/bro-2.6.4+ds1/src/threading/BasicThread.h:121:66:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	const char* Fmt(const char* format, ...)  __attribute__((format(printf, 2, 3)));;
data/bro-2.6.4+ds1/src/util.cc:178:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(c, s);
data/bro-2.6.4+ds1/src/util.cc:1030:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	return access(path.c_str(), R_OK) == 0;
data/bro-2.6.4+ds1/src/util.cc:1280:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(tmpname, newname);
data/bro-2.6.4+ds1/src/util.h:44:25:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DEBUG_MSG(x...)	fprintf(stderr, x)
data/bro-2.6.4+ds1/src/util.h:173:25:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__((format (printf, 1, 2)));
data/bro-2.6.4+ds1/src/util.h:500:15:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	int result = vsnprintf(str, size, format, al);
data/bro-2.6.4+ds1/src/util.h:509:15:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	int result = vsnprintf(str, size, format, al);
data/bro-2.6.4+ds1/src/Brofiler.cc:20:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char* bf = getenv("BRO_PROFILER_FILE");
data/bro-2.6.4+ds1/src/Brofiler.cc:50:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char* bf = getenv("BRO_PROFILER_FILE");
data/bro-2.6.4+ds1/src/broker/Manager.cc:183:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	auto max_threads_env = getenv("BRO_BROKER_MAX_THREADS");
data/bro-2.6.4+ds1/src/broker/Manager.cc:309:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	auto e = getenv("BRO_DEFAULT_CONNECT_RETRY");
data/bro-2.6.4+ds1/src/broxygen/Manager.cc:67:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ( getenv("BRO_DISABLE_BROXYGEN") )
data/bro-2.6.4+ds1/src/broxygen/Manager.cc:77:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char* env_path = getenv("PATH");
data/bro-2.6.4+ds1/src/bsd-getopt-long.c:303:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        posixly_correct = (getenv("POSIXLY_CORRECT") != NULL);
data/bro-2.6.4+ds1/src/bsd-getopt-long.h:110:10:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
#  undef getopt_long
data/bro-2.6.4+ds1/src/bsd-getopt-long.h:111:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
#  define getopt_long(A, B, C, D, E) pure_getopt_long(A, B, C, D, E)
data/bro-2.6.4+ds1/src/bsd-getopt-long.h:114:10:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
#  undef getopt
data/bro-2.6.4+ds1/src/bsd-getopt-long.h:115:11:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
#  define getopt(A, B, C) pure_getopt(A, B, C)
data/bro-2.6.4+ds1/src/input/readers/benchmark/Benchmark.cc:68:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		s[i] = values[random() / (RAND_MAX / sizeof(values))];
data/bro-2.6.4+ds1/src/input/readers/benchmark/Benchmark.cc:149:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		val->val.int_val = random();
data/bro-2.6.4+ds1/src/input/readers/benchmark/Benchmark.cc:158:25:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		val->val.double_val = random();
data/bro-2.6.4+ds1/src/input/readers/benchmark/Benchmark.cc:163:23:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		val->val.uint_val = random();
data/bro-2.6.4+ds1/src/input/readers/benchmark/Benchmark.cc:167:28:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		val->val.port_val.port = random() / (RAND_MAX / 60000);
data/bro-2.6.4+ds1/src/input/readers/benchmark/Benchmark.cc:190:25:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		unsigned int length = random() / (RAND_MAX / 15);
data/bro-2.6.4+ds1/src/logging/writers/ascii/Ascii.cc:447:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char* ext = getenv("BRO_LOG_SUFFIX");
data/bro-2.6.4+ds1/src/main.cc:154:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ( ! getenv("BRO_DNS_FAKE") )
data/bro-2.6.4+ds1/src/main.cc:216:104:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	fprintf(stderr, "    $BRO_DISABLE_BROXYGEN          | Disable Broxygen documentation support (%s)\n", getenv("BRO_DISABLE_BROXYGEN") ? "set" : "not set");
data/bro-2.6.4+ds1/src/main.cc:513:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char* seed_load_file = getenv("BRO_SEED_FILE");
data/bro-2.6.4+ds1/src/main.cc:576:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	dns_type = getenv("BRO_DNS_FAKE") ? DNS_FAKE : DNS_DEFAULT;
data/bro-2.6.4+ds1/src/main.cc:584:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char* p = getenv("BRO_PREFIXES");
data/bro-2.6.4+ds1/src/main.cc:609:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ( (op = getopt_long(argc, argv, opts, long_opts, &long_optsind)) != EOF )
data/bro-2.6.4+ds1/src/util.cc:790:2:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srandom(seed);
data/bro-2.6.4+ds1/src/util.cc:798:3:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		srandom(seed);
data/bro-2.6.4+ds1/src/util.cc:920:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		return random(); // Use system PRNG.
data/bro-2.6.4+ds1/src/util.cc:957:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		const char* path = getenv("BROPATH");
data/bro-2.6.4+ds1/src/util.cc:978:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char* path = getenv("BRO_PLUGIN_PATH");
data/bro-2.6.4+ds1/src/util.cc:988:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char* names = getenv("BRO_PLUGIN_ACTIVATE");
data/bro-2.6.4+ds1/src/util.cc:1324:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char* env = getenv("BRO_LOG_SUFFIX");
data/bro-2.6.4+ds1/testing/btest/plugins/reader-plugin/src/Foo.cc:97:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		val->val.int_val = random();
data/bro-2.6.4+ds1/testing/btest/plugins/reader-plugin/src/Foo.cc:106:25:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		val->val.double_val = random();
data/bro-2.6.4+ds1/testing/btest/plugins/reader-plugin/src/Foo.cc:111:23:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		val->val.uint_val = random();
data/bro-2.6.4+ds1/testing/btest/plugins/reader-plugin/src/Foo.cc:115:28:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		val->val.port_val.port = random() / (RAND_MAX / 60000);
data/bro-2.6.4+ds1/testing/btest/plugins/reader-plugin/src/Foo.cc:138:25:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		unsigned int length = random() / (RAND_MAX / 15);
data/bro-2.6.4+ds1/src/Base64.h:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char error_msg[256];
data/bro-2.6.4+ds1/src/Base64.h:62:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char base64_group[4];
data/bro-2.6.4+ds1/src/BroString.cc:95:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(b, bs.b, n);
data/bro-2.6.4+ds1/src/BroString.cc:131:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(b, str, n);
data/bro-2.6.4+ds1/src/BroString.cc:146:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(b, str, n+1);
data/bro-2.6.4+ds1/src/BroString.cc:157:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(b, str.c_str(), n+1);
data/bro-2.6.4+ds1/src/BroString.cc:211:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char hex_fmt[16];
data/bro-2.6.4+ds1/src/BroString.cc:214:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(hex_fmt, "%02x", b[i]);
data/bro-2.6.4+ds1/src/BroString.cc:237:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(result + strlen(result), s, sp - s);
data/bro-2.6.4+ds1/src/BroString.cc:450:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(b, v[i].data, v[i].length);
data/bro-2.6.4+ds1/src/BroString.cc:472:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(b, v[i]->Bytes(), v[i]->Len());
data/bro-2.6.4+ds1/src/Brofiler.cc:24:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* f = fopen(bf, "r");
data/bro-2.6.4+ds1/src/Brofiler.cc:28:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[16384];
data/bro-2.6.4+ds1/src/Brofiler.cc:67:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
		int fd = mkstemp(bf);
data/bro-2.6.4+ds1/src/Brofiler.cc:79:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f = fopen(bf, "w");
data/bro-2.6.4+ds1/src/ChunkedIO.cc:41:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(copy->data, data, len);
data/bro-2.6.4+ds1/src/ChunkedIO.cc:68:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		static char buffer[128];
data/bro-2.6.4+ds1/src/ChunkedIO.cc:73:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		int fd = open(buffer, O_WRONLY | O_CREAT | O_TRUNC, 0600);
data/bro-2.6.4+ds1/src/ChunkedIO.cc:158:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(part->data, p, part->len);
data/bro-2.6.4+ds1/src/ChunkedIO.cc:216:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(write_buffer + write_len, &nlen, sizeof(nlen));
data/bro-2.6.4+ds1/src/ChunkedIO.cc:220:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(write_buffer + write_len, chunk->data, len);
data/bro-2.6.4+ds1/src/ChunkedIO.cc:356:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(chunk->data, read_buffer + read_pos, real_len);
data/bro-2.6.4+ds1/src/ChunkedIO.cc:369:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(c->data, c1->data, c1->len);
data/bro-2.6.4+ds1/src/ChunkedIO.cc:370:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(c->data + c1->len, c2->data, c2->len);
data/bro-2.6.4+ds1/src/ChunkedIO.cc:647:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buffer[1024];
data/bro-2.6.4+ds1/src/ChunkedIO.cc:1145:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buffer[BUFLEN];
data/bro-2.6.4+ds1/src/ChunkedIO.cc:1289:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(compressed, chunk->data, chunk->len);
data/bro-2.6.4+ds1/src/ChunkedIO.cc:1320:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(compressed, old, old_size);
data/bro-2.6.4+ds1/src/CompHash.cc:269:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(kp1, sval->Bytes(), sval->Len());
data/bro-2.6.4+ds1/src/Conn.cc:421:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char null[l2_len]{};
data/bro-2.6.4+ds1/src/Conn.cc:550:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		major = new Val(atoi(s), TYPE_INT);
data/bro-2.6.4+ds1/src/Conn.cc:560:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		minor = new Val(atoi(s), TYPE_INT);
data/bro-2.6.4+ds1/src/Conn.cc:570:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		minor2 = new Val(atoi(s), TYPE_INT);
data/bro-2.6.4+ds1/src/Conn.cc:801:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmp_l2_addr, resp_l2_addr, l2_len);
data/bro-2.6.4+ds1/src/Conn.cc:802:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(resp_l2_addr, orig_l2_addr, l2_len);
data/bro-2.6.4+ds1/src/Conn.cc:803:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(orig_l2_addr, tmp_l2_addr, l2_len);
data/bro-2.6.4+ds1/src/ConvertUTF.c:124:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char trailingBytesForUTF8[256] = {
data/bro-2.6.4+ds1/src/DFA.cc:234:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char xbuf[512];
data/bro-2.6.4+ds1/src/DFA.cc:241:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(xbuf, "'%c'", r);
data/bro-2.6.4+ds1/src/DFA.cc:243:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(xbuf, "'%c'-'%c'", r, m->Rep(i-1));
data/bro-2.6.4+ds1/src/DNS_Mgr.cc:87:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char err[NB_DNS_ERRSIZE];
data/bro-2.6.4+ds1/src/DNS_Mgr.cc:206:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[512];
data/bro-2.6.4+ds1/src/DNS_Mgr.cc:214:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char req_buf[512+1], name_buf[512+1];
data/bro-2.6.4+ds1/src/DNS_Mgr.cc:379:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char err[NB_DNS_ERRSIZE];
data/bro-2.6.4+ds1/src/DNS_Mgr.cc:424:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	LoadCache(fopen(cache_name, "r"));
data/bro-2.6.4+ds1/src/DNS_Mgr.cc:459:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char tmp[32 + 256];
data/bro-2.6.4+ds1/src/DNS_Mgr.cc:466:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char tmp[128];
data/bro-2.6.4+ds1/src/DNS_Mgr.cc:628:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char err[NB_DNS_ERRSIZE];
data/bro-2.6.4+ds1/src/DNS_Mgr.cc:665:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* f = fopen(cache_name, "w");
data/bro-2.6.4+ds1/src/DNS_Mgr.cc:1391:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char err[NB_DNS_ERRSIZE];
data/bro-2.6.4+ds1/src/DbgBreakpoint.h:66:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char description[512];
data/bro-2.6.4+ds1/src/Debug.cc:89:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		newfile = fopen(filename, "w");
data/bro-2.6.4+ds1/src/Debug.cc:251:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char charinput[256];
data/bro-2.6.4+ds1/src/Debug.cc:272:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			int option = atoi(input.c_str());
data/bro-2.6.4+ds1/src/Debug.cc:718:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char prompt[512];
data/bro-2.6.4+ds1/src/DebugCmds.cc:83:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char charinput[256];
data/bro-2.6.4+ds1/src/DebugCmds.cc:101:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int option = atoi(input.c_str());
data/bro-2.6.4+ds1/src/DebugCmds.cc:457:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int idx = atoi(args[0].c_str());
data/bro-2.6.4+ds1/src/DebugCmds.cc:502:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			if ( int idx = atoi(args[i].c_str()) )
data/bro-2.6.4+ds1/src/DebugLogger.cc:44:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		file = fopen(filename, "w");
data/bro-2.6.4+ds1/src/Desc.cc:100:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char tmp[256];
data/bro-2.6.4+ds1/src/Desc.cc:112:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char tmp[256];
data/bro-2.6.4+ds1/src/Desc.cc:124:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char tmp[256];
data/bro-2.6.4+ds1/src/Desc.cc:136:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char tmp[256];
data/bro-2.6.4+ds1/src/Desc.cc:150:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char tmp[350];
data/bro-2.6.4+ds1/src/Desc.cc:332:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((void*) &((char*) base)[offset], bytes, n);
data/bro-2.6.4+ds1/src/Dict.cc:440:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(new_entry->key, old_key, n);
data/bro-2.6.4+ds1/src/Expr.cc:41:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		static char errbuf[512];
data/bro-2.6.4+ds1/src/Expr.cc:2619:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char err[512];
data/bro-2.6.4+ds1/src/Expr.cc:4091:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char buf[512];
data/bro-2.6.4+ds1/src/Expr.cc:4112:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char buf[512];
data/bro-2.6.4+ds1/src/File.cc:211:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			f = fopen(name, access);
data/bro-2.6.4+ds1/src/File.cc:213:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			f = fopen(name, mode);
data/bro-2.6.4+ds1/src/File.cc:288:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/bro-2.6.4+ds1/src/File.cc:298:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f = fopen(name, access);
data/bro-2.6.4+ds1/src/File.cc:301:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f = fopen(name, "a");
data/bro-2.6.4+ds1/src/File.cc:308:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f = fopen("/dev/null", "w");
data/bro-2.6.4+ds1/src/File.cc:415:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[256];
data/bro-2.6.4+ds1/src/File.cc:673:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE* key = fopen(keyfile, "r");
data/bro-2.6.4+ds1/src/File.cc:697:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char secret[EVP_PKEY_size(pub_key)];
data/bro-2.6.4+ds1/src/File.cc:702:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char iv[iv_len];
data/bro-2.6.4+ds1/src/Flare.cc:18:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/bro-2.6.4+ds1/src/Flare.cc:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[256];
data/bro-2.6.4+ds1/src/Frag.cc:42:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((void*) proto_hdr, (const void*) ip4, proto_hdr_len);
data/bro-2.6.4+ds1/src/Frag.cc:48:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(proto_hdr, ip->IP6_Hdr(), proto_hdr_len);
data/bro-2.6.4+ds1/src/Frag.cc:244:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void*) pkt, (const void*) proto_hdr, proto_hdr_len);
data/bro-2.6.4+ds1/src/Frag.cc:267:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((void*) &pkt[b->seq], (const void*) b->block,
data/bro-2.6.4+ds1/src/Hash.cc:114:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(key, arg_key, size);
data/bro-2.6.4+ds1/src/Hash.cc:161:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(k_copy, k, s);
data/bro-2.6.4+ds1/src/IP.cc:668:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(new_hdr, ip4, HdrLen());
data/bro-2.6.4+ds1/src/IP.cc:672:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(new_hdr, ip6, HdrLen());
data/bro-2.6.4+ds1/src/IPAddr.cc:108:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(in6.s6_addr, v4_mapped_prefix, sizeof(v4_mapped_prefix));
data/bro-2.6.4+ds1/src/IPAddr.cc:126:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&in6.s6_addr[12], &addr, sizeof(uint32_t));
data/bro-2.6.4+ds1/src/IPAddr.cc:143:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char s[INET_ADDRSTRLEN];
data/bro-2.6.4+ds1/src/IPAddr.cc:152:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char s[INET6_ADDRSTRLEN];
data/bro-2.6.4+ds1/src/IPAddr.cc:163:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[33];
data/bro-2.6.4+ds1/src/IPAddr.cc:185:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[256];
data/bro-2.6.4+ds1/src/IPAddr.cc:259:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char l[16];
data/bro-2.6.4+ds1/src/IPAddr.h:52:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(in6.s6_addr, v4_mapped_prefix, sizeof(v4_mapped_prefix));
data/bro-2.6.4+ds1/src/IPAddr.h:53:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&in6.s6_addr[12], &in4.s_addr, sizeof(in4.s_addr));
data/bro-2.6.4+ds1/src/IPAddr.h:198:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(bytes, in6.s6_addr, sizeof(in6.s6_addr));
data/bro-2.6.4+ds1/src/IPAddr.h:213:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(arg_in6->s6_addr, in6.s6_addr, sizeof(in6.s6_addr));
data/bro-2.6.4+ds1/src/IPAddr.h:389:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(in6.s6_addr, v4_mapped_prefix, sizeof(v4_mapped_prefix));
data/bro-2.6.4+ds1/src/IPAddr.h:390:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&in6.s6_addr[12], bytes, sizeof(uint32_t));
data/bro-2.6.4+ds1/src/IntSet.cc:16:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(newset, set, size);
data/bro-2.6.4+ds1/src/OSFinger.cc:295:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[MAXLINE];
data/bro-2.6.4+ds1/src/OSFinger.cc:310:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char obuf[MAXLINE],genre[MAXLINE],desc[MAXLINE],quirks[MAXLINE];
data/bro-2.6.4+ds1/src/OSFinger.cc:311:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char w[MAXLINE],sb[MAXLINE];
data/bro-2.6.4+ds1/src/OSFinger.cc:333:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if (*sb != '*') s = atoi(sb); else s = 0;
data/bro-2.6.4+ds1/src/OSFinger.cc:361:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      sig[sigcnt].wsize = atoi(w+1);
data/bro-2.6.4+ds1/src/OSFinger.cc:368:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      sig[sigcnt].wsize = atoi(w+1);
data/bro-2.6.4+ds1/src/OSFinger.cc:372:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      if (!(sig[sigcnt].wsize = atoi(w+1)))
data/bro-2.6.4+ds1/src/OSFinger.cc:377:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      sig[sigcnt].wsize = atoi(w);
data/bro-2.6.4+ds1/src/OSFinger.cc:420:45:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    if (!(sig[sigcnt].wsc = atoi(p+2)))
data/bro-2.6.4+ds1/src/OSFinger.cc:426:42:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                  else sig[sigcnt].wsc = atoi(p+1);
data/bro-2.6.4+ds1/src/OSFinger.cc:437:45:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    if (!(sig[sigcnt].mss = atoi(p+2)))
data/bro-2.6.4+ds1/src/OSFinger.cc:443:42:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                  else sig[sigcnt].mss = atoi(p+1);
data/bro-2.6.4+ds1/src/OSFinger.cc:449:50:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                  else sig[sigcnt].opt[optcnt] = atoi(p+1);
data/bro-2.6.4+ds1/src/Obj.cc:124:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char out[512];
data/bro-2.6.4+ds1/src/PersistenceSerializer.cc:172:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char oldname[PATH_MAX];
data/bro-2.6.4+ds1/src/PersistenceSerializer.cc:173:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char newname[PATH_MAX];
data/bro-2.6.4+ds1/src/Pipe.cc:14:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[256];
data/bro-2.6.4+ds1/src/PolicyFile.cc:37:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* throwaway = fopen(policy_filename, "r");
data/bro-2.6.4+ds1/src/PolicyFile.cc:68:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* f = fopen(policy_filename, "r");
data/bro-2.6.4+ds1/src/PolicyFile.cc:86:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[256];
data/bro-2.6.4+ds1/src/PolicyFile.cc:129:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* throwaway = fopen(policy_filename, "r");
data/bro-2.6.4+ds1/src/Queue.cc:115:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy( new_entry, entry + head,
data/bro-2.6.4+ds1/src/Queue.cc:120:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy( new_entry, entry + head,
data/bro-2.6.4+ds1/src/Queue.cc:122:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy( new_entry + len, entry,
data/bro-2.6.4+ds1/src/Reassem.cc:21:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void*) block, (const void*) data, size);
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:351:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buffer + 4, &tmp, sizeof(tmp));
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:366:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[8];
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:466:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[512];
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:2486:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst, txt, len);
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:2649:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(peer->log_buffer + peer->log_buffer_used, data, len);
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:2676:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data, p->log_buffer, p->log_buffer_used);
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:3027:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[BUFSIZE];
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:3072:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[512];
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:3252:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(file, O_RDONLY, 0600);
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:4004:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char port_str[16];
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:4147:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char port_str[16];
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:4428:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(buffer+pos, "not connected");
data/bro-2.6.4+ds1/src/Reporter.cc:376:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char tmp[512];
data/bro-2.6.4+ds1/src/Reporter.cc:423:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char tmp[32];
data/bro-2.6.4+ds1/src/Reporter.cc:514:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char tmp[32];
data/bro-2.6.4+ds1/src/RuleMatcher.cc:1379:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst, src->Bytes(), src->Len());
data/bro-2.6.4+ds1/src/SerializationFormat.cc:71:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(b, input + input_pos, count);
data/bro-2.6.4+ds1/src/SerializationFormat.cc:87:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(output + output_pos, b, count);
data/bro-2.6.4+ds1/src/Serializer.cc:560:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024];
data/bro-2.6.4+ds1/src/Serializer.cc:799:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(file, readonly ? O_RDONLY : O_WRONLY | O_CREAT | O_TRUNC, 0600);
data/bro-2.6.4+ds1/src/UID.h:106:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[sizeof(uid) * 8 + 1];  // enough for even binary representation
data/bro-2.6.4+ds1/src/Val.cc:585:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char name[MAX_NAME_SIZE];
data/bro-2.6.4+ds1/src/Val.cc:591:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char host[MAXHOSTNAMELEN];
data/bro-2.6.4+ds1/src/Val.cc:592:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(host, "localhost");
data/bro-2.6.4+ds1/src/Val.cc:985:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		                              atoi(s.substr(slash_loc + 1).c_str()));
data/bro-2.6.4+ds1/src/Val.cc:2986:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[512];
data/bro-2.6.4+ds1/src/Val.cc:3016:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[512];
data/bro-2.6.4+ds1/src/analyzer/protocol/arp/ARP.cc:94:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errbuf[1024];
data/bro-2.6.4+ds1/src/analyzer/protocol/arp/ARP.cc:237:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/bro-2.6.4+ds1/src/analyzer/protocol/bittorrent/BitTorrentTracker.cc:113:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&req_buf[req_buf_len], data, len);
data/bro-2.6.4+ds1/src/analyzer/protocol/bittorrent/BitTorrentTracker.cc:161:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&res_buf[res_buf_len], data, len);
data/bro-2.6.4+ds1/src/analyzer/protocol/bittorrent/BitTorrentTracker.h:91:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char req_buf[BTTRACKER_BUF];
data/bro-2.6.4+ds1/src/analyzer/protocol/bittorrent/BitTorrentTracker.h:100:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char res_buf[BTTRACKER_BUF];
data/bro-2.6.4+ds1/src/analyzer/protocol/dnp3/DNP3.cc:257:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(endp->buffer + endp->buffer_len, *data, to_copy);
data/bro-2.6.4+ds1/src/analyzer/protocol/dns/DNS.cc:443:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(name, data, label_len);
data/bro-2.6.4+ds1/src/analyzer/protocol/file/File.h:29:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[BUFFER_SIZE];
data/bro-2.6.4+ds1/src/analyzer/protocol/gnutella/Gnutella.cc:229:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&ms->msg_len, &msg[19], 4);
data/bro-2.6.4+ds1/src/analyzer/protocol/gnutella/Gnutella.cc:281:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&ms->msg[ms->msg_pos],
data/bro-2.6.4+ds1/src/analyzer/protocol/gnutella/Gnutella.cc:296:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&ms->msg[ms->msg_pos], &data[ms->current_offset],
data/bro-2.6.4+ds1/src/analyzer/protocol/gnutella/Gnutella.cc:312:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(&ms->payload[ms->payload_len],
data/bro-2.6.4+ds1/src/analyzer/protocol/gnutella/Gnutella.h:24:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char msg[GNUTELLA_MSG_SIZE];
data/bro-2.6.4+ds1/src/analyzer/protocol/gnutella/Gnutella.h:31:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char payload[GNUTELLA_MAX_PAYLOAD];
data/bro-2.6.4+ds1/src/analyzer/protocol/http/HTTP.cc:1406:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(s, str->Bytes(), truncate_http_URI);
data/bro-2.6.4+ds1/src/analyzer/protocol/http/HTTP.cc:1407:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(s + truncate_http_URI, "...", 4);
data/bro-2.6.4+ds1/src/analyzer/protocol/http/HTTP.cc:1812:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(s, product.data, product.length);
data/bro-2.6.4+ds1/src/analyzer/protocol/http/HTTP.cc:1817:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(s, product_version.data, product_version.length);
data/bro-2.6.4+ds1/src/analyzer/protocol/irc/IRC.cc:228:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					users = atoi(parts[i-1].c_str());
data/bro-2.6.4+ds1/src/analyzer/protocol/irc/IRC.cc:230:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					services = atoi(parts[i-1].c_str());
data/bro-2.6.4+ds1/src/analyzer/protocol/irc/IRC.cc:232:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					servers = atoi(parts[i-1].c_str());
data/bro-2.6.4+ds1/src/analyzer/protocol/irc/IRC.cc:309:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					users = atoi(parts[i-1].c_str());
data/bro-2.6.4+ds1/src/analyzer/protocol/irc/IRC.cc:311:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					users = atoi(parts[i-1].c_str());
data/bro-2.6.4+ds1/src/analyzer/protocol/irc/IRC.cc:313:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					services = atoi(parts[i-1].c_str());
data/bro-2.6.4+ds1/src/analyzer/protocol/irc/IRC.cc:315:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					servers = atoi(parts[i-1].c_str());
data/bro-2.6.4+ds1/src/analyzer/protocol/irc/IRC.cc:340:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					channels = atoi(parts[i - 1].c_str());
data/bro-2.6.4+ds1/src/analyzer/protocol/irc/IRC.cc:554:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			vl->append(new Val(atoi(parts[7].c_str()), TYPE_INT));
data/bro-2.6.4+ds1/src/analyzer/protocol/irc/IRC.cc:662:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				raw_ip = (10 * raw_ip) + atoi(s.c_str());
data/bro-2.6.4+ds1/src/analyzer/protocol/irc/IRC.cc:673:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			vl->append(new Val(atoi(parts[4].c_str()), TYPE_COUNT));
data/bro-2.6.4+ds1/src/analyzer/protocol/irc/IRC.cc:675:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				vl->append(new Val(atoi(parts[5].c_str()),
data/bro-2.6.4+ds1/src/analyzer/protocol/login/Rlogin.cc:137:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				unsigned char buf[64];
data/bro-2.6.4+ds1/src/analyzer/protocol/mime/MIME.cc:1121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rbuf[128];
data/bro-2.6.4+ds1/src/analyzer/protocol/mime/MIME.cc:1158:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rbuf[128];
data/bro-2.6.4+ds1/src/analyzer/protocol/mime/MIME.cc:1212:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data_buf_data + data_buf_offset, data, n);
data/bro-2.6.4+ds1/src/analyzer/protocol/mime/MIME.cc:1505:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(data_buffer->Bytes(),
data/bro-2.6.4+ds1/src/analyzer/protocol/ncp/NCP.cc:137:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(new_buf, msg_buf, buf_n);
data/bro-2.6.4+ds1/src/analyzer/protocol/pia/PIA.cc:41:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(tmp, data, len);
data/bro-2.6.4+ds1/src/analyzer/protocol/pia/PIA.cc:188:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char dummy_packet[sizeof(struct ip) + sizeof(struct tcphdr)];
data/bro-2.6.4+ds1/src/analyzer/protocol/pop3/POP3.cc:197:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char tmp[len];	// more than enough
data/bro-2.6.4+ds1/src/analyzer/protocol/pop3/POP3.cc:199:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tmp, s, n);
data/bro-2.6.4+ds1/src/analyzer/protocol/rpc/RPC.cc:38:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void*) call_buf, (const void*) buf, call_n);
data/bro-2.6.4+ds1/src/analyzer/protocol/rpc/RPC.cc:403:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf+fill, data, to_copy);
data/bro-2.6.4+ds1/src/analyzer/protocol/smtp/SMTP.cc:895:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[512];
data/bro-2.6.4+ds1/src/analyzer/protocol/smtp/SMTP.cc:908:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[512];
data/bro-2.6.4+ds1/src/analyzer/protocol/tcp/ContentLine.cc:55:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(b, buf, offset);
data/bro-2.6.4+ds1/src/analyzer/protocol/tcp/Stats.cc:73:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buf[32];
data/bro-2.6.4+ds1/src/analyzer/protocol/tcp/TCP_Endpoint.cc:234:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[256];
data/bro-2.6.4+ds1/src/analyzer/protocol/tcp/TCP_Flags.h:26:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tcp_flags[10];
data/bro-2.6.4+ds1/src/bro_inet_ntop.c:80:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[sizeof "255.255.255.255"];
data/bro-2.6.4+ds1/src/bro_inet_ntop.c:109:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"], *tp;
data/bro-2.6.4+ds1/src/bro_inet_ntop.c:172:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		tp += sprintf(tp, "%x", words[i]);
data/bro-2.6.4+ds1/src/broker/Manager.cc:186:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		config.set("scheduler.max-threads", atoi(max_threads_env));
data/bro-2.6.4+ds1/src/broker/Manager.cc:312:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		retry = atoi(e);
data/bro-2.6.4+ds1/src/broxygen/Target.cc:201:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(name.c_str(), "w");
data/bro-2.6.4+ds1/src/bsd-getopt-long.c:156:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            ((char **) nargv)[pos] = nargv[cstart];
data/bro-2.6.4+ds1/src/bsd-getopt-long.c:158:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            ((char **)nargv)[cstart] = swap;
data/bro-2.6.4+ds1/src/digest.h:17:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[256]; // big enough for any of md5/sha1/sha256
data/bro-2.6.4+ds1/src/file_analysis/analyzer/extract/Extract.cc:17:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_APPEND, 0666);
data/bro-2.6.4+ds1/src/file_analysis/analyzer/extract/Extract.cc:22:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[128];
data/bro-2.6.4+ds1/src/file_analysis/analyzer/x509/OCSP.cc:99:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[OCSP_STRING_BUF_SIZE];
data/bro-2.6.4+ds1/src/file_analysis/analyzer/x509/OCSP.cc:417:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[OCSP_STRING_BUF_SIZE]; // we need a buffer for some of the openssl functions
data/bro-2.6.4+ds1/src/file_analysis/analyzer/x509/OCSP.cc:470:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 	char buf[OCSP_STRING_BUF_SIZE];
data/bro-2.6.4+ds1/src/file_analysis/analyzer/x509/X509.cc:93:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048]; // we need a buffer for some of the openssl functions
data/bro-2.6.4+ds1/src/file_analysis/analyzer/x509/X509Common.cc:28:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char lBuffer[26];
data/bro-2.6.4+ds1/src/file_analysis/analyzer/x509/X509Common.cc:61:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pBuffer, pString, 10);
data/bro-2.6.4+ds1/src/file_analysis/analyzer/x509/X509Common.cc:78:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pBuffer, pString, 12);
data/bro-2.6.4+ds1/src/file_analysis/analyzer/x509/X509Common.cc:194:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ext_val_copy, ext_val->data, ext_val->length);
data/bro-2.6.4+ds1/src/file_analysis/analyzer/x509/X509Common.cc:227:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[256];
data/bro-2.6.4+ds1/src/file_analysis/analyzer/x509/X509Common.cc:228:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char oid[256];
data/bro-2.6.4+ds1/src/file_analysis/analyzer/x509/X509Common.cc:293:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char tmp[120];
data/bro-2.6.4+ds1/src/input.h:15:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char last_tok[128];
data/bro-2.6.4+ds1/src/input/Manager.cc:2100:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data+startpos, (const void*) &(val->val.int_val), sizeof(val->val.int_val));
data/bro-2.6.4+ds1/src/input/Manager.cc:2105:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data+startpos, (const void*) &(val->val.uint_val), sizeof(val->val.uint_val));
data/bro-2.6.4+ds1/src/input/Manager.cc:2111:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data+startpos, (const void*) &(val->val.port_val.port),
data/bro-2.6.4+ds1/src/input/Manager.cc:2114:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data+startpos+length, (const void*) &(val->val.port_val.proto),
data/bro-2.6.4+ds1/src/input/Manager.cc:2124:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data+startpos, (const void*) &(val->val.double_val),
data/bro-2.6.4+ds1/src/input/Manager.cc:2131:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data+startpos, val->val.string_val.data, val->val.string_val.length);
data/bro-2.6.4+ds1/src/input/Manager.cc:2144:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(data + startpos, (const char*) &(val->val.addr_val.in.in4), length);
data/bro-2.6.4+ds1/src/input/Manager.cc:2149:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(data + startpos, (const char*) &(val->val.addr_val.in.in6), length);
data/bro-2.6.4+ds1/src/input/Manager.cc:2165:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(data + startpos,
data/bro-2.6.4+ds1/src/input/Manager.cc:2171:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(data + startpos,
data/bro-2.6.4+ds1/src/input/Manager.cc:2180:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data + startpos + length ,
data/bro-2.6.4+ds1/src/input/readers/ascii/Ascii.cc:140:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file.open(Info().source);
data/bro-2.6.4+ds1/src/input/readers/benchmark/Benchmark.cc:47:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	num_lines = atoi(info.source);
data/bro-2.6.4+ds1/src/input/readers/config/Config.cc:86:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file.open(Info().source);
data/bro-2.6.4+ds1/src/input/readers/raw/Raw.cc:93:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/bro-2.6.4+ds1/src/input/readers/raw/Raw.cc:200:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buf[256];
data/bro-2.6.4+ds1/src/input/readers/raw/Raw.cc:278:47:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		file = std::unique_ptr<FILE, int(*)(FILE*)>(fopen(fname.c_str(), "r"), fclose);
data/bro-2.6.4+ds1/src/input/readers/raw/Raw.cc:296:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buf[256];
data/bro-2.6.4+ds1/src/input/readers/raw/Raw.cc:480:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(newbuf.get(), buf.get(), block_size*(repeats-1));
data/bro-2.6.4+ds1/src/input/readers/raw/Raw.cc:492:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buf.get(), outbuf.get() + found + sep_length, pos - found - sep_length);
data/bro-2.6.4+ds1/src/input/readers/sqlite/SQLite.cc:143:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(out, text, length);
data/bro-2.6.4+ds1/src/input/readers/sqlite/SQLite.cc:211:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int width = atoi(s.substr(pos+1).c_str());
data/bro-2.6.4+ds1/src/iosource/BPF_Program.cc:108:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char my_error[PCAP_ERRBUF_SIZE];
data/bro-2.6.4+ds1/src/iosource/Packet.cc:37:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(const_cast<u_char *>(data), arg_data, arg_caplen);
data/bro-2.6.4+ds1/src/iosource/Packet.cc:573:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[20];
data/bro-2.6.4+ds1/src/iosource/PktSrc.cc:95:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[512];
data/bro-2.6.4+ds1/src/iosource/PktSrc.cc:333:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errbuf[PCAP_ERRBUF_SIZE];
data/bro-2.6.4+ds1/src/iosource/pcap/Dumper.cc:76:29:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		dumper = (pcap_dumper_t*) fopen(props.path.c_str(), "a");
data/bro-2.6.4+ds1/src/iosource/pcap/Source.cc:55:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errbuf[PCAP_ERRBUF_SIZE];
data/bro-2.6.4+ds1/src/iosource/pcap/Source.cc:56:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_errbuf[PCAP_ERRBUF_SIZE];
data/bro-2.6.4+ds1/src/iosource/pcap/Source.cc:162:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errbuf[PCAP_ERRBUF_SIZE];
data/bro-2.6.4+ds1/src/iosource/pcap/Source.cc:237:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errbuf[PCAP_ERRBUF_SIZE];
data/bro-2.6.4+ds1/src/iosource/pcap/Source.cc:266:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errbuf[PCAP_ERRBUF_SIZE];
data/bro-2.6.4+ds1/src/iosource/pcap/Source.cc:314:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errbuf[PCAP_ERRBUF_SIZE];
data/bro-2.6.4+ds1/src/logging/Manager.cc:818:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char num[32];
data/bro-2.6.4+ds1/src/logging/Manager.cc:1015:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, s->Bytes(), s->Len());
data/bro-2.6.4+ds1/src/logging/Manager.cc:1536:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128];
data/bro-2.6.4+ds1/src/logging/Manager.cc:1551:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		      double open, double close, bool success, bool terminating)
data/bro-2.6.4+ds1/src/logging/Manager.cc:1576:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	info->Assign(3, new Val(open, TYPE_TIME));
data/bro-2.6.4+ds1/src/logging/Manager.h:256:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			      double open, double close, bool success, bool terminating);
data/bro-2.6.4+ds1/src/logging/WriterBackend.cc:23:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				double open, double close, bool success, bool terminating)
data/bro-2.6.4+ds1/src/logging/WriterBackend.cc:25:69:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		new_name(copy_string(new_name)), old_name(copy_string(old_name)), open(open),
data/bro-2.6.4+ds1/src/logging/WriterBackend.cc:25:74:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		new_name(copy_string(new_name)), old_name(copy_string(old_name)), open(open),
data/bro-2.6.4+ds1/src/logging/WriterBackend.cc:36:66:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		return log_mgr->FinishedRotation(Object(), new_name, old_name, open, close, success, terminating);
data/bro-2.6.4+ds1/src/logging/WriterBackend.cc:42:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        double open;
data/bro-2.6.4+ds1/src/logging/WriterBackend.cc:213:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				     double open, double close, bool terminating)
data/bro-2.6.4+ds1/src/logging/WriterBackend.cc:216:68:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	SendOut(new RotationFinishedMessage(frontend, new_name, old_name, open, close, true, terminating));
data/bro-2.6.4+ds1/src/logging/WriterBackend.cc:328:61:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
bool WriterBackend::Rotate(const char* rotated_path, double open,
data/bro-2.6.4+ds1/src/logging/WriterBackend.cc:336:32:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( ! DoRotate(rotated_path, open, close, terminating) )
data/bro-2.6.4+ds1/src/logging/WriterBackend.h:184:47:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	bool Rotate(const char* rotated_path, double open, double close, bool terminating);
data/bro-2.6.4+ds1/src/logging/WriterBackend.h:238:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			      double open, double close, bool terminating);
data/bro-2.6.4+ds1/src/logging/WriterBackend.h:358:57:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	virtual bool DoRotate(const char* rotated_path, double open, double close,
data/bro-2.6.4+ds1/src/logging/WriterFrontend.cc:36:105:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	RotateMessage(WriterBackend* backend, WriterFrontend* frontend, const char* rotated_path, const double open,
data/bro-2.6.4+ds1/src/logging/WriterFrontend.cc:40:44:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		rotated_path(copy_string(rotated_path)), open(open),
data/bro-2.6.4+ds1/src/logging/WriterFrontend.cc:40:49:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		rotated_path(copy_string(rotated_path)), open(open),
data/bro-2.6.4+ds1/src/logging/WriterFrontend.cc:45:65:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	virtual bool Process() { return Object()->Rotate(rotated_path, open, close, terminating); }
data/bro-2.6.4+ds1/src/logging/WriterFrontend.cc:50:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	const double open;
data/bro-2.6.4+ds1/src/logging/WriterFrontend.cc:278:62:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void WriterFrontend::Rotate(const char* rotated_path, double open, double close, bool terminating)
data/bro-2.6.4+ds1/src/logging/WriterFrontend.cc:286:66:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		backend->SendIn(new RotateMessage(backend, this, rotated_path, open, close, terminating));
data/bro-2.6.4+ds1/src/logging/WriterFrontend.h:136:47:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	void Rotate(const char* rotated_path, double open, double close, bool terminating);
data/bro-2.6.4+ds1/src/logging/writers/ascii/Ascii.cc:97:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			gzip_level = atoi(i->second);
data/bro-2.6.4+ds1/src/logging/writers/ascii/Ascii.cc:239:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(fname.c_str(), O_WRONLY | O_CREAT | O_TRUNC, 0666);
data/bro-2.6.4+ds1/src/logging/writers/ascii/Ascii.cc:257:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char mode[4];
data/bro-2.6.4+ds1/src/logging/writers/ascii/Ascii.cc:377:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char hex[4] = {'\\', 'x', '0', '0'};
data/bro-2.6.4+ds1/src/logging/writers/ascii/Ascii.cc:400:55:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
bool Ascii::DoRotate(const char* rotated_path, double open, double close, bool terminating)
data/bro-2.6.4+ds1/src/logging/writers/ascii/Ascii.cc:416:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[256];
data/bro-2.6.4+ds1/src/logging/writers/ascii/Ascii.cc:424:56:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( ! FinishedRotation(nname.c_str(), fname.c_str(), open, close, terminating) )
data/bro-2.6.4+ds1/src/logging/writers/ascii/Ascii.cc:471:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[128];
data/bro-2.6.4+ds1/src/logging/writers/ascii/Ascii.h:31:49:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	bool DoRotate(const char* rotated_path, double open,
data/bro-2.6.4+ds1/src/logging/writers/none/None.cc:45:54:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
bool None::DoRotate(const char* rotated_path, double open, double close, bool terminating)
data/bro-2.6.4+ds1/src/logging/writers/none/None.cc:47:52:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( ! FinishedRotation("/dev/null", Info().path, open, close, terminating))
data/bro-2.6.4+ds1/src/logging/writers/none/None.h:26:49:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	bool DoRotate(const char* rotated_path, double open,
data/bro-2.6.4+ds1/src/logging/writers/sqlite/SQLite.cc:359:56:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
bool SQLite::DoRotate(const char* rotated_path, double open, double close, bool terminating)
data/bro-2.6.4+ds1/src/logging/writers/sqlite/SQLite.cc:361:52:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( ! FinishedRotation("/dev/null", Info().path, open, close, terminating))
data/bro-2.6.4+ds1/src/logging/writers/sqlite/SQLite.h:30:49:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	bool DoRotate(const char* rotated_path, double open,
data/bro-2.6.4+ds1/src/main.cc:600:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char opts[256];
data/bro-2.6.4+ds1/src/main.cc:729:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			RE_level = atoi(optarg);
data/bro-2.6.4+ds1/src/modp_numtoa.c:139:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "%e", neg ? -value : value);
data/bro-2.6.4+ds1/src/modp_numtoa.c:241:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "%e", neg ? -value : value);
data/bro-2.6.4+ds1/src/nb_dns.c:63:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[NS_MAXDNAME + 1];
data/bro-2.6.4+ds1/src/nb_dns.c:82:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *host_aliases[MAXALIASES + 1];
data/bro-2.6.4+ds1/src/nb_dns.c:83:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *h_addr_ptrs[MAXADDRS + 1];
data/bro-2.6.4+ds1/src/nb_dns.c:84:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hostbuf[8 * 1024];
data/bro-2.6.4+ds1/src/nb_dns.c:106:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char errnum_buf[32];
data/bro-2.6.4+ds1/src/nb_dns.c:376:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[NS_MAXDNAME + 1];
data/bro-2.6.4+ds1/src/nb_dns.c:601:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(bp, rdata, rdlen);
data/bro-2.6.4+ds1/src/nb_dns.c:617:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(bp, rdata, rdlen);
data/bro-2.6.4+ds1/src/net_util.cc:137:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buffer[512];
data/bro-2.6.4+ds1/src/net_util.cc:156:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[25];
data/bro-2.6.4+ds1/src/patricia.c:123:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (dst, &result, 4);
data/bro-2.6.4+ds1/src/patricia.c:167:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (dst, xp, 4);
data/bro-2.6.4+ds1/src/patricia.c:192:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffs[16][48+5];
data/bro-2.6.4+ds1/src/patricia.c:216:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf (buff, "%d.%d.%d.%d/%d", a[0], a[1], a[2], a[3],
data/bro-2.6.4+ds1/src/patricia.c:220:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf (buff, "%d.%d.%d.%d", a[0], a[1], a[2], a[3]);
data/bro-2.6.4+ds1/src/patricia.c:229:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf (buff + strlen (buff), "/%d", prefix->bitlen);
data/bro-2.6.4+ds1/src/patricia.c:269:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&prefix->add.sin6, dest, 16);
data/bro-2.6.4+ds1/src/patricia.c:288:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (&prefix->add.sin, dest, 4);
data/bro-2.6.4+ds1/src/patricia.c:320:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char save[MAXLINE];
data/bro-2.6.4+ds1/src/patricia.c:339:12:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		bitlen = atol (cp + 1);
data/bro-2.6.4+ds1/src/patricia.c:343:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (save, string, cp - string);
data/bro-2.6.4+ds1/src/probabilistic/Hasher.cc:122:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char d[16];
data/bro-2.6.4+ds1/src/threading/Formatter.cc:29:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char s[INET_ADDRSTRLEN];
data/bro-2.6.4+ds1/src/threading/Formatter.cc:38:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char s[INET6_ADDRSTRLEN];
data/bro-2.6.4+ds1/src/threading/Formatter.cc:95:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char l[16];
data/bro-2.6.4+ds1/src/threading/Formatter.cc:109:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/bro-2.6.4+ds1/src/threading/formatters/Ascii.cc:20:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hex[4] = {'\\', 'x', '0', '0'};
data/bro-2.6.4+ds1/src/threading/formatters/JSON.cc:117:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buffer[40];
data/bro-2.6.4+ds1/src/threading/formatters/JSON.cc:118:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buffer2[40];
data/bro-2.6.4+ds1/src/threading/formatters/JSON.cc:182:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char hex[2] = {'0', '0'};
data/bro-2.6.4+ds1/src/util.cc:82:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		*len = atoi(i.substr(pos + 1).c_str());
data/bro-2.6.4+ds1/src/util.cc:153:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char hex[4] = {'\\', 'x', '0', '0' };
data/bro-2.6.4+ds1/src/util.cc:347:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char hex[16] = {
data/bro-2.6.4+ds1/src/util.cc:525:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[1024];
data/bro-2.6.4+ds1/src/util.cc:583:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[256];
data/bro-2.6.4+ds1/src/util.cc:710:65:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void hmac_md5(size_t size, const unsigned char* bytes, unsigned char digest[16])
data/bro-2.6.4+ds1/src/util.cc:728:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( ! (f = fopen(read_file, "r")) )
data/bro-2.6.4+ds1/src/util.cc:764:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( ! (f = fopen(write_file, "w+")) )
data/bro-2.6.4+ds1/src/util.cc:827:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		int fd = open("/dev/urandom", O_RDONLY | O_NONBLOCK);
data/bro-2.6.4+ds1/src/util.cc:829:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		int fd = open("/dev/urandom", O_RDONLY | O_NDELAY);
data/bro-2.6.4+ds1/src/util.cc:831:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		int fd = open("/dev/urandom", O_RDONLY);
data/bro-2.6.4+ds1/src/util.cc:881:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(shared_siphash_key, reinterpret_cast<const char*>(buf) + 64, SIPHASH_KEYLEN);
data/bro-2.6.4+ds1/src/util.cc:1016:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* rval = fopen(path.c_str(), mode.c_str());
data/bro-2.6.4+ds1/src/util.cc:1020:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[256];
data/bro-2.6.4+ds1/src/util.cc:1275:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char newname[buflen], tmpname[buflen+4];
data/bro-2.6.4+ds1/src/util.cc:1281:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(tmpname, ".tmp");
data/bro-2.6.4+ds1/src/util.cc:1284:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* newf = fopen(tmpname, "w");
data/bro-2.6.4+ds1/src/util.cc:1400:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(proc_status_file, O_CREAT | O_WRONLY | O_TRUNC, 0700);
data/bro-2.6.4+ds1/src/util.cc:1404:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[256];
data/bro-2.6.4+ds1/src/util.cc:1524:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char hostname[120];
data/bro-2.6.4+ds1/src/util.cc:1624:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[128];
data/bro-2.6.4+ds1/src/util.h:197:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char digest[16]);
data/bro-2.6.4+ds1/testing/btest/plugins/pktsrc-plugin/src/Foo.cc:18:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	props.selectable_fd = open("/bin/sh", O_RDONLY); // any fd is fine.
data/bro-2.6.4+ds1/testing/btest/plugins/writer-plugin/src/Foo.h:25:57:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	virtual bool DoRotate(const char* rotated_path, double open,
data/bro-2.6.4+ds1/src/BroString.cc:144:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n = strlen(str);
data/bro-2.6.4+ds1/src/BroString.cc:236:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		tmp_len += strlen(result);
data/bro-2.6.4+ds1/src/BroString.cc:237:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memcpy(result + strlen(result), s, sp - s);
data/bro-2.6.4+ds1/src/BroString.cc:264:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		is.read(&c, 1);	// Eat single whitespace
data/bro-2.6.4+ds1/src/BroString.cc:267:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		is.read(buf, len);
data/bro-2.6.4+ds1/src/Brofiler.cc:34:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		line[strlen(line) - 1] = 0; //remove newline
data/bro-2.6.4+ds1/src/Brofiler.cc:66:22:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		mode_t old_umask = umask(S_IXUSR | S_IRWXO | S_IRWXG);
data/bro-2.6.4+ds1/src/Brofiler.cc:68:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(old_umask);
data/bro-2.6.4+ds1/src/ChunkedIO.cc:526:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int read = ::read(fd, read_buffer + read_len, len);
data/bro-2.6.4+ds1/src/ChunkedIO.cc:528:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ( read < 0 )
data/bro-2.6.4+ds1/src/ChunkedIO.cc:565:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read_len += read;
data/bro-2.6.4+ds1/src/ChunkedIO.cc:568:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		stats.bytes_read += read;
data/bro-2.6.4+ds1/src/ChunkedIO.cc:703:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return strlen(buf);
data/bro-2.6.4+ds1/src/ChunkedIO.cc:968:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		switch ( SSL_get_error(ssl, read) ) {
data/bro-2.6.4+ds1/src/ChunkedIO.cc:971:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			read_ptr += read;
data/bro-2.6.4+ds1/src/ChunkedIO.cc:988:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				read, SSL_get_error(ssl, read));
data/bro-2.6.4+ds1/src/ChunkedIO.cc:988:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				read, SSL_get_error(ssl, read));
data/bro-2.6.4+ds1/src/ChunkedIO.cc:996:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				read, SSL_get_error(ssl, read));
data/bro-2.6.4+ds1/src/ChunkedIO.cc:996:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				read, SSL_get_error(ssl, read));
data/bro-2.6.4+ds1/src/ChunkedIO.cc:1002:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				read, SSL_get_error(ssl, read));
data/bro-2.6.4+ds1/src/ChunkedIO.cc:1002:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				read, SSL_get_error(ssl, read));
data/bro-2.6.4+ds1/src/ChunkedIO.cc:1016:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				read, SSL_get_error(ssl, read));
data/bro-2.6.4+ds1/src/ChunkedIO.cc:1016:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				read, SSL_get_error(ssl, read));
data/bro-2.6.4+ds1/src/ChunkedIO.h:152:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		{ AddToBuffer(strlen(data), data, is_read); }
data/bro-2.6.4+ds1/src/DNS_Mgr.cc:421:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cache_name = new char[strlen(cache_dir) + 64];
data/bro-2.6.4+ds1/src/DNS_Mgr.cc:448:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	MD5(reinterpret_cast<const u_char*>(name), strlen(name),
data/bro-2.6.4+ds1/src/DNS_Mgr.cc:1219:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void DNS_Mgr::GetFds(iosource::FD_Set* read, iosource::FD_Set* write,
data/bro-2.6.4+ds1/src/DNS_Mgr.h:135:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void GetFds(iosource::FD_Set* read, iosource::FD_Set* write,
data/bro-2.6.4+ds1/src/Debug.cc:258:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if ( charinput[strlen(charinput) - 1] == '\n' )
data/bro-2.6.4+ds1/src/Debug.cc:259:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				charinput[strlen(charinput) - 1] = 0;
data/bro-2.6.4+ds1/src/Debug.cc:748:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t buf_size = strlen(d.Description()) + strlen(loc.filename) + 1024;
data/bro-2.6.4+ds1/src/Debug.cc:748:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t buf_size = strlen(d.Description()) + strlen(loc.filename) + 1024;
data/bro-2.6.4+ds1/src/Debug.cc:859:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = strlen(desc);
data/bro-2.6.4+ds1/src/DebugCmds.cc:89:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ( charinput[strlen(charinput) - 1] == '\n' )
data/bro-2.6.4+ds1/src/DebugCmds.cc:90:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			charinput[strlen(charinput) - 1] = 0;
data/bro-2.6.4+ds1/src/DebugLogger.cc:115:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ( strncmp(tok, "plugin-", strlen("plugin-")) == 0 )
data/bro-2.6.4+ds1/src/Desc.cc:82:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	unsigned int n = strlen(s);
data/bro-2.6.4+ds1/src/Desc.cc:177:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = strlen(s);
data/bro-2.6.4+ds1/src/File.cc:765:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(data);
data/bro-2.6.4+ds1/src/Flare.cc:58:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int n = read(pipe.ReadFD(), &tmp, sizeof(tmp));
data/bro-2.6.4+ds1/src/Hash.cc:92:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size = strlen(s);	// note - skip final \0
data/bro-2.6.4+ds1/src/Net.cc:326:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
				usleep(1); // Just yield.
data/bro-2.6.4+ds1/src/Net.cc:347:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
				usleep(100000);
data/bro-2.6.4+ds1/src/Net.cc:349:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
				usleep(1000);
data/bro-2.6.4+ds1/src/OSFinger.cc:320:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    l=strlen(p);
data/bro-2.6.4+ds1/src/PersistenceSerializer.cc:104:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	HashKey* key = new HashKey(file, strlen(file));
data/bro-2.6.4+ds1/src/RE.cc:87:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = strlen(new_pat);
data/bro-2.6.4+ds1/src/RE.cc:90:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n += strlen(pattern_text) + strlen(app_fmt);
data/bro-2.6.4+ds1/src/RE.cc:90:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n += strlen(pattern_text) + strlen(app_fmt);
data/bro-2.6.4+ds1/src/RE.cc:92:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n += strlen(orig_fmt);
data/bro-2.6.4+ds1/src/RE.cc:108:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = strlen(pattern_text) + strlen(fmt);
data/bro-2.6.4+ds1/src/RE.cc:108:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = strlen(pattern_text) + strlen(fmt);
data/bro-2.6.4+ds1/src/RE.cc:204:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return MatchAll((const u_char*)(s), strlen(s));
data/bro-2.6.4+ds1/src/RE.cc:215:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return Match((const u_char*)(s), strlen(s));
data/bro-2.6.4+ds1/src/RE.cc:225:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return LongestMatch((const u_char*)(s), strlen(s));
data/bro-2.6.4+ds1/src/RE.cc:416:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		+ (pattern_text ? pad_size(strlen(pattern_text) + 1) : 0)
data/bro-2.6.4+ds1/src/RE.cc:529:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = strlen(text1) + strlen(text2) + strlen(merge_op) + 32 /* slop */ ;
data/bro-2.6.4+ds1/src/RE.cc:529:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = strlen(text1) + strlen(text2) + strlen(merge_op) + 32 /* slop */ ;
data/bro-2.6.4+ds1/src/RE.cc:529:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = strlen(text1) + strlen(text2) + strlen(merge_op) + 32 /* slop */ ;
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:430:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	uint32 sz = len >= 0 ? len : strlen(str) + 1;
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:839:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len += strlen((*handlers)[i]) + 1;
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:1374:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void RemoteSerializer::GetFds(iosource::FD_Set* read, iosource::FD_Set* write,
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:2064:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		p += strlen(p) + 1;
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:2298:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      p < current_args->data + current_args->len; p += strlen(p) + 1 )
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:2470:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = min<size_t>(len, PRINT_BUFFER_SIZE - strlen(fname) - 2);
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:2474:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int need = strlen(fname) + 1 + len + 1;
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:2485:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		dst += strlen(fname) + 1;
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:2505:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		p += strlen(p) + 1;
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:2507:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		p += strlen(p) + 1;
data/bro-2.6.4+ds1/src/RemoteSerializer.cc:4429:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		pos += strlen(buffer+pos) + 1;
data/bro-2.6.4+ds1/src/RemoteSerializer.h:143:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void GetFds(iosource::FD_Set* read, iosource::FD_Set* write,
data/bro-2.6.4+ds1/src/Reporter.cc:437:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			n += strlen(postfix) + 10; // Add a bit of slack.
data/bro-2.6.4+ds1/src/Reporter.cc:454:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		safe_snprintf(buffer + strlen(buffer), size - strlen(buffer), " [%s]", postfix);
data/bro-2.6.4+ds1/src/Reporter.cc:454:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		safe_snprintf(buffer + strlen(buffer), size - strlen(buffer), " [%s]", postfix);
data/bro-2.6.4+ds1/src/SerializationFormat.cc:362:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return Write(s, strlen(s), tag);
data/bro-2.6.4+ds1/src/Serializer.cc:873:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ( read(fd, &magic, sizeof(magic)) != sizeof(magic ) ||
data/bro-2.6.4+ds1/src/Serializer.cc:874:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	     read(fd, &version, sizeof(version)) != sizeof(version) ||
data/bro-2.6.4+ds1/src/Serializer.cc:875:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	     read(fd, &time, sizeof(time)) != sizeof(time) )
data/bro-2.6.4+ds1/src/Serializer.cc:1008:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void EventPlayer::GetFds(iosource::FD_Set* read, iosource::FD_Set* write,
data/bro-2.6.4+ds1/src/Serializer.h:337:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void GetFds(iosource::FD_Set* read, iosource::FD_Set* write,
data/bro-2.6.4+ds1/src/Val.cc:612:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		end_of_static_str = name + strlen(name);
data/bro-2.6.4+ds1/src/analyzer/protocol/bittorrent/BitTorrent.cc:56:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ( ! strncmp(e.c_msg(), except, strlen(except)) )
data/bro-2.6.4+ds1/src/analyzer/protocol/file/File.cc:28:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buffer + buffer_len, (const char*) data, n);
data/bro-2.6.4+ds1/src/analyzer/protocol/login/Login.cc:152:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if ( repeat_prev_line[strlen(VMS_REPEAT_SEQ)] )
data/bro-2.6.4+ds1/src/analyzer/protocol/login/Login.cc:613:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		return new StringVal(new BroString(1, byte_vec(s), strlen(s)));
data/bro-2.6.4+ds1/src/analyzer/protocol/mime/MIME.cc:151:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(t);
data/bro-2.6.4+ds1/src/analyzer/protocol/pop3/POP3.cc:95:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = strlen(in);
data/bro-2.6.4+ds1/src/analyzer/protocol/smtp/SMTP.cc:89:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int buf_len = strlen(buf);
data/bro-2.6.4+ds1/src/analyzer/protocol/smtp/SMTP.cc:439:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		RequestEvent(strlen(unknown_cmd), unknown_cmd, 0, "");
data/bro-2.6.4+ds1/src/analyzer/protocol/smtp/SMTP.cc:822:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int cmd_len = strlen(cmd);
data/bro-2.6.4+ds1/src/bro_inet_ntop.c:88:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dst, tmp, size - 1);
data/bro-2.6.4+ds1/src/bro_inet_ntop.c:169:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			tp += strlen(tp);
data/bro-2.6.4+ds1/src/broker/Manager.cc:803:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void Manager::GetFds(iosource::FD_Set* read, iosource::FD_Set* write,
data/bro-2.6.4+ds1/src/broker/Manager.h:339:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void GetFds(iosource::FD_Set* read, iosource::FD_Set* write,
data/bro-2.6.4+ds1/src/bsd-getopt-long.c:186:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        current_argv_len = strlen(current_argv);
data/bro-2.6.4+ds1/src/bsd-getopt-long.c:194:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(long_options[i].name) == current_argv_len) {
data/bro-2.6.4+ds1/src/file_analysis/analyzer/x509/OCSP.cc:477:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	StringVal* status_val = new StringVal(strlen(status_str), status_str);
data/bro-2.6.4+ds1/src/file_analysis/analyzer/x509/OCSP.cc:577:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		rvl->append(new StringVal(strlen(cert_status_str), cert_status_str));
data/bro-2.6.4+ds1/src/file_analysis/analyzer/x509/OCSP.cc:587:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				rvl->append(new StringVal(strlen(revoke_reason), revoke_reason));
data/bro-2.6.4+ds1/src/file_analysis/analyzer/x509/X509Common.cc:260:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ( short_name and strlen(short_name) > 0 )
data/bro-2.6.4+ds1/src/input/readers/ascii/Ascii.cc:222:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ( field->secondary_name && strlen(field->secondary_name) != 0 )
data/bro-2.6.4+ds1/src/input/readers/benchmark/Benchmark.cc:103:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
				usleep(spread);
data/bro-2.6.4+ds1/src/input/readers/benchmark/Benchmark.cc:106:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
				usleep( autospread_time );
data/bro-2.6.4+ds1/src/input/readers/binary/Binary.cc:84:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ( ! info.source || strlen(info.source) == 0 )
data/bro-2.6.4+ds1/src/input/readers/binary/Binary.cc:137:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	in->read(*chunk, chunk_size);
data/bro-2.6.4+ds1/src/input/readers/config/Config.cc:277:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			vals[0]->val.string_val.length = strlen(Info().name);
data/bro-2.6.4+ds1/src/input/readers/config/Config.cc:280:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			vals[1]->val.string_val.length = strlen(Info().source);
data/bro-2.6.4+ds1/src/input/readers/raw/Raw.cc:71:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(200); // 200 msecs should be enough for anyone ;)
data/bro-2.6.4+ds1/src/input/readers/raw/Raw.cc:337:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ( ! info.source || strlen(info.source) == 0 )
data/bro-2.6.4+ds1/src/input/readers/raw/Raw.cc:680:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		vals[0]->val.string_val.length = strlen(Info().name);
data/bro-2.6.4+ds1/src/input/readers/raw/Raw.cc:683:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		vals[1]->val.string_val.length = strlen(Info().source);
data/bro-2.6.4+ds1/src/iosource/BPF_Program.cc:65:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return (! filter) || strlen(filter) == 0 || strcmp(filter, "ip or not ip") == 0;
data/bro-2.6.4+ds1/src/iosource/IOSource.h:64:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual void GetFds(FD_Set* read, FD_Set* write, FD_Set* except) = 0;
data/bro-2.6.4+ds1/src/iosource/Manager.cc:321:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void Manager::Source::SetFds(fd_set* read, fd_set* write, fd_set* except,
data/bro-2.6.4+ds1/src/iosource/Manager.cc:324:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	*maxx = std::max(*maxx, fd_read.Set(read));
data/bro-2.6.4+ds1/src/iosource/Manager.h:124:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bool Ready(fd_set* read, fd_set* write, fd_set* except) const
data/bro-2.6.4+ds1/src/iosource/Manager.h:125:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			{ return fd_read.Ready(read) || fd_write.Ready(write) ||
data/bro-2.6.4+ds1/src/iosource/Manager.h:128:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		void SetFds(fd_set* read, fd_set* write, fd_set* except,
data/bro-2.6.4+ds1/src/iosource/PktSrc.cc:195:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void PktSrc::GetFds(iosource::FD_Set* read, iosource::FD_Set* write,
data/bro-2.6.4+ds1/src/iosource/PktSrc.h:350:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void GetFds(iosource::FD_Set* read, iosource::FD_Set* write,
data/bro-2.6.4+ds1/src/logging/Manager.cc:975:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			lval->val.string_val.length = strlen(s);
data/bro-2.6.4+ds1/src/logging/Manager.cc:1038:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		lval->val.string_val.length = strlen(s);
data/bro-2.6.4+ds1/src/main.cc:141:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int n = strlen(version) + sizeof("-debug") + 1;
data/bro-2.6.4+ds1/src/main.cc:605:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
	strncat(opts, "mM", 2);
data/bro-2.6.4+ds1/src/module_util.cc:44:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ( (mod_len = strlen(module_name)) >= 2 &&
data/bro-2.6.4+ds1/src/nb_dns.c:265:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ne->name, name, sizeof(ne->name));
data/bro-2.6.4+ds1/src/nb_dns.c:398:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			i = strlen(cp);
data/bro-2.6.4+ds1/src/patricia.c:229:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    sprintf (buff + strlen (buff), "/%d", prefix->bitlen);
data/bro-2.6.4+ds1/src/probabilistic/Topk.cc:301:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (read < k )
data/bro-2.6.4+ds1/src/probabilistic/Topk.cc:308:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			t->Assign(read, (*eit)->value->Ref());
data/bro-2.6.4+ds1/src/threading/Manager.cc:68:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void Manager::GetFds(iosource::FD_Set* read, iosource::FD_Set* write,
data/bro-2.6.4+ds1/src/threading/Manager.h:106:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void GetFds(iosource::FD_Set* read, iosource::FD_Set* write,
data/bro-2.6.4+ds1/src/threading/MsgThread.cc:245:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(1000);
data/bro-2.6.4+ds1/src/util.cc:177:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char* c = new char[strlen(s)+1];
data/bro-2.6.4+ds1/src/util.cc:381:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t len = strlen(find);
data/bro-2.6.4+ds1/src/util.cc:464:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(str, prefix, n);
data/bro-2.6.4+ds1/src/util.cc:466:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		i += strlen(prefix);
data/bro-2.6.4+ds1/src/util.cc:598:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ( ! dirname || strlen(dirname) == 0 )
data/bro-2.6.4+ds1/src/util.cc:836:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			int amt = read(fd, buf + pos,
data/bro-2.6.4+ds1/src/util.cc:1273:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	const int buflen = strlen(name) + 128;
data/bro-2.6.4+ds1/src/util.cc:1416:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(status);
data/bro-2.6.4+ds1/src/util.cc:1763:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	auto len = strlen(result);
data/bro-2.6.4+ds1/src/util.cc:1764:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, result, buflen);
data/bro-2.6.4+ds1/src/util.h:491:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	char* result = strncpy(dest, src, n);

ANALYSIS SUMMARY:

Hits = 633
Lines analyzed = 150947 in approximately 3.70 seconds (40808 lines/second)
Physical Source Lines of Code (SLOC) = 103982
Hits@level = [0] 361 [1] 144 [2] 362 [3]  36 [4]  91 [5]   0
Hits@level+ = [0+] 994 [1+] 633 [2+] 489 [3+] 127 [4+]  91 [5+]   0
Hits/KSLOC@level+ = [0+] 9.55935 [1+] 6.08759 [2+] 4.70274 [3+] 1.22137 [4+] 0.875151 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.