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/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/connect/TlsSocket.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/connect/TlsSocket.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/connect/WebDownloader.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/connect/WebDownloader.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/extension/CommandScript.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/extension/CommandScript.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/extension/FeedScript.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/extension/FeedScript.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/extension/NzbScript.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/extension/NzbScript.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/extension/PostScript.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/extension/PostScript.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/extension/QueueScript.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/extension/QueueScript.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/extension/ScanScript.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/extension/ScanScript.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/extension/SchedulerScript.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/extension/SchedulerScript.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/extension/ScriptConfig.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/extension/ScriptConfig.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedCoordinator.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedCoordinator.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFile.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFile.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFilter.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFilter.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedInfo.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedInfo.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/frontend/ColoredFrontend.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/frontend/ColoredFrontend.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/frontend/Frontend.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/frontend/Frontend.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/frontend/LoggableFrontend.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/frontend/LoggableFrontend.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/frontend/NCursesFrontend.cpp
Parsing failed to find end of parameter list; semicolon terminated it in (m_screenBuffer.begin(), m_screenBuffer.end(), m_oldScreenBuffer.begin(), m_oldScreenBuffer.end(),
		[](CHAR_INFO& a, CHAR_INFO& b)
		{
			return a.Char.AsciiChar == b.Char.AsciiChar && a.Attributes =
Examining data/nzbget-21.1~r2311+dfsg/daemon/frontend/NCursesFrontend.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/main/CommandLineParser.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/main/CommandLineParser.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/main/DiskService.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/main/DiskService.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/main/Maintenance.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/main/Maintenance.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/main/Options.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/main/Scheduler.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/main/Scheduler.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/main/StackTrace.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/main/StackTrace.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/main/WorkState.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/main/WorkState.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/main/nzbget.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/main/nzbget.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/nntp/ArticleDownloader.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/nntp/ArticleDownloader.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/nntp/ArticleWriter.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/nntp/ArticleWriter.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/nntp/Decoder.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/nntp/Decoder.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/nntp/NewsServer.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/nntp/NewsServer.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/nntp/NntpConnection.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/nntp/NntpConnection.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/nntp/ServerPool.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/nntp/ServerPool.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/nntp/StatMeter.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/nntp/StatMeter.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/nserv/NServFrontend.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/nserv/NServFrontend.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/nserv/NServMain.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/nserv/NServMain.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/nserv/NntpServer.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/nserv/NntpServer.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/nserv/NzbGenerator.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/nserv/NzbGenerator.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/nserv/YEncoder.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/nserv/YEncoder.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Cleanup.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Cleanup.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/DirectUnpack.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/DirectUnpack.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/DupeMatcher.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/DupeMatcher.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/ParChecker.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/ParChecker.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/ParParser.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/ParParser.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/ParRenamer.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/ParRenamer.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/PrePostProcessor.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/PrePostProcessor.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/RarReader.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/RarReader.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/RarRenamer.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/RarRenamer.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Rename.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Rename.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Repair.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Repair.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Unpack.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Unpack.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/queue/DirectRenamer.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/queue/DirectRenamer.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/queue/DownloadInfo.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/queue/DownloadInfo.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/queue/DupeCoordinator.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/queue/DupeCoordinator.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/queue/HistoryCoordinator.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/queue/HistoryCoordinator.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/queue/NzbFile.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/queue/NzbFile.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/queue/QueueCoordinator.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/queue/QueueCoordinator.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/queue/QueueEditor.cpp
Parsing failed to find end of parameter list; semicolon terminated it in (tempList.begin(), tempList.end(), m_nzbList->begin(),
		[](NzbInfo* nzbInfo1, std::unique_ptr<NzbInfo>& nzbInfo2)
		{
			return nzbInfo1 == nzbInfo2.get();
		}))
	{
		m_sortOrder = m_sortOrder == soD
Examining data/nzbget-21.1~r2311+dfsg/daemon/queue/QueueEditor.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/queue/Scanner.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/queue/Scanner.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/queue/UrlCoordinator.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/queue/UrlCoordinator.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/remote/MessageBase.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteServer.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteServer.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/remote/WebServer.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/remote/WebServer.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/remote/XmlRpc.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/remote/XmlRpc.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/util/Container.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/util/Log.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/util/Log.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/util/NString.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/util/Observer.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/util/Observer.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/util/Script.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/util/Script.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/util/Service.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/util/Service.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/util/Thread.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/util/Thread.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/util/Util.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/windows/StdAfx.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.h
Examining data/nzbget-21.1~r2311+dfsg/daemon/windows/WinService.cpp
Examining data/nzbget-21.1~r2311+dfsg/daemon/windows/WinService.h
Examining data/nzbget-21.1~r2311+dfsg/lib/catch/catch.h
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/commandline.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/commandline.h
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/crc.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/crc.h
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/creatorpacket.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/creatorpacket.h
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/criticalpacket.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/criticalpacket.h
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/datablock.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/datablock.h
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/descriptionpacket.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/descriptionpacket.h
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/diskfile.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/diskfile.h
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/filechecksummer.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/filechecksummer.h
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/galois.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/galois.h
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/letype.h
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/mainpacket.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/mainpacket.h
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/md5.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/md5.h
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/par2cmdline.h
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/par2fileformat.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/par2fileformat.h
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/par2repairer.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/par2repairer.h
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/par2repairersourcefile.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/par2repairersourcefile.h
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/parheaders.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/parheaders.h
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/recoverypacket.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/recoverypacket.h
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/reedsolomon.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/reedsolomon.h
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/verificationhashtable.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/verificationhashtable.h
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/verificationpacket.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/par2/verificationpacket.h
Examining data/nzbget-21.1~r2311+dfsg/lib/yencode/AcleCrc.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/yencode/NeonDecoder.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/yencode/PclmulCrc.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/yencode/ScalarDecoder.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/yencode/SimdDecoder.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/yencode/SimdInit.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/yencode/SliceCrc.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/yencode/Sse2Decoder.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/yencode/Ssse3Decoder.cpp
Examining data/nzbget-21.1~r2311+dfsg/lib/yencode/YEncode.h
Examining data/nzbget-21.1~r2311+dfsg/tests/feed/FeedFilterTest.cpp
Examining data/nzbget-21.1~r2311+dfsg/tests/main/CommandLineParserTest.cpp
Examining data/nzbget-21.1~r2311+dfsg/tests/main/OptionsTest.cpp
Examining data/nzbget-21.1~r2311+dfsg/tests/nntp/ServerPoolTest.cpp
Examining data/nzbget-21.1~r2311+dfsg/tests/postprocess/DirectUnpackTest.cpp
Examining data/nzbget-21.1~r2311+dfsg/tests/postprocess/DupeMatcherTest.cpp
Examining data/nzbget-21.1~r2311+dfsg/tests/postprocess/ParCheckerTest.cpp
Examining data/nzbget-21.1~r2311+dfsg/tests/postprocess/ParRenamerTest.cpp
Examining data/nzbget-21.1~r2311+dfsg/tests/postprocess/RarReaderTest.cpp
Examining data/nzbget-21.1~r2311+dfsg/tests/postprocess/RarRenamerTest.cpp
Examining data/nzbget-21.1~r2311+dfsg/tests/queue/NzbFileTest.cpp
Examining data/nzbget-21.1~r2311+dfsg/tests/suite/TestMain.cpp
Examining data/nzbget-21.1~r2311+dfsg/tests/suite/TestMain.h
Examining data/nzbget-21.1~r2311+dfsg/tests/suite/TestUtil.cpp
Examining data/nzbget-21.1~r2311+dfsg/tests/suite/TestUtil.h
Examining data/nzbget-21.1~r2311+dfsg/tests/util/FileSystemTest.cpp
Examining data/nzbget-21.1~r2311+dfsg/tests/util/NStringTest.cpp
Examining data/nzbget-21.1~r2311+dfsg/tests/util/UtilTest.cpp

FINAL RESULTS:

data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:789:10:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	int r = readlink("/proc/self/exe", exename, 1024 - 1);
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:796:6:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	r = readlink("/proc/curproc/file", exename, 1024 - 1);
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:936:3:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		chmod(filename, buffer.st_mode);
data/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.cpp:222: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(addr.sun_path, m_host);
data/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.cpp:565: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(addr.sun_path, m_host);
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFile.cpp:599:2:  [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.
	vsnprintf(errMsg, sizeof(errMsg), msg, argp);
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:370:2:  [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.
	vsnprintf(tmp2, 1024, msg, ap);
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:386:2:  [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.
	vsnprintf(tmp2, 1024, msg, ap);
data/nzbget-21.1~r2311+dfsg/daemon/main/nzbget.h:290:9:  [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.
#define snprintf _snprintf
data/nzbget-21.1~r2311+dfsg/daemon/main/nzbget.h:290:18:  [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.
#define snprintf _snprintf
data/nzbget-21.1~r2311+dfsg/daemon/main/nzbget.h:407:57:  [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 PRINTF_SYNTAX(strindex) __attribute__ ((format (printf, strindex, strindex+1)))
data/nzbget-21.1~r2311+dfsg/daemon/main/nzbget.h:408:56:  [4] (buffer) scanf:
  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.
#define SCANF_SYNTAX(strindex) __attribute__ ((format (scanf, strindex, strindex+1)))
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Rename.cpp:34:2:  [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.
	vsnprintf(text, 1024, format, args);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Rename.cpp:48:2:  [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.
	vsnprintf(text, 1024, format, args);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Repair.cpp:47:2:  [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.
	vsnprintf(text, 1024, format, args);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Repair.cpp:192:2:  [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.
	vsnprintf(text, 1024, format, args);
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:96:12:  [4] (buffer) vsscanf:
  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.
	int res = vsscanf(line, format, ap);
data/nzbget-21.1~r2311+dfsg/daemon/queue/DownloadInfo.cpp:401:2:  [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.
	vsnprintf(tmp2, 1024, format, ap);
data/nzbget-21.1~r2311+dfsg/daemon/queue/NzbFile.cpp:838:2:  [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.
	vsnprintf(errMsg, sizeof(errMsg), msg, argp);
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:556:4:  [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(bufptr, nzbInfo->GetFilename());
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:558:4:  [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(bufptr, nzbInfo->GetName());
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:560:4:  [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(bufptr, nzbInfo->GetDestDir());
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:562:4:  [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(bufptr, nzbInfo->GetCategory());
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:564:4:  [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(bufptr, nzbInfo->GetQueuedFilename());
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:587:5:  [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(bufptr, nzbParameter.GetName());
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:589:5:  [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(bufptr, nzbParameter.GetValue());
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:640:5:  [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(bufptr, fileInfo->GetSubject());
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:642:5:  [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(bufptr, fileInfo->GetFilename());
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:768:4:  [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(bufptr, message.GetText());
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:952:4:  [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(bufptr, postInfo->GetNzbInfo()->GetFilename());
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:954:4:  [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(bufptr, postInfo->GetNzbInfo()->GetName());
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:956:4:  [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(bufptr, postInfo->GetNzbInfo()->GetDestDir());
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:958:4:  [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(bufptr, postInfo->GetProgressLabel());
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:1121:5:  [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(bufptr, historyInfo->GetName());
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp:30:20:  [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 RemoteClient::printf(const char * msg,...)
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp:36:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		::vprintf(msg, ap);
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.h:72:7:  [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 printf(const char* msg, ...);
data/nzbget-21.1~r2311+dfsg/daemon/remote/XmlRpc.cpp:817:2:  [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.
	vsnprintf(fullText, 1024, errText, ap);
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:1180:12:  [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.
	int ret = vfprintf(m_file, format, ap);
data/nzbget-21.1~r2311+dfsg/daemon/util/Log.cpp:67:2:  [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.
	vsnprintf(tmp2, 1024, msg, ap);
data/nzbget-21.1~r2311+dfsg/daemon/util/Log.cpp:147:2:  [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.
	vsnprintf(tmp1, 1024, msg, ap);
data/nzbget-21.1~r2311+dfsg/daemon/util/Log.cpp:190:2:  [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.
	vsnprintf(tmp2, 1024, msg, ap);
data/nzbget-21.1~r2311+dfsg/daemon/util/Log.cpp:213:2:  [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.
	vsnprintf(tmp2, 1024, msg, ap);
data/nzbget-21.1~r2311+dfsg/daemon/util/Log.cpp:236:2:  [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.
	vsnprintf(tmp2, 1024, msg, ap);
data/nzbget-21.1~r2311+dfsg/daemon/util/Log.cpp:259:2:  [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.
	vsnprintf(tmp2, 1024, msg, ap);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:74:3:  [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.
		vsnprintf(m_data + curLen, avail, format, ap);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:92:21:  [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 len = std::max(vsnprintf(m_data, size, format, ap), 0);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:153: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 addLen = vsnprintf(nullptr, 0, format, ap);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:160:2:  [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.
	vsnprintf(m_data + curLen, newLen + 1, format, ap2);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:180:24:  [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 newLen = std::max(vsnprintf(nullptr, 0, format, ap), 0);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:183:11:  [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.
	newLen = vsnprintf(m_data, newLen + 1, format, ap2);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:215: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(newvalue + pos + addLen, m_data + pos + len);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:385: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 addLen = vsnprintf(nullptr, 0, format, ap);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:393:2:  [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.
	vsnprintf(m_data + curLen, newLen + 1, format, ap2);
data/nzbget-21.1~r2311+dfsg/daemon/util/Script.cpp:130:3:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
		wcscpy(ptr, wstr);
data/nzbget-21.1~r2311+dfsg/daemon/util/Script.cpp:447: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(cmdLineBuf + usedLen, bufSize - usedLen, endsWithBackslash && ! isDirectPath ? "\"%s\\\" " : "\"%s\" ", arg);
data/nzbget-21.1~r2311+dfsg/daemon/util/Script.cpp:643:3:  [4] (shell) execvp:
  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.
		execvp(script, argdata);
data/nzbget-21.1~r2311+dfsg/daemon/util/Script.cpp:652:4:  [4] (shell) execvp:
  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.
			execvp(script, argdata);
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:370:4:  [4] (shell) ShellExecute:
  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.
			ShellExecute(0, "open", "http://nzbget.net", nullptr, nullptr, SW_SHOWNORMAL);
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:374:4:  [4] (shell) ShellExecute:
  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.
			ShellExecute(0, "open", "http://nzbget.net/download", nullptr, nullptr, SW_SHOWNORMAL);
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:378:4:  [4] (shell) ShellExecute:
  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.
			ShellExecute(0, "open", "http://nzbget.net/forum", nullptr, nullptr, SW_SHOWNORMAL);
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:423:2:  [4] (shell) ShellExecute:
  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.
	ShellExecute(0, "open", url, nullptr, nullptr, SW_SHOWNORMAL);
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:486:5:  [4] (shell) ShellExecute:
  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.
				ShellExecute(0, "open", "http://nzbget.net", nullptr, nullptr, SW_SHOWNORMAL);
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:490:5:  [4] (shell) ShellExecute:
  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.
				ShellExecute(0, "open", "http://www.gnu.org/licenses/gpl-2.0.html", nullptr, nullptr, SW_SHOWNORMAL);
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:862:2:  [4] (shell) ShellExecute:
  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.
	ShellExecute(0, "open", "notepad.exe", BString<1024>("\"%s\"", g_Options->GetConfigFilename()), nullptr, SW_SHOWNORMAL);
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:1042:3:  [4] (shell) ShellExecute:
  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.
		ShellExecute(0, "open", (*g_Arguments)[0], nullptr, nullptr, SW_SHOWNORMAL);
data/nzbget-21.1~r2311+dfsg/lib/par2/diskfile.cpp:577: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(work, curdir);
data/nzbget-21.1~r2311+dfsg/lib/par2/diskfile.cpp:580:3:  [4] (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).
  strcat(work, filename.c_str());
data/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.cpp:1103:20:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
		HMODULE module = LoadLibrary("ws2_32.dll");
data/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.cpp:1159:27:  [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* cache_mode = getenv("ANDROID_DNS_MODE");
data/nzbget-21.1~r2311+dfsg/daemon/main/CommandLineParser.cpp:99:7:  [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.
		c = getopt_long(argc, (char**)argv.data(), short_options, long_options, &option_index);
data/nzbget-21.1~r2311+dfsg/daemon/main/CommandLineParser.cpp:101:7:  [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.
		c = getopt(argc, (char**)argv.data(), short_options);
data/nzbget-21.1~r2311+dfsg/daemon/main/nzbget.cpp:152:2:  [3] (random) srand:
  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.
	srand((unsigned int)Util::CurrentTime());
data/nzbget-21.1~r2311+dfsg/daemon/nserv/NServMain.cpp:189: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.
		int c = getopt(argc, argv, short_options);
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:718:16:  [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* home = getenv("HOME");
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:40:5:  [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.
int getopt(int argc, char *argv[], char *optstring)
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.h:29:5:  [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.
int getopt(int argc, char *argv[], char *optstring);
data/nzbget-21.1~r2311+dfsg/lib/catch/catch.h:5670:22:  [3] (random) srand:
  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.
                std::srand( m_configData.rngSeed );
data/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.cpp:43: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/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.cpp:439: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(inpBuffer, bufPtr, len);
data/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.cpp:525: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(bufPtr, m_bufPtr, len);
data/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.cpp:936: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 errMsg[1024];
data/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.cpp:1055: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 strbuf[1024];
data/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.cpp:1098: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 peerName[1024];
data/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.cpp:1189: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[4];
data/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.cpp:1214: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 *aliases_ptrs[MAXALIASES];
data/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.cpp:1243: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(ptr, aliases_ptrs, aliases_len);
data/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.cpp:1252: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 *addr_ptrs[MAXADDRS];
data/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.cpp:1280: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(ptr, addr_ptrs, addrs_len);
data/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.cpp:1325: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 strbuf[1024];
data/nzbget-21.1~r2311+dfsg/daemon/connect/TlsSocket.cpp:245: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 errstr[1024];
data/nzbget-21.1~r2311+dfsg/daemon/connect/TlsSocket.cpp:523: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 dn[256];
data/nzbget-21.1~r2311+dfsg/daemon/connect/WebDownloader.cpp:469:18:  [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).
		m_contentLen = atoi(line + 16);
data/nzbget-21.1~r2311+dfsg/daemon/extension/ScanScript.cpp:162:18:  [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).
			*m_priority = atoi(msgText + 6 + 9);
data/nzbget-21.1~r2311+dfsg/daemon/extension/ScanScript.cpp:166: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).
			*m_addTop = atoi(msgText + 6 + 4) != 0;
data/nzbget-21.1~r2311+dfsg/daemon/extension/ScanScript.cpp:170: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).
			*m_addPaused = atoi(msgText + 6 + 7) != 0;
data/nzbget-21.1~r2311+dfsg/daemon/extension/ScanScript.cpp:178: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).
			*m_dupeScore = atoi(msgText + 6 + 10);
data/nzbget-21.1~r2311+dfsg/daemon/extension/ScriptConfig.cpp:186: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[1024];
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFile.cpp:104: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 url[2048];
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFile.cpp:272: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 val = atoi(bval);
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFile.cpp:285: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 val = atoi(bval);
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFile.cpp:298: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 val = atoi(bval);
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFile.cpp:311: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 val = atoi(bval);
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFile.cpp:433: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).
			m_feedItemInfo->SetImdbId(atoi(atts[3]));
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFile.cpp:439: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).
			m_feedItemInfo->SetRageId(atoi(atts[3]));
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFile.cpp:445: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).
			m_feedItemInfo->SetTvdbId(atoi(atts[3]));
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFile.cpp:451:32:  [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).
			m_feedItemInfo->SetTvmazeId(atoi(atts[3]));
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFile.cpp:598: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 errMsg[1024];
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFilter.cpp:667: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).
			m_priority = atoi(value);
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFilter.cpp:677: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).
			m_addPriority = atoi(value);
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFilter.cpp:687:18:  [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).
			m_dupeScore = atoi(value);
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFilter.cpp:697:21:  [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).
			m_addDupeScore = atoi(value);
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFilter.cpp:762: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).
			m_priority = atoi(option);
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFilter.cpp:919: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).
	int index = atoi(varName) - 1;
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedInfo.cpp:76:9:  [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).
	return atoi(val);
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedInfo.cpp:89:44:  [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 rageIdVal = !Util::EmptyStr(rageId) ? atoi(rageId) : m_rageId;
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedInfo.cpp:90:44:  [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 tvdbIdVal = !Util::EmptyStr(tvdbId) ? atoi(tvdbId) : m_tvdbId;
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedInfo.cpp:91:48:  [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 tvmazeIdVal = !Util::EmptyStr(tvmazeId) ? atoi(tvmazeId) : m_tvmazeId;
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedInfo.cpp:153:35:  [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).
		SetSeason(BString<100>("S%02d", atoi(m_title + regEx->GetMatchStart(1))));
data/nzbget-21.1~r2311+dfsg/daemon/main/CommandLineParser.cpp:161: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).
						m_addPriority = atoi(argv[optind-1]);
data/nzbget-21.1~r2311+dfsg/daemon/main/CommandLineParser.cpp:201: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).
						m_addDupeScore = atoi(argv[optind-1]);
data/nzbget-21.1~r2311+dfsg/daemon/main/CommandLineParser.cpp:370:18:  [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).
				m_logLines = atoi(optarg);
data/nzbget-21.1~r2311+dfsg/daemon/main/CommandLineParser.cpp:620: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).
						if (atoi(m_editQueueText) == 0 && strcmp("0", m_editQueueText))
data/nzbget-21.1~r2311+dfsg/daemon/main/CommandLineParser.cpp:628: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).
						m_editQueueOffset = atoi(optarg);
data/nzbget-21.1~r2311+dfsg/daemon/main/CommandLineParser.cpp:898: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).
				editQueueIdFrom = atoi(buf);
data/nzbget-21.1~r2311+dfsg/daemon/main/CommandLineParser.cpp:899:21:  [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).
				editQueueIdTo = atoi(p + 1);
data/nzbget-21.1~r2311+dfsg/daemon/main/CommandLineParser.cpp:908: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).
				editQueueIdFrom = atoi(optarg);
data/nzbget-21.1~r2311+dfsg/daemon/main/Maintenance.cpp:364: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/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp: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 tmp2[1024];
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:382: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 tmp2[1024];
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:540: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 appDataPath[MAX_PATH];
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:1040: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).
					nport ? atoi(nport) : 119,
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:1044:21:  [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).
					nconnections ? atoi(nconnections) : 1,
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:1045: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).
					nretention ? atoi(nretention) : 0,
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:1046: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).
					nlevel ? atoi(nlevel) : 0,
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:1047: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).
					ngroup ? atoi(ngroup) : 0,
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:1157:53:  [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).
				m_extender->AddFeed(n, nname, nurl, ninterval ? atoi(ninterval) : 0, nfilter,
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:1158:48:  [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).
					backlog, pauseNzb, ncategory, npriority ? atoi(npriority) : 0, nextensions);
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:1343: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).
		*hours = atoi(time);
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:1354:13:  [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).
	*minutes = atoi(colon + 1);
data/nzbget-21.1~r2311+dfsg/daemon/main/Scheduler.cpp:134: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(&tmLoop, &tmLastCheck, sizeof(tmLastCheck));
data/nzbget-21.1~r2311+dfsg/daemon/main/Scheduler.cpp:147:7:  [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(&tmAppoint, &tmLoop, sizeof(tmLoop));
data/nzbget-21.1~r2311+dfsg/daemon/main/Scheduler.cpp:198:32:  [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).
				g_WorkState->SetSpeedLimit(atoi(task->m_param) * 1024);
data/nzbget-21.1~r2311+dfsg/daemon/main/Scheduler.cpp:290: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 id = atoi(serverRef);
data/nzbget-21.1~r2311+dfsg/daemon/main/Scheduler.cpp:319: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 id = atoi(feedRef);
data/nzbget-21.1~r2311+dfsg/daemon/main/StackTrace.cpp:37: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 appDir[MAX_PATH + 1];
data/nzbget-21.1~r2311+dfsg/daemon/main/nzbget.cpp:947:10:  [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 d = open("/dev/null", O_RDWR);
data/nzbget-21.1~r2311+dfsg/daemon/main/nzbget.cpp:957:9:  [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).
		lfp = open(m_options->GetLockFile(), O_RDWR | O_CREAT, 0640);
data/nzbget-21.1~r2311+dfsg/daemon/nntp/ArticleWriter.cpp:166: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(m_articleData.GetData() + m_articlePtr - len, buffer, len);
data/nzbget-21.1~r2311+dfsg/daemon/nntp/NntpConnection.cpp:166: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(m_lineBuf, "211 ");
data/nzbget-21.1~r2311+dfsg/daemon/nserv/NServMain.cpp:214: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).
				firstPort = atoi(optind > argc ? "6791" : argv[optind - 1]);
data/nzbget-21.1~r2311+dfsg/daemon/nserv/NServMain.cpp:224: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).
				instances = atoi(optind > argc ? "1" : argv[optind - 1]);
data/nzbget-21.1~r2311+dfsg/daemon/nserv/NServMain.cpp:228: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).
				verbosity = atoi(optind > argc ? "1" : argv[optind - 1]);
data/nzbget-21.1~r2311+dfsg/daemon/nserv/NServMain.cpp:232: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).
				latency = atoi(optind > argc ? "0" : argv[optind - 1]);
data/nzbget-21.1~r2311+dfsg/daemon/nserv/NServMain.cpp:236:13:  [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).
				speed = atoi(optind > argc ? "0" : argv[optind - 1]);
data/nzbget-21.1~r2311+dfsg/daemon/nserv/NServMain.cpp:241: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).
				segmentSize = atoi(optind > argc ? "500000" : argv[optind - 1]);
data/nzbget-21.1~r2311+dfsg/daemon/nserv/NntpServer.cpp:233: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).
		m_part = atoi(from + 1);
data/nzbget-21.1~r2311+dfsg/daemon/nserv/NntpServer.cpp:235: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).
		m_size = atoi(to + 1);
data/nzbget-21.1~r2311+dfsg/daemon/nserv/NntpServer.cpp:261:7:  [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 (atoi(servid) == m_serverId)
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/DirectUnpack.cpp:277:37:  [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).
		(!regExRarPart.Match(filename) || atoi(filename + regExRarPart.GetMatchStart(1)) == 1);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/DupeMatcher.cpp:161: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 filename[1024];
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/DupeMatcher.cpp: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 filename[1024];
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/ParChecker.cpp:369: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 bf[2];
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/ParParser.cpp:113: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).
			blockcnt = atoi(b+1);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/ParRenamer.cpp:259: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).
			splittedFragement = splittedFragement && atoi(diskBasename + baseLen + 1) <= 1; // .000 or .001
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/RarReader.cpp:110: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 fileSignature[8];
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/RarReader.cpp:568: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(seed + len * 2, salt, 8);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/RarReader.cpp:690: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(out, outbuf + outlen, 16);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/RarReader.cpp:699: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(m_decryptIV, in, 16);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/RarReader.cpp:734: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, m_decryptBuf + m_decryptPos, len);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/RarRenamer.cpp:351:22:  [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).
			bool ok = (uint32)atoi(partNo) == volume->GetVolumeNo() + 1 &&
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Rename.cpp: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 text[1024];
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Rename.cpp:45: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 text[1024];
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Repair.cpp:44: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 text[1024];
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Repair.cpp:189: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 text[1024];
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Unpack.cpp:216: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 password[512];
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Unpack.cpp:456: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 segNum = atoi(segExt + 1);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Unpack.cpp:648: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).
			int extNum = ext ? atoi(ext + 1) : -1;
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Unpack.cpp:685: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 fileSignature[8];
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Unpack.cpp:831: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).
				int percent = atoi(backspace + 1);
data/nzbget-21.1~r2311+dfsg/daemon/queue/DirectRenamer.cpp:46: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 m_signature[sizeof(Par2::PACKET_HEADER)];
data/nzbget-21.1~r2311+dfsg/daemon/queue/DirectRenamer.cpp:542: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(m_signature + m_dataSize, buffer, std::min((size_t)len, sizeof(m_signature) - m_dataSize));
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:73: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.
			for (char skipbuf[1024]; DiskFile::ReadLine(skipbuf, 1024) && *skipbuf && skipbuf[strlen(skipbuf) - 1] != '\n'; ) ;
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:88: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[1024];
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:155:9:  [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).
	return atoi(formatSignature + strlen(FORMATVERSION_SIGNATURE));
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:243: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 FileSignatur[128];
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:634: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[10240];
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:847: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 filenameBuf[1024];
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:848: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 origName[1024];
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:928: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 status = atoi(buf);
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:1096: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/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:1250: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/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:1378: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/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:1756: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 url[1024];
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:1759: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 filter[1024];
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:1820: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 url[1024];
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:2235: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 name[1024];
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:2238: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[200];
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:2244: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 user[100];
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:2465: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[1024];
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:2473: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).
		int time = atoi(p + 1);
data/nzbget-21.1~r2311+dfsg/daemon/queue/DownloadInfo.cpp:397: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 tmp2[1024];
data/nzbget-21.1~r2311+dfsg/daemon/queue/HistoryCoordinator.cpp:817: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).
				historyInfo->GetNzbInfo()->SetDupeScore(atoi(text));
data/nzbget-21.1~r2311+dfsg/daemon/queue/HistoryCoordinator.cpp:854: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).
				historyInfo->GetDupInfo()->SetDupeScore(atoi(text));
data/nzbget-21.1~r2311+dfsg/daemon/queue/NzbFile.cpp:462: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 url[2048];
data/nzbget-21.1~r2311+dfsg/daemon/queue/NzbFile.cpp:550:22:  [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).
			fileInfo->SetTime(atoi(date));
data/nzbget-21.1~r2311+dfsg/daemon/queue/NzbFile.cpp:576:21:  [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 partNumber = atoi(number);
data/nzbget-21.1~r2311+dfsg/daemon/queue/NzbFile.cpp:577: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 lsize = atoi(bytes);
data/nzbget-21.1~r2311+dfsg/daemon/queue/NzbFile.cpp:660: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).
				m_fileInfo->SetTime(atoi(attrvalue));
data/nzbget-21.1~r2311+dfsg/daemon/queue/NzbFile.cpp:687:13:  [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).
				lsize = atol(attrvalue);
data/nzbget-21.1~r2311+dfsg/daemon/queue/NzbFile.cpp:691:18:  [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).
				partNumber = atol(attrvalue);
data/nzbget-21.1~r2311+dfsg/daemon/queue/NzbFile.cpp:837: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 errMsg[1024];
data/nzbget-21.1~r2311+dfsg/daemon/queue/QueueEditor.cpp:341: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).
			action == DownloadQueue::eaGroupMoveOffset) ? atoi(args) : 0;
data/nzbget-21.1~r2311+dfsg/daemon/queue/QueueEditor.cpp:902: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).
	int priorityVal = atoi(priority);
data/nzbget-21.1~r2311+dfsg/daemon/queue/QueueEditor.cpp:1105: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 targetId = atoi(args);
data/nzbget-21.1~r2311+dfsg/daemon/queue/QueueEditor.cpp:1233:26:  [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).
			nzbInfo->SetDupeScore(atoi(text));
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:296: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(buffer, m_messageBase, sizeof(SNzbRequestBase));
data/nzbget-21.1~r2311+dfsg/daemon/remote/MessageBase.h: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 m_username[NZBREQUESTPASSWORDSIZE]; // User name
data/nzbget-21.1~r2311+dfsg/daemon/remote/MessageBase.h:85: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 m_password[NZBREQUESTPASSWORDSIZE]; // Password
data/nzbget-21.1~r2311+dfsg/daemon/remote/MessageBase.h: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 m_nzbFilename[NZBREQUESTFILENAMESIZE]; // Name of nzb-file. For URLs can be empty, then the filename is read from URL download response
data/nzbget-21.1~r2311+dfsg/daemon/remote/MessageBase.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 m_category[NZBREQUESTFILENAMESIZE]; // Category, can be empty
data/nzbget-21.1~r2311+dfsg/daemon/remote/MessageBase.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 m_dupeKey[NZBREQUESTFILENAMESIZE]; // Duplicate key
data/nzbget-21.1~r2311+dfsg/daemon/remote/MessageBase.h:128: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 m_pattern[NZBREQUESTFILENAMESIZE]; // RegEx Pattern (when m_iMatchMode == eRemoteMatchModeRegEx)
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteServer.cpp:243: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/nzbget-21.1~r2311+dfsg/daemon/remote/WebServer.cpp:131: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/nzbget-21.1~r2311+dfsg/daemon/remote/WebServer.cpp:140: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).
			m_contentLen = atoi(p + 16);
data/nzbget-21.1~r2311+dfsg/daemon/remote/WebServer.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 m_authInfo[256+1];
data/nzbget-21.1~r2311+dfsg/daemon/remote/WebServer.h: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 m_authToken[48+1];
data/nzbget-21.1~r2311+dfsg/daemon/remote/WebServer.h:64: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 m_serverAuthToken[3][48+1];
data/nzbget-21.1~r2311+dfsg/daemon/remote/XmlRpc.cpp:466: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 methodName[100];
data/nzbget-21.1~r2311+dfsg/daemon/remote/XmlRpc.cpp:813: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 fullText[1024];
data/nzbget-21.1~r2311+dfsg/daemon/remote/XmlRpc.cpp:893: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).
		*value = atoi(param + 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/XmlRpc.cpp:909: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).
		*value = atoi(param);
data/nzbget-21.1~r2311+dfsg/daemon/remote/XmlRpc.cpp:927: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).
		*value = atoi(param);
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:188:2:  [2] (buffer) wchar_t:
  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.
	wchar_t unistr[1024];
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:192: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 str[1024];
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:283: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* file = fopen(filename, FOPEN_AB);
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:301: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, FOPEN_AB);
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:754:2:  [2] (buffer) wchar_t:
  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.
	wchar_t unistr[1024];
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:762: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 curDir[MAX_PATH + 1];
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:915: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* file = fopen(parentPath, FOPEN_RB);
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:1016: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 utfstr[1024];
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:1147:11:  [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).
	m_file = fopen(filename, strmode);
data/nzbget-21.1~r2311+dfsg/daemon/util/Log.cpp: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 tmp2[1024];
data/nzbget-21.1~r2311+dfsg/daemon/util/Log.cpp:73: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 time[50];
data/nzbget-21.1~r2311+dfsg/daemon/util/Log.cpp:143: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 tmp1[1024];
data/nzbget-21.1~r2311+dfsg/daemon/util/Log.cpp:186: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 tmp2[1024];
data/nzbget-21.1~r2311+dfsg/daemon/util/Log.cpp:209: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 tmp2[1024];
data/nzbget-21.1~r2311+dfsg/daemon/util/Log.cpp:232: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 tmp2[1024];
data/nzbget-21.1~r2311+dfsg/daemon/util/Log.cpp:255: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 tmp2[1024];
data/nzbget-21.1~r2311+dfsg/daemon/util/Log.cpp:336: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).
			tm.tm_year = atoi(filename + mask.GetMatchStart(0)) - 1900;
data/nzbget-21.1~r2311+dfsg/daemon/util/Log.cpp:337: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).
			tm.tm_mon = atoi(filename + mask.GetMatchStart(1)) - 1;
data/nzbget-21.1~r2311+dfsg/daemon/util/Log.cpp:338: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).
			tm.tm_mday = atoi(filename + mask.GetMatchStart(2));
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.h:53: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 m_data[size];
data/nzbget-21.1~r2311+dfsg/daemon/util/Script.cpp:273: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 command[512];
data/nzbget-21.1~r2311+dfsg/daemon/util/Script.cpp:469: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 cmdLineBuf[2048];
data/nzbget-21.1~r2311+dfsg/daemon/util/Script.cpp:517: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 errMsg[255];
data/nzbget-21.1~r2311+dfsg/daemon/util/Script.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 m_cmdLine[2048];
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:144: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.
const static char BASE64_DEALPHABET [128] =
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:319: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/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:700: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 ByteQuartet [4];
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:775:5:  [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(output, "&lt;");
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:779:5:  [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(output, "&gt;");
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:783:5:  [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(output, "&amp;");
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:787:5:  [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(output, "&apos;");
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:791:5:  [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(output, "&quot;");
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:831:7:  [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(output, "&#x%06x;", cp);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:893:18:  [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 code = atoi((p++)+1);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:1047:5:  [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(output, "\\\"");
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:1051:5:  [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(output, "\\\\");
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:1055:5:  [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(output, "\\/");
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:1059:5:  [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(output, "\\b");
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:1063:5:  [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(output, "\\f");
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:1067:5:  [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(output, "\\n");
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:1071:5:  [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(output, "\\r");
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:1075:5:  [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(output, "\\t");
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:1110: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(output, "\\u%04x", cp <= 0xFFFF ? cp : '.');
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:1323:5:  [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(output, "%20");
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:1370: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 month[4];
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:1483: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).
		m_port = atoi(colon + 1);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.h:86: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 VersionRevisionBuf[100];
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:608: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 filename[MAX_PATH + 1];
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:759: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 oldTip[200];
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:874: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 commonAppDataPath[MAX_PATH];
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:961: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 commonAppDataPath[MAX_PATH];
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinService.cpp:123: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 exeName[1024];
data/nzbget-21.1~r2311+dfsg/lib/catch/catch.h:982: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.
        char sizer[1];
data/nzbget-21.1~r2311+dfsg/lib/catch/catch.h:987: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.
        char sizer[2];
data/nzbget-21.1~r2311+dfsg/lib/catch/catch.h:2504: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.
        char storage[sizeof(T)];
data/nzbget-21.1~r2311+dfsg/lib/catch/catch.h:5567:23:  [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).
                m_ofs.open( m_config->getFilename().c_str() );
data/nzbget-21.1~r2311+dfsg/lib/catch/catch.h:6080: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.
        char data[bufferSize];
data/nzbget-21.1~r2311+dfsg/lib/catch/catch.h:7200:21:  [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 asChar[sizeof (int)];
data/nzbget-21.1~r2311+dfsg/lib/catch/catch.h:7767:16:  [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 line[CATCH_CONFIG_CONSOLE_WIDTH] = {0};
data/nzbget-21.1~r2311+dfsg/lib/par2/creatorpacket.cpp:55: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(packet->client, creator.c_str(), creator.size());
data/nzbget-21.1~r2311+dfsg/lib/par2/descriptionpacket.cpp:56: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(packet->name, filename.c_str(), filename.size());
data/nzbget-21.1~r2311+dfsg/lib/par2/diskfile.cpp:265: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 fullname[MAX_PATH];
data/nzbget-21.1~r2311+dfsg/lib/par2/diskfile.cpp:396: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.c_str(), "wb");
data/nzbget-21.1~r2311+dfsg/lib/par2/diskfile.cpp:499: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.c_str(), "rb");
data/nzbget-21.1~r2311+dfsg/lib/par2/diskfile.cpp:568: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 curdir[1000];
data/nzbget-21.1~r2311+dfsg/lib/par2/diskfile.cpp:824: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 newname[1024+1];
data/nzbget-21.1~r2311+dfsg/lib/par2/diskfile.cpp:882: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 message[40];
data/nzbget-21.1~r2311+dfsg/lib/par2/md5.cpp: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 buffer[33];
data/nzbget-21.1~r2311+dfsg/lib/par2/md5.cpp:40:3:  [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(buffer, 
data/nzbget-21.1~r2311+dfsg/lib/par2/md5.cpp:52: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 buffer[33];
data/nzbget-21.1~r2311+dfsg/lib/par2/md5.cpp:54:3:  [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(buffer, 
data/nzbget-21.1~r2311+dfsg/lib/par2/md5.cpp:241: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(&block[used], current, have);
data/nzbget-21.1~r2311+dfsg/lib/par2/md5.cpp:264: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(&block[used], current, length);
data/nzbget-21.1~r2311+dfsg/lib/par2/md5.cpp:332: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 buffer[50];
data/nzbget-21.1~r2311+dfsg/lib/par2/md5.cpp:334:3:  [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(buffer,
data/nzbget-21.1~r2311+dfsg/lib/par2/md5.cpp:345: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 buffer[50];
data/nzbget-21.1~r2311+dfsg/lib/par2/md5.cpp:347:3:  [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(buffer,
data/nzbget-21.1~r2311+dfsg/lib/par2/md5.h:111: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 block[buffersize];
data/nzbget-21.1~r2311+dfsg/lib/yencode/SimdDecoder.cpp:35:23:  [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 unsigned char BitsSetTable256[256] = 
data/nzbget-21.1~r2311+dfsg/lib/yencode/SimdInit.cpp:105:19:  [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 (FILE* file = fopen("/proc/cpuinfo", "r"))
data/nzbget-21.1~r2311+dfsg/lib/yencode/SimdInit.cpp:107: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[200];
data/nzbget-21.1~r2311+dfsg/tests/postprocess/ParCheckerTest.cpp:61: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* file = fopen(fullfilename.c_str(), FOPEN_RBP);
data/nzbget-21.1~r2311+dfsg/tests/postprocess/ParCheckerTest.cpp:91:17:  [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* infile = fopen(filename, FOPEN_RB);
data/nzbget-21.1~r2311+dfsg/tests/queue/NzbFileTest.cpp:40:19:  [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* infofile = fopen(infoFilename.c_str(), FOPEN_RB);
data/nzbget-21.1~r2311+dfsg/tests/queue/NzbFileTest.cpp:42: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/nzbget-21.1~r2311+dfsg/tests/queue/NzbFileTest.cpp:47:18:  [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 fileCount = atoi(buffer);
data/nzbget-21.1~r2311+dfsg/tests/suite/TestMain.cpp:46: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 firstArg[1024];
data/nzbget-21.1~r2311+dfsg/tests/util/NStringTest.cpp:50: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(str3, "Hello, 0123456789 world", str3.Capacity());
data/nzbget-21.1~r2311+dfsg/tests/util/NStringTest.cpp:114: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[50];
data/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.cpp:217: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).
		if (strlen(m_host) >= sizeof(addr.sun_path))
data/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.cpp:295: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 (!m_host || strlen(m_host) == 0)
data/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.cpp:355: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).
	int res = send(m_socket, buffer, strlen(buffer), 0);
data/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.cpp:560: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).
		if (strlen(m_host) >= sizeof(addr.sun_path))
data/nzbget-21.1~r2311+dfsg/daemon/connect/Connection.cpp:1176:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(proxy_addr.sun_path, "/dev/socket/dnsproxyd", sizeof(proxy_addr.sun_path));
data/nzbget-21.1~r2311+dfsg/daemon/connect/WebDownloader.cpp:511: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 *pe = fname + strlen(fname) - 1;
data/nzbget-21.1~r2311+dfsg/daemon/extension/NzbScript.cpp:34: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).
	int prefixLen = stripPrefix ? strlen(stripPrefix) : 0;
data/nzbget-21.1~r2311+dfsg/daemon/extension/NzbScript.cpp:40:84:  [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 (stripPrefix && !strncmp(parameter.GetName(), stripPrefix, prefixLen) && (int)strlen(parameter.GetName()) > prefixLen)
data/nzbget-21.1~r2311+dfsg/daemon/extension/PostScript.cpp:54: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).
			if (strlen(varname) > 0 && varname[0] != '*' && varname[strlen(varname) - 1] == ':' &&
data/nzbget-21.1~r2311+dfsg/daemon/extension/PostScript.cpp:54:60:  [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(varname) > 0 && varname[0] != '*' && varname[strlen(varname) - 1] == ':' &&
data/nzbget-21.1~r2311+dfsg/daemon/extension/PostScript.cpp:58: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).
				scriptName[strlen(scriptName) - 1] = '\0'; // remove trailing ':'
data/nzbget-21.1~r2311+dfsg/daemon/extension/PostScript.cpp:96: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).
	m_prefixLen = strlen(script->GetDisplayName()) + 2; // 2 = strlen(": ");
data/nzbget-21.1~r2311+dfsg/daemon/extension/QueueScript.cpp:134: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).
	m_prefixLen = strlen(script->GetDisplayName()) + 2; // 2 = strlen(": ");
data/nzbget-21.1~r2311+dfsg/daemon/extension/QueueScript.cpp:344: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).
		if (strlen(varname) > 0 && varname[0] != '*' && varname[strlen(varname)-1] == ':' &&
data/nzbget-21.1~r2311+dfsg/daemon/extension/QueueScript.cpp:344:59:  [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(varname) > 0 && varname[0] != '*' && varname[strlen(varname)-1] == ':' &&
data/nzbget-21.1~r2311+dfsg/daemon/extension/QueueScript.cpp:350: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).
			scriptName[strlen(scriptName)-1] = '\0'; // remove trailing ':'
data/nzbget-21.1~r2311+dfsg/daemon/extension/ScanScript.cpp:93: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).
	m_prefixLen = strlen(script->GetDisplayName()) + 2; // 2 = strlen(": ");
data/nzbget-21.1~r2311+dfsg/daemon/extension/ScanScript.cpp:107: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).
	SetEnvVar("NZBNP_NZBNAME", strlen(*m_nzbName) > 0 ? **m_nzbName : FileSystem::BaseFileName(m_nzbFilename));
data/nzbget-21.1~r2311+dfsg/daemon/extension/ScanScript.cpp:120: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(dir);
data/nzbget-21.1~r2311+dfsg/daemon/extension/ScriptConfig.cpp:66:59:  [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 (buf[0] == 0 || buf[0] == '#' || strspn(buf, " ") == strlen(buf))
data/nzbget-21.1~r2311+dfsg/daemon/extension/ScriptConfig.cpp:173: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).
	const int beginSignatureLen = strlen(BEGIN_SCRIPT_SIGNATURE);
data/nzbget-21.1~r2311+dfsg/daemon/extension/ScriptConfig.cpp:174: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).
	const int definitionSignatureLen = strlen(DEFINITION_SIGNATURE);
data/nzbget-21.1~r2311+dfsg/daemon/extension/ScriptConfig.cpp:322: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).
	const int beginSignatureLen = strlen(BEGIN_SCRIPT_SIGNATURE);
data/nzbget-21.1~r2311+dfsg/daemon/extension/ScriptConfig.cpp:323: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).
	const int queueEventsSignatureLen = strlen(QUEUE_EVENTS_SIGNATURE);
data/nzbget-21.1~r2311+dfsg/daemon/extension/ScriptConfig.cpp:324: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).
	const int taskTimeSignatureLen = strlen(TASK_TIME_SIGNATURE);
data/nzbget-21.1~r2311+dfsg/daemon/extension/ScriptConfig.cpp:325: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).
	const int definitionSignatureLen = strlen(DEFINITION_SIGNATURE);
data/nzbget-21.1~r2311+dfsg/daemon/extension/ScriptConfig.cpp:400:60:  [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).
	while (queueEvents && *queueEvents && *(p = queueEvents + strlen(queueEvents) - 1) == '#') *p = '\0';
data/nzbget-21.1~r2311+dfsg/daemon/extension/ScriptConfig.cpp:402:51:  [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).
	while (taskTime && *taskTime && *(p = taskTime + strlen(taskTime) - 1) == '#') *p = '\0';
data/nzbget-21.1~r2311+dfsg/daemon/extension/ScriptConfig.cpp:421: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).
		int len = strlen(directory2);
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedCoordinator.cpp:61:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(statusBuf, statuses, bufLen);
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFile.cpp:479: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).
		(!m_feedItemInfo->GetUrl() || strlen(m_feedItemInfo->GetUrl()) == 0))
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFile.cpp:604: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).
	for (char* pend = errMsg + strlen(errMsg) - 1; pend >= errMsg && (*pend == '\n' || *pend == '\r' || *pend == ' '); pend--) *pend = '\0';
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFilter.cpp:97: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).
	int paramLen = strlen(m_param);
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFilter.cpp:848: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).
	for (int oldLen = 0, newLen = strlen(expr); newLen != oldLen; oldLen = newLen, newLen = strlen(expr))
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedFilter.cpp:848:90:  [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).
	for (int oldLen = 0, newLen = strlen(expr); newLen != oldLen; oldLen = newLen, newLen = strlen(expr))
data/nzbget-21.1~r2311+dfsg/daemon/feed/FeedInfo.cpp:37: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).
	m_filterHash = Util::HashBJ96(m_filter, strlen(m_filter), 0);
data/nzbget-21.1~r2311+dfsg/daemon/frontend/Frontend.cpp:162:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(messageBase->m_username, g_Options->GetControlUsername(), NZBREQUESTPASSWORDSIZE - 1);
data/nzbget-21.1~r2311+dfsg/daemon/frontend/Frontend.cpp:165:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(messageBase->m_password, g_Options->GetControlPassword(), NZBREQUESTPASSWORDSIZE);
data/nzbget-21.1~r2311+dfsg/daemon/frontend/Frontend.cpp:200:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!read ||
data/nzbget-21.1~r2311+dfsg/daemon/frontend/Frontend.cpp:261:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!read ||
data/nzbget-21.1~r2311+dfsg/daemon/frontend/NCursesFrontend.cpp:368: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(string);
data/nzbget-21.1~r2311+dfsg/daemon/frontend/NCursesFrontend.cpp:509: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(text);
data/nzbget-21.1~r2311+dfsg/daemon/frontend/NCursesFrontend.cpp:757: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).
	int headerLen = strlen(header);
data/nzbget-21.1~r2311+dfsg/daemon/frontend/NCursesFrontend.cpp:770: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).
		if ((int)strlen(timeStr) > charsLeft)
data/nzbget-21.1~r2311+dfsg/daemon/frontend/NCursesFrontend.cpp:778: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).
		if ((int)strlen(timeStr) > charsLeft)
data/nzbget-21.1~r2311+dfsg/daemon/frontend/NCursesFrontend.cpp:782: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).
		if ((int)strlen(timeStr) > charsLeft)
data/nzbget-21.1~r2311+dfsg/daemon/frontend/NCursesFrontend.cpp:791: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 timeLen = strlen(timeStr);
data/nzbget-21.1~r2311+dfsg/daemon/frontend/NCursesFrontend.cpp:792: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).
	int shortCapLen = strlen(shortCap);
data/nzbget-21.1~r2311+dfsg/daemon/frontend/NCursesFrontend.cpp:793: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).
	int longCapLen = strlen(longCap);
data/nzbget-21.1~r2311+dfsg/daemon/frontend/NCursesFrontend.cpp:947: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).
			int colWidthFiles = strlen(files);
data/nzbget-21.1~r2311+dfsg/daemon/frontend/NCursesFrontend.cpp:950: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).
			int colWidthTotal = strlen(total);
data/nzbget-21.1~r2311+dfsg/daemon/frontend/NCursesFrontend.cpp:953: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).
			int colWidthLeft = strlen(remaining);
data/nzbget-21.1~r2311+dfsg/daemon/main/Maintenance.cpp:115: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).
		&& !(strlen(m_updateScript) > 2 && m_updateScript[1] == ':')
data/nzbget-21.1~r2311+dfsg/daemon/main/Maintenance.cpp:167: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).
	p = strchr(p + strlen(keyStr), '"');
data/nzbget-21.1~r2311+dfsg/daemon/main/Maintenance.cpp:190:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(value, p, len);
data/nzbget-21.1~r2311+dfsg/daemon/main/Maintenance.cpp:241: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).
	m_prefixLen = strlen(logPrefix) + 2; // 2 = strlen(": ");
data/nzbget-21.1~r2311+dfsg/daemon/main/Maintenance.cpp:285: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).
	scriptController.m_prefixLen = strlen(logPrefix) + 2; // 2 = strlen(": ");
data/nzbget-21.1~r2311+dfsg/daemon/main/Maintenance.cpp:363: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).
	int titLen = strlen(sigTitle);
data/nzbget-21.1~r2311+dfsg/daemon/main/Maintenance.cpp:371: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).
			int sigLen = strlen(hexSig);
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:631: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 plen = strlen(parentDir);
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:1079: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).
		bool completed = nname && strlen(nname) > 0;
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:1220: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).
		if (param && strlen(param) > 0 && taskCommand == scProcess &&
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:1436: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).
		if (buf[0] != 0 && buf[strlen(buf)-1] == '\n')
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:1438: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).
			buf[strlen(buf)-1] = 0; // remove traling '\n'
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:1440: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).
		if (buf[0] != 0 && buf[strlen(buf)-1] == '\r')
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:1442: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).
			buf[strlen(buf)-1] = 0; // remove traling '\r' (for windows line endings)
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:1445:59:  [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 (buf[0] == 0 || buf[0] == '#' || strspn(buf, " ") == strlen(buf))
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:1618: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 (optvalue && strlen(optvalue) > 0)
data/nzbget-21.1~r2311+dfsg/daemon/main/Options.cpp:1692: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 nameLen = strlen(option);
data/nzbget-21.1~r2311+dfsg/daemon/main/nzbget.cpp:288:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(m_options->GetUMask());
data/nzbget-21.1~r2311+dfsg/daemon/main/nzbget.cpp:998: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).
		write(lfp, str, strlen(str));
data/nzbget-21.1~r2311+dfsg/daemon/nntp/ArticleWriter.cpp:502: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).
		int len = strlen(nzbDestDir);
data/nzbget-21.1~r2311+dfsg/daemon/nntp/NntpConnection.cpp:76: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).
	if (strlen(m_newsServer->GetUser()) == 0 || strlen(m_newsServer->GetPassword()) == 0)
data/nzbget-21.1~r2311+dfsg/daemon/nntp/NntpConnection.cpp:76: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).
	if (strlen(m_newsServer->GetUser()) == 0 || strlen(m_newsServer->GetPassword()) == 0)
data/nzbget-21.1~r2311+dfsg/daemon/nntp/NntpConnection.cpp:215: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).
	if ((strlen(m_newsServer->GetUser()) > 0 && strlen(m_newsServer->GetPassword()) > 0) &&
data/nzbget-21.1~r2311+dfsg/daemon/nntp/NntpConnection.cpp:215: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).
	if ((strlen(m_newsServer->GetUser()) > 0 && strlen(m_newsServer->GetPassword()) > 0) &&
data/nzbget-21.1~r2311+dfsg/daemon/nserv/NServMain.cpp:127:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (getchar()) Util::Sleep(200);
data/nzbget-21.1~r2311+dfsg/daemon/nserv/NntpServer.cpp:425: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/nzbget-21.1~r2311+dfsg/daemon/nserv/NzbGenerator.cpp:36: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).
		int len = strlen(filename);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/DirectUnpack.cpp:237: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).
		!strncmp(m_destDir, g_Options->GetInterDir(), strlen(g_Options->GetInterDir())) &&
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/DirectUnpack.cpp:238: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).
		m_destDir[strlen(g_Options->GetInterDir())] == PATH_SEPARATOR;
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/DirectUnpack.cpp:292:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int ch = fgetc(stream);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/DirectUnpack.cpp:336: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(text);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/DirectUnpack.cpp:341:44:  [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).
		!strncmp(text + 19, m_unpackExtendedDir, strlen(m_unpackExtendedDir)))
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/DirectUnpack.cpp:343: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).
		msgText.Format("Unrar: Extracting %s", text + 19 + strlen(m_unpackExtendedDir) + 1);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/DupeMatcher.cpp:126:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(m_filenameBuf, m_lastFilename, m_filenameBufLen);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/DupeMatcher.cpp:196:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(filenameBuf, filename, bufLen);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/ParChecker.cpp:115: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).
		if (basename != wildcardParam && strlen(basename) > 0)
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/ParChecker.cpp:308:2:  [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(100);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/ParChecker.cpp:346:50:  [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).
			(!strncmp(msg, "Target: ", 8) && strcmp(msg + strlen(msg) - 5, "found"));
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/ParChecker.cpp:871: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(filename2);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/ParChecker.cpp:888: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).
	if (ext1 && ext2 && (strlen(ext1) == 4) && (strlen(ext2) == 4) &&
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/ParChecker.cpp:888: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).
	if (ext1 && ext2 && (strlen(ext1) == 4) && (strlen(ext2) == 4) &&
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/ParParser.cpp:76: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(filename);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/ParParser.cpp: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).
	len = strlen(filename);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/ParParser.cpp:120: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).
		*baseNameLen = strlen(filename);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/ParRenamer.cpp:251: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 baseLen = strlen(correctName);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/PrePostProcessor.cpp:470: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 len = strlen(filename);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/PrePostProcessor.cpp:809:61:  [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).
		!strncmp(nzbInfo->GetDestDir(), g_Options->GetInterDir(), strlen(g_Options->GetInterDir())) &&
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/PrePostProcessor.cpp:810:25:  [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).
		nzbInfo->GetDestDir()[strlen(g_Options->GetInterDir())] == PATH_SEPARATOR;
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/RarRenamer.cpp:136: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).
			if (ext && strlen(ext) == 4)
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/RarRenamer.cpp:291: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).
	if (strlen(filename1) != strlen(filename2))
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/RarRenamer.cpp:291: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 (strlen(filename1) != strlen(filename2))
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/RarRenamer.cpp:299: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 (!(ext1 && ext2 && strlen(ext1) == strlen(ext2)))
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/RarRenamer.cpp:299: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).
	if (!(ext1 && ext2 && strlen(ext1) == strlen(ext2)))
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/RarRenamer.cpp:315: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).
		return ext1 && ext2 && strlen(ext1) == strlen(ext2) &&
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/RarRenamer.cpp:315: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 ext1 && ext2 && strlen(ext1) == strlen(ext2) &&
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/RarRenamer.cpp:335: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).
		if (strlen(setBasename) != strlen(filename))
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/RarRenamer.cpp:335: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).
		if (strlen(setBasename) != strlen(filename))
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Unpack.cpp:223: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).
			char* end = password + strlen(password) - 1;
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Unpack.cpp:603:78:  [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).
		!strncmp(m_postInfo->GetNzbInfo()->GetDestDir(), g_Options->GetInterDir(), strlen(g_Options->GetInterDir())) &&
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Unpack.cpp:604: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).
		m_postInfo->GetNzbInfo()->GetDestDir()[strlen(g_Options->GetInterDir())] == PATH_SEPARATOR;
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Unpack.cpp:799:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int ch = fgetc(stream);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Unpack.cpp:850: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(text);
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Unpack.cpp:855:44:  [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).
		!strncmp(text + 19, m_unpackExtendedDir, strlen(m_unpackExtendedDir)))
data/nzbget-21.1~r2311+dfsg/daemon/postprocess/Unpack.cpp:857: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).
		msgText.Format("Unrar: Extracting %s", text + 19 + strlen(m_unpackExtendedDir) + 1);
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:70: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).
		if (buffer[strlen(buffer) - 1] != '\n')
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:73:86:  [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).
			for (char skipbuf[1024]; DiskFile::ReadLine(skipbuf, 1024) && *skipbuf && skipbuf[strlen(skipbuf) - 1] != '\n'; ) ;
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:76: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).
		buffer[strlen(buffer) - 1] = 0;
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:150:56:  [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(formatSignature, FORMATVERSION_SIGNATURE, strlen(FORMATVERSION_SIGNATURE)))
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:155: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).
	return atoi(formatSignature + strlen(FORMATVERSION_SIGNATURE));
data/nzbget-21.1~r2311+dfsg/daemon/queue/DiskState.cpp:660: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).
	if (strlen(buf) > 0)
data/nzbget-21.1~r2311+dfsg/daemon/queue/NzbFile.cpp:122: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).
	char* end = subject + strlen(subject) - 1;
data/nzbget-21.1~r2311+dfsg/daemon/queue/NzbFile.cpp:322: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 len = strlen(article->GetMessageId());
data/nzbget-21.1~r2311+dfsg/daemon/queue/NzbFile.cpp:843: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).
	for (char* pend = errMsg + strlen(errMsg) - 1; pend >= errMsg && (*pend == '\n' || *pend == '\r' || *pend == ' '); pend--) *pend = '\0';
data/nzbget-21.1~r2311+dfsg/daemon/queue/QueueEditor.cpp:100: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 lastCh = sort[strlen(sort) - 1];
data/nzbget-21.1~r2311+dfsg/daemon/queue/QueueEditor.cpp:129:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		std::equal(tempList.begin(), tempList.end(), m_nzbList->begin(),
data/nzbget-21.1~r2311+dfsg/daemon/queue/QueueEditor.cpp:1276: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 len1 = strlen(fileInfo1->GetFilename());
data/nzbget-21.1~r2311+dfsg/daemon/queue/QueueEditor.cpp:1277: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 len2 = strlen(fileInfo2->GetFilename());
data/nzbget-21.1~r2311+dfsg/daemon/queue/QueueEditor.cpp:1280: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 ext1len = ext1 ? strlen(ext1) : 0;
data/nzbget-21.1~r2311+dfsg/daemon/queue/QueueEditor.cpp:1281: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 ext2len = ext2 ? strlen(ext2) : 0;
data/nzbget-21.1~r2311+dfsg/daemon/queue/Scanner.cpp:167: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).
			if (strlen(category) > 0)
data/nzbget-21.1~r2311+dfsg/daemon/queue/Scanner.cpp:438: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).
	if (nzbName && strlen(nzbName) > 0)
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:179: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).
	if ((strlen(g_Options->GetControlUsername()) > 0 && strcmp(m_messageBase.m_username, g_Options->GetControlUsername())) ||
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:286: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 textLen = strlen(text) + 1;
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:490: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).
			bufsize += strlen(nzbInfo->GetFilename()) + 1;
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:491: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).
			bufsize += strlen(nzbInfo->GetName()) + 1;
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:492: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).
			bufsize += strlen(nzbInfo->GetDestDir()) + 1;
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:493: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).
			bufsize += strlen(nzbInfo->GetCategory()) + 1;
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:494: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).
			bufsize += strlen(nzbInfo->GetQueuedFilename()) + 1;
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:502: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).
				bufsize += strlen(nzbParameter.GetName()) + 1;
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:503: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).
				bufsize += strlen(nzbParameter.GetValue()) + 1;
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:518: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).
				bufsize += strlen(fileInfo->GetSubject()) + 1;
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:519: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).
				bufsize += strlen(fileInfo->GetFilename()) + 1;
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:550: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).
			listAnswer->m_filenameLen = htonl(strlen(nzbInfo->GetFilename()) + 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:551: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).
			listAnswer->m_nameLen = htonl(strlen(nzbInfo->GetName()) + 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:552: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).
			listAnswer->m_destDirLen = htonl(strlen(nzbInfo->GetDestDir()) + 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:553: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).
			listAnswer->m_categoryLen = htonl(strlen(nzbInfo->GetCategory()) + 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:554:44:  [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).
			listAnswer->m_queuedFilenameLen = htonl(strlen(nzbInfo->GetQueuedFilename()) + 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:584: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).
				listAnswer->m_nameLen = htonl(strlen(nzbParameter.GetName()) + 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:585: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).
				listAnswer->m_valueLen = htonl(strlen(nzbParameter.GetValue()) + 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:637: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).
				listAnswer->m_subjectLen = htonl(strlen(fileInfo->GetSubject()) + 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:638:39:  [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).
				listAnswer->m_filenameLen = htonl(strlen(fileInfo->GetFilename()) + 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:752: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).
			bufsize += strlen(message.GetText()) + 1;
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:766: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).
			logAnswer->m_textLen = htonl(strlen(message.GetText()) + 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:856: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).
			names += strlen(names) + 1;
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:919: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).
			bufsize += strlen(postInfo->GetNzbInfo()->GetFilename()) + 1;
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:920: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).
			bufsize += strlen(postInfo->GetNzbInfo()->GetName()) + 1;
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:921: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).
			bufsize += strlen(postInfo->GetNzbInfo()->GetDestDir()) + 1;
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:922: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).
			bufsize += strlen(postInfo->GetProgressLabel()) + 1;
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:947: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).
			postQueueAnswer->m_nzbFilenameLen = htonl(strlen(postInfo->GetNzbInfo()->GetFilename()) + 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:948:43:  [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).
			postQueueAnswer->m_infoNameLen = htonl(strlen(postInfo->GetNzbInfo()->GetName()) + 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:949: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).
			postQueueAnswer->m_destDirLen = htonl(strlen(postInfo->GetNzbInfo()->GetDestDir()) + 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:950:48:  [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).
			postQueueAnswer->m_progressLabelLen = htonl(strlen(postInfo->GetProgressLabel()) + 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:1075: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).
				bufsize += strlen(historyInfo->GetName()) + 1;
data/nzbget-21.1~r2311+dfsg/daemon/remote/BinRpc.cpp:1093:39:  [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).
				listAnswer->m_nicenameLen = htonl(strlen(historyInfo->GetName()) + 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp:70:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(messageBase->m_username, g_Options->GetControlUsername(), NZBREQUESTPASSWORDSIZE - 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp:73:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(messageBase->m_password, g_Options->GetControlPassword(), NZBREQUESTPASSWORDSIZE - 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp:86:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!read ||
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp:98:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!read)
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp:121: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).
		length = strlen(nzbContent) + 1;
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp:148:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(DownloadRequest.m_nzbFilename, nzbFilename, NZBREQUESTFILENAMESIZE - 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp:152:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(DownloadRequest.m_nzbFilename, nzbContent, NZBREQUESTFILENAMESIZE - 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp:159:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(DownloadRequest.m_category, category, NZBREQUESTFILENAMESIZE - 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp:166:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(DownloadRequest.m_dupeKey, dupeKey, NZBREQUESTFILENAMESIZE - 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp:285:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ListRequest.m_pattern, pattern, NZBREQUESTFILENAMESIZE - 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp:300:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!read ||
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp:452: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).
				if (nzbInfo->GetCategory() && strlen(nzbInfo->GetCategory()) > 0)
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp:627:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!read ||
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp:772: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).
			nameLength += strlen(name) + 1;
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp:779: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).
	int textLen = text ? strlen(text) + 1 : 0;
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp:800:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(trailingData, text, textLen);
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp:817:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(names, name, len + 1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp:919:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!read ||
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp:986: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).
	int length = strlen(text) + 1;
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteClient.cpp:1043:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!read ||
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteServer.cpp:40: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).
		if (strlen(g_Options->GetSecureCert()) == 0 || !FileSystem::FileExists(g_Options->GetSecureCert()))
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteServer.cpp:46: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).
		if (strlen(g_Options->GetSecureKey()) == 0 || !FileSystem::FileExists(g_Options->GetSecureKey()))
data/nzbget-21.1~r2311+dfsg/daemon/remote/RemoteServer.cpp:256: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).
	else if (!strncmp(signature, "OPTI", 4) && strlen(url) > 4)
data/nzbget-21.1~r2311+dfsg/daemon/remote/WebServer.cpp:145: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).
			if (strlen(authInfo64) > sizeof(m_authInfo))
data/nzbget-21.1~r2311+dfsg/daemon/remote/WebServer.cpp:155: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).
			if (strlen(authInfo64) > sizeof(m_authInfo))
data/nzbget-21.1~r2311+dfsg/daemon/remote/WebServer.cpp:176:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(m_authToken, tok + 11, sizeof(m_authToken)-1);
data/nzbget-21.1~r2311+dfsg/daemon/remote/WebServer.cpp:233: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(pstart);
data/nzbget-21.1~r2311+dfsg/daemon/remote/WebServer.cpp:235:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(m_authInfo, pstart, len);
data/nzbget-21.1~r2311+dfsg/daemon/remote/WebServer.cpp:333: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).
		SendBodyResponse(processor.GetResponse(), strlen(processor.GetResponse()), processor.GetContentType(), processor.IsSafeMethod());
data/nzbget-21.1~r2311+dfsg/daemon/remote/WebServer.cpp:555: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).
	if (m_url[strlen(m_url)-1] == '/')
data/nzbget-21.1~r2311+dfsg/daemon/remote/WebServer.cpp:587: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(body);
data/nzbget-21.1~r2311+dfsg/daemon/remote/XmlRpc.cpp:395:25:  [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).
				request = request + strlen(request);
data/nzbget-21.1~r2311+dfsg/daemon/remote/XmlRpc.cpp:1021: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(param) - 1;
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:63: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(normPath);
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:80: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).
	if (strlen(normPath) > 2)
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:86:55:  [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 (p - parentPath == 2 && parentPath[1] == ':' && strlen(parentPath) > 2)
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:94: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).
			if (strlen(parentPath) != strlen(path) && !ForceDirectories(parentPath, errmsg))
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:94: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).
			if (strlen(parentPath) != strlen(path) && !ForceDirectories(parentPath, errmsg))
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:127: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(normPath);
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:155: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).
			if (strlen(parentPath) != strlen(path) && !ForceDirectories(parentPath, errmsg))
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:155: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).
			if (strlen(parentPath) != strlen(path) && !ForceDirectories(parentPath, errmsg))
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:396: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).
	for (int len = strlen(result); len > 0 && (result[len - 1] == '.' || result[len - 1] == ' '); len--)
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:406: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).
		int len = strlen(reserved);
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:535:44:  [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).
		BString<1024>(dirFilename && dirFilename[strlen(dirFilename) - 1] == PATH_SEPARATOR ? "%s*" : "%s\\*", dirFilename)),
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:733: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).
		if (home[strlen(home)-1] == '/')
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:821: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(path);
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:844: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).
	result.Reserve(strlen(path));
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:950: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).
	if (strlen(path) > 260 - 14)
data/nzbget-21.1~r2311+dfsg/daemon/util/FileSystem.cpp:961: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 len = strlen(reserved);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:37:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(m_data, str, addLen);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:46: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(str);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:48: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).
	int curLen = strlen(m_data);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:53:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(m_data + curLen, str, addLen);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:70: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).
	int curLen = strlen(m_data);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:114: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(str);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:117:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(m_data, str, len);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:131: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(str);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:136:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(m_data + curLen, str, len);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:201: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).
	int addLen = strlen(str);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:213:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(newvalue, m_data, pos);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:214:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(newvalue + pos, str, addLen);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:223: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 fromLen = strlen(from);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:224: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 toLen = strlen(to);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:286: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).
	m_data = (wchar_t*)malloc((strlen(utfstr) * 2 + 1) * sizeof(wchar_t));
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:360: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(str);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.cpp:367:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(m_data + curLen, str, len);
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.h:38: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).
	int Length() const { return (int)strlen(m_data); }
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.h:76:44:  [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 Length() const { return m_data ? (int)strlen(m_data) : 0; }
data/nzbget-21.1~r2311+dfsg/daemon/util/NString.h:110:24:  [1] (buffer) wcslen:
  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 Length() { return wcslen(m_data); }
data/nzbget-21.1~r2311+dfsg/daemon/util/Script.cpp:95: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).
		if (!(!strncmp(var, "NZB", 3) && strlen(var) > 5 && var[5] == '_'))
data/nzbget-21.1~r2311+dfsg/daemon/util/Script.cpp:197: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).
	int prefixLen = stripPrefix ? strlen(stripPrefix) : 0;
data/nzbget-21.1~r2311+dfsg/daemon/util/Script.cpp:203: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).
			(int)strlen(optEntry.GetName()) > prefixLen)
data/nzbget-21.1~r2311+dfsg/daemon/util/Script.cpp:444: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).
		int len = strlen(arg);
data/nzbget-21.1~r2311+dfsg/daemon/util/Script.cpp:479: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).
	if (strlen(workingDir) > 260 - 14)
data/nzbget-21.1~r2311+dfsg/daemon/util/Script.cpp:531:7:  [1] (buffer) wcslen:
  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 (wcslen(wideWorkingDir) > 260)
data/nzbget-21.1~r2311+dfsg/daemon/util/Script.cpp:648: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).
			write(1, script, strlen(script));
data/nzbget-21.1~r2311+dfsg/daemon/util/Script.cpp:658: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).
		write(1, script, strlen(script));
data/nzbget-21.1~r2311+dfsg/daemon/util/Script.cpp:661: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).
		write(1, errtext, strlen(errtext));
data/nzbget-21.1~r2311+dfsg/daemon/util/Script.cpp:799: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).
	for (char* pend = text + strlen(text) - 1; pend >= text && (*pend == '\n' || *pend == '\r' || *pend == ' '); pend--) *pend = '\0';
data/nzbget-21.1~r2311+dfsg/daemon/util/Script.cpp:882: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).
	fwrite(str, 1, strlen(str), m_writepipe);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:114: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).
	if ((strlen(code_revision()) > 0) && strstr(VERSION, "testing"))
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:269: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).
	buffer[strlen(buffer) - 1] = '\0';
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:293: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).
	int filenameLen = strlen(filename);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:298: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 extLen = strlen(ext);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:386: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).
	char* end = str + strlen(str) - 1;
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:406: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 lenFrom = strlen(from);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:407: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 lenTo = strlen(to);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:445: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).
	int lenStr = strlen(str);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:446: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).
	int lenSuf = strlen(suffix);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:690:2:  [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(milliseconds * 1000);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:698:73:  [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 InputBufferLength = inputBufferLength > 0 ? inputBufferLength : strlen(inputBuffer);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:736: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 reqSize = strlen(raw);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:934: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).
	int tagLen = strlen(openTag);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:949:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(valueBuf, value, len);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:1009: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 reqSize = strlen(raw);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:1194: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).
	pstart += strlen(openTag);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:1301: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 reqSize = strlen(raw);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:1340: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).
	res.Reserve(strlen(str) * 2);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:1372:10:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	int r = sscanf(dateTimeStr, "%*s %d %3s %d %d:%d:%d %3d %2d", &day, &month[0], &year, &hours, &minutes, &seconds, &zonehours, &zoneminutes);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:1467: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).
		char* resEnd = m_address + strlen(m_address);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:1476:25:  [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).
		hostEnd = m_address + strlen(m_address);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:1640: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).
					m_wildLen[m_wildCount-1] = strlen(str);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:1700: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).
		m_wildLen[m_wildCount-1] = strlen(str);
data/nzbget-21.1~r2311+dfsg/daemon/util/Util.cpp:1805: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(dataString);
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:269:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(m_iconData->szTip, "NZBGet", sizeof(m_iconData->szTip));
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:611:72:  [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).
		RegSetValueEx(hKey, "NZBGet", 0, REG_SZ, (BYTE*)(char*)startCommand, strlen(startCommand) + 1);
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:760:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(oldTip, m_iconData->szTip, sizeof(m_iconData->szTip));
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:766:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(m_iconData->szTip, "NZBGet - paused", sizeof(m_iconData->szTip));
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:772:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(m_iconData->szTip, tip, sizeof(m_iconData->szTip));
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:790:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy(m_iconData->szTip, "NZBGet - post-processing", sizeof(m_iconData->szTip));
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:795:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy(m_iconData->szTip, "NZBGet - fetching URLs", sizeof(m_iconData->szTip));
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:800:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy(m_iconData->szTip, "NZBGet - fetching feeds", sizeof(m_iconData->szTip));
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:805:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy(m_iconData->szTip, "NZBGet - idle", sizeof(m_iconData->szTip));
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:899: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).
				outfile.Write(appDataPath, strlen(appDataPath));
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:900: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).
				outfile.Write(p + strlen(SIGNATURE), config.Size() - 1 - (p + strlen(SIGNATURE) - config) - 1);
data/nzbget-21.1~r2311+dfsg/daemon/windows/WinConsole.cpp:900:67:  [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).
				outfile.Write(p + strlen(SIGNATURE), config.Size() - 1 - (p + strlen(SIGNATURE) - config) - 1);
data/nzbget-21.1~r2311+dfsg/lib/par2/descriptionpacket.cpp:81: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).
                 +strlen((const char*)packet->name));
data/nzbget-21.1~r2311+dfsg/lib/par2/diskfile.cpp:576:25:  [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 *work = new char[strlen(curdir) + filename.size() + 2];
data/nzbget-21.1~r2311+dfsg/lib/par2/diskfile.cpp:578: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).
  if (work[strlen(work)-1] != '/')
data/nzbget-21.1~r2311+dfsg/lib/par2/diskfile.cpp:579:5:  [1] (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 character.
    strcat(work, "/");

ANALYSIS SUMMARY:

Hits = 609
Lines analyzed = 82264 in approximately 1.82 seconds (45241 lines/second)
Physical Source Lines of Code (SLOC) = 62883
Hits@level = [0] 177 [1] 286 [2] 245 [3]  10 [4]  65 [5]   3
Hits@level+ = [0+] 786 [1+] 609 [2+] 323 [3+]  78 [4+]  68 [5+]   3
Hits/KSLOC@level+ = [0+] 12.4994 [1+] 9.68465 [2+] 5.13652 [3+] 1.2404 [4+] 1.08137 [5+] 0.0477076
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.