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/cupt-2.10.4+nmu1/cpp/common/common.hpp
Examining data/cupt-2.10.4+nmu1/cpp/common/regex.hpp
Examining data/cupt-2.10.4+nmu1/cpp/console/colorizer.cpp
Examining data/cupt-2.10.4+nmu1/cpp/console/colorizer.hpp
Examining data/cupt-2.10.4+nmu1/cpp/console/common.cpp
Examining data/cupt-2.10.4+nmu1/cpp/console/common.hpp
Examining data/cupt-2.10.4+nmu1/cpp/console/cupt.cpp
Examining data/cupt-2.10.4+nmu1/cpp/console/cupt.hpp
Examining data/cupt-2.10.4+nmu1/cpp/console/functionselectors.cpp
Examining data/cupt-2.10.4+nmu1/cpp/console/functionselectors.hpp
Examining data/cupt-2.10.4+nmu1/cpp/console/handlers/download.cpp
Examining data/cupt-2.10.4+nmu1/cpp/console/handlers/managepackages.cpp
Examining data/cupt-2.10.4+nmu1/cpp/console/handlers/misc.cpp
Examining data/cupt-2.10.4+nmu1/cpp/console/handlers/search.cpp
Examining data/cupt-2.10.4+nmu1/cpp/console/handlers/shell.cpp
Examining data/cupt-2.10.4+nmu1/cpp/console/handlers/snapshot.cpp
Examining data/cupt-2.10.4+nmu1/cpp/console/handlers/why.cpp
Examining data/cupt-2.10.4+nmu1/cpp/console/handlers.hpp
Examining data/cupt-2.10.4+nmu1/cpp/console/misc.cpp
Examining data/cupt-2.10.4+nmu1/cpp/console/misc.hpp
Examining data/cupt-2.10.4+nmu1/cpp/console/selectors.cpp
Examining data/cupt-2.10.4+nmu1/cpp/console/selectors.hpp
Examining data/cupt-2.10.4+nmu1/cpp/downloadmethods/curl.cpp
Examining data/cupt-2.10.4+nmu1/cpp/downloadmethods/debdelta.cpp
Examining data/cupt-2.10.4+nmu1/cpp/downloadmethods/file.cpp
Examining data/cupt-2.10.4+nmu1/cpp/downloadmethods/wget.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/cache/binarypackage.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/cache/binaryversion.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/cache/package.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/cache/relation.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/cache/releaseinfo.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/cache/sourcepackage.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/cache/sourceversion.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/cache/version.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/cache.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/common.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/config.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/download/manager.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/download/method.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/download/methodfactory.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/download/progress.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/download/progresses/console.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/download/uri.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/file.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/format2.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/fwd.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/hashsums.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/packagename.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/range.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/stringrange.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/system/resolver.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/system/resolvers/native.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/system/snapshots.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/system/state.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/system/worker.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/versionstring.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/cache/binarypackage.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/cache/binaryversion.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/cache/package.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/cache/relation.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/cache/sourcepackage.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/cache/sourceversion.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/cache/version.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/cache.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/common/compareversions.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/common/consumers.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/common.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/config.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/download/manager.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/download/method.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/download/methodfactory.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/download/progress.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/download/progresses/console.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/download/uri.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/file.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/hashsums.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/basepackageiterator.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/cachefiles.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/cachefiles.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/cacheimpl.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/cacheimpl.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/common.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/common.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/configparser.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/configparser.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/debdeltahelper.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/debdeltahelper.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/exceptionlessfuture.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/filesystem.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/filesystem.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/graph.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/indexofindex.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/indexofindex.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/lock.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/lock.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/logger.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/logger.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/nativeresolver/autoremovalpossibility.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/nativeresolver/autoremovalpossibility.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/nativeresolver/cowmap.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/nativeresolver/decisionfailtree.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/nativeresolver/decisionfailtree.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/nativeresolver/dependencygraph.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/nativeresolver/dependencygraph.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/nativeresolver/impl.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/nativeresolver/impl.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/nativeresolver/score.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/nativeresolver/score.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/nativeresolver/solution.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/nativeresolver/solution.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/parse.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/pininfo.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/pininfo.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/pipe.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/pipe.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/regex.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/regex.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/tagparser.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/tagparser.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/versionparse.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/versionparse.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/archives.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/archives.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/base.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/base.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/dpkg.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/dpkg.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/metadata.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/metadata.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/packages.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/packages.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/setupandpreview.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/setupandpreview.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/snapshots.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/snapshots.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/temppath.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/temppath.hpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/system/resolver.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/system/resolvers/native.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/system/snapshots.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/system/state.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/system/worker.cpp
Examining data/cupt-2.10.4+nmu1/cpp/lib/src/versionstring.cpp
Examining data/cupt-2.10.4+nmu1/cpp/platform-tests/std-function-lambda-capture.cpp
Examining data/cupt-2.10.4+nmu1/doc/examples/show-available/show-available.cpp
Examining data/cupt-2.10.4+nmu1/doc/examples/show-upgradeable/show-upgradeable.cpp

FINAL RESULTS:

data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/archives.cpp:106:27:  [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.
				auto readlinkResult = readlink(path.c_str(), &pathBuffer[0], pathMaxLength);
data/cupt-2.10.4+nmu1/cpp/console/common.cpp:27:52:  [4] (shell) system:
  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.
	return (installedInfo && installedInfo->status != system::State::InstalledRecord::Status::ConfigFiles);
data/cupt-2.10.4+nmu1/cpp/console/common.hpp:36:23:  [4] (shell) system:
  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.
using namespace cupt::system;
data/cupt-2.10.4+nmu1/cpp/console/handlers/download.cpp:170:10:  [4] (shell) system:
  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.
			if (::system(command.c_str()))
data/cupt-2.10.4+nmu1/cpp/console/handlers/download.cpp:256:21:  [4] (shell) system:
  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.
				auto result = ::system(format2("%s %s | %s",
data/cupt-2.10.4+nmu1/cpp/console/handlers/download.cpp:331:27:  [4] (shell) system:
  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.
						auto viewResult = ::system((pagerProgram + ' ' + tempFilename).c_str());
data/cupt-2.10.4+nmu1/cpp/console/handlers/managepackages.cpp:739:28:  [4] (shell) system:
  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.
				installedInfo->want == system::State::InstalledRecord::Want::Hold &&
data/cupt-2.10.4+nmu1/cpp/console/handlers/managepackages.cpp:740:30:  [4] (shell) system:
  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.
				installedInfo->status != system::State::InstalledRecord::Status::ConfigFiles)
data/cupt-2.10.4+nmu1/cpp/console/handlers/managepackages.cpp:1681: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(argv[0], argv);
data/cupt-2.10.4+nmu1/cpp/console/handlers/misc.cpp:54:21:  [4] (shell) system:
  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.
	string status = __(system::State::InstalledRecord::Status::strings[installedInfo->status].c_str());
data/cupt-2.10.4+nmu1/cpp/console/handlers/misc.cpp:55:29:  [4] (shell) system:
  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.
	if (installedInfo->want == system::State::InstalledRecord::Want::Hold)
data/cupt-2.10.4+nmu1/cpp/console/handlers/misc.cpp:737:11:  [4] (shell) system:
  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.
	return ::system(tarCommand.c_str());
data/cupt-2.10.4+nmu1/cpp/downloadmethods/debdelta.cpp:62:24:  [4] (shell) system:
  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.
		auto patchResult = ::system(patchCommand.c_str());
data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/cache.hpp:145:8:  [4] (shell) system:
  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.
	const system::State* getSystemState() const;
data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/format2.hpp:58:22:  [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.
	auto bytesWritten = snprintf(formattedBuffer, sizeof(formattedBuffer), args...);
data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/format2.hpp:69: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(dynamicBuffer, size, args...);
data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/fwd.hpp:57:11:  [4] (shell) system:
  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.
namespace system {
data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/system/resolver.hpp:29:11:  [4] (shell) system:
  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.
namespace system {
data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/system/resolvers/native.hpp:34:11:  [4] (shell) system:
  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.
namespace system {
data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/system/snapshots.hpp:34:11:  [4] (shell) system:
  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.
namespace system {
data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/system/state.hpp:36:11:  [4] (shell) system:
  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.
namespace system {
data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/system/worker.hpp:37:11:  [4] (shell) system:
  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.
namespace system {
data/cupt-2.10.4+nmu1/cpp/lib/src/cache.cpp:98:33:  [4] (shell) system:
  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.
		__impl->systemState.reset(new system::State(config, __impl));
data/cupt-2.10.4+nmu1/cpp/lib/src/cache.cpp:208:7:  [4] (shell) system:
  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.
const system::State* Cache::getSystemState() const
data/cupt-2.10.4+nmu1/cpp/lib/src/common.cpp:62:22:  [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.
	auto bytesWritten = vsnprintf(formattedBuffer, sizeof(formattedBuffer),
data/cupt-2.10.4+nmu1/cpp/lib/src/common.cpp:76: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(dynamicBuffer, size, substitutedFormat.c_str(), va);
data/cupt-2.10.4+nmu1/cpp/lib/src/download/manager.cpp:227: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(serverSocketAddress.sun_path, serverSocketPath.c_str());
data/cupt-2.10.4+nmu1/cpp/lib/src/file.cpp:158:12:  [4] (shell) popen:
  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.
		handle = popen(path.c_str(), mode+1);
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/cacheimpl.hpp:97:20:  [4] (shell) system:
  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.
	unique_ptr< const system::State > systemState;
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/common.cpp:98:17:  [4] (shell) system:
  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.
		it->second = !system(format2("dpkg-architecture -a%s -i%s",
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/nativeresolver/dependencygraph.cpp:210:10:  [4] (shell) system:
  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.
	typedef system::Resolver::RelationExpressionReason OurReason;
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/nativeresolver/dependencygraph.cpp:296:8:  [4] (shell) system:
  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.
			new system::Resolver::SynchronizationReason(versionParent->version, targetPackageName));
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/nativeresolver/dependencygraph.cpp:351:35:  [4] (shell) system:
  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.
class AnnotatedUserReason: public system::Resolver::UserReason
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/nativeresolver/dependencygraph.hpp:28:15:  [4] (shell) system:
  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.
typedef cupt::system::Resolver::Reason Reason;
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/nativeresolver/dependencygraph.hpp:29:15:  [4] (shell) system:
  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.
typedef cupt::system::Resolver::RequestImportance RequestImportance;
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/nativeresolver/score.hpp:28:7:  [4] (shell) system:
  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.
using system::Resolver;
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/nativeresolver/solution.hpp:37:17:  [4] (shell) system:
  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.
using namespace system;
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/pininfo.cpp:43:66:  [4] (shell) system:
  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.
PinInfo::PinInfo(const shared_ptr< const Config >& config, const system::State* systemState)
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/pininfo.cpp:121:30:  [4] (shell) system:
  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.
		if (installedInfo->want == system::State::InstalledRecord::Want::Hold && binaryVersion->isInstalled())
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/pininfo.hpp:52:8:  [4] (shell) system:
  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.
	const system::State* systemState;
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/pininfo.hpp:64:51:  [4] (shell) system:
  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.
	PinInfo(const shared_ptr< const Config >&, const system::State*);
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/base.cpp:113:18:  [4] (shell) system:
  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.
	auto result = ::system(command.c_str());
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/base.hpp:32:7:  [4] (shell) system:
  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.
using system::Worker;
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/base.hpp:33:7:  [4] (shell) system:
  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.
using system::Resolver;
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/base.hpp:34:7:  [4] (shell) system:
  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.
using system::State;
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/metadata.cpp:140:9:  [4] (shell) system:
  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.
		if (::system(format2("which %s >/dev/null", uncompressorName).c_str()))
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/metadata.cpp:150:33:  [4] (shell) system:
  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.
			auto uncompressingResult = ::system(format2("%s %s -c > %s",
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/metadata.cpp:460:9:  [4] (shell) system:
  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.
		if (::system(format2("cp %s %s", targetPath, (string)patchedPath).c_str()))
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/metadata.cpp:533:11:  [4] (shell) system:
  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.
				if (::system(format2("(cat %s && echo w) | (cd %s && red -s - %s >/dev/null)",
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/metadata.cpp:713:25:  [4] (shell) system:
  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.
	if (useIndexDiffs && ::system("which red >/dev/null 2>/dev/null"))
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/packages.cpp:1540:14:  [4] (shell) system:
  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.
					typedef system::State::InstalledRecord::Flag IRFlag;
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/snapshots.cpp:270:8:  [4] (shell) system:
  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.
	if (::system("which dpkg-repack >/dev/null 2>/dev/null"))
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/snapshots.cpp:274:8:  [4] (shell) system:
  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.
	if (::system("which dpkg-scanpackages >/dev/null 2>/dev/null"))
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/snapshots.hpp:28:7:  [4] (shell) system:
  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.
using system::Snapshots;
data/cupt-2.10.4+nmu1/cpp/lib/src/system/resolver.cpp:21:11:  [4] (shell) system:
  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.
namespace system {
data/cupt-2.10.4+nmu1/cpp/lib/src/system/resolvers/native.cpp:23:11:  [4] (shell) system:
  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.
namespace system {
data/cupt-2.10.4+nmu1/cpp/lib/src/system/snapshots.cpp:40:61:  [4] (shell) system:
  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.
	void loadVersionsIntoResolver(const string&, const Cache&, system::Resolver&);
data/cupt-2.10.4+nmu1/cpp/lib/src/system/snapshots.cpp:48:17:  [4] (shell) system:
  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.
		const Cache&, system::Resolver&);
data/cupt-2.10.4+nmu1/cpp/lib/src/system/snapshots.cpp:115:23:  [4] (shell) system:
  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.
		const Cache& cache, system::Resolver& resolver)
data/cupt-2.10.4+nmu1/cpp/lib/src/system/snapshots.cpp:156:23:  [4] (shell) system:
  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.
		const Cache& cache, system::Resolver& resolver)
data/cupt-2.10.4+nmu1/cpp/lib/src/system/snapshots.cpp:161:57:  [4] (shell) system:
  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.
		auto snapshotPackagesPath = snapshotDirectory + '/' + system::Snapshots::installedPackageNamesFilename;
data/cupt-2.10.4+nmu1/cpp/lib/src/system/snapshots.cpp:200:11:  [4] (shell) system:
  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.
namespace system
data/cupt-2.10.4+nmu1/cpp/lib/src/system/state.cpp:38:9:  [4] (shell) system:
  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.
typedef system::State::InstalledRecord InstalledRecord;
data/cupt-2.10.4+nmu1/cpp/lib/src/system/state.cpp:295:11:  [4] (shell) system:
  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.
namespace system {
data/cupt-2.10.4+nmu1/cpp/lib/src/system/worker.cpp:40:11:  [4] (shell) system:
  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.
namespace system {
data/cupt-2.10.4+nmu1/cpp/console/colorizer.cpp:30:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		const char* term = getenv("TERM");
data/cupt-2.10.4+nmu1/cpp/lib/src/config.cpp:324:24:  [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* envPath = getenv(env);
data/cupt-2.10.4+nmu1/cpp/lib/src/download/manager.cpp:208:23:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
	auto temporaryName = tempnam(NULL, "cupt");
data/cupt-2.10.4+nmu1/cpp/console/handlers/download.cpp:305:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
					if (mkstemp(tempFilename) == -1)
data/cupt-2.10.4+nmu1/cpp/console/handlers/managepackages.cpp:1678: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(argv[i], "full-upgrade");
data/cupt-2.10.4+nmu1/cpp/downloadmethods/curl.cpp:35:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char __error_buffer[CURL_ERROR_SIZE];
data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/format2.hpp:56:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char formattedBuffer[4096];
data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/format2.hpp:109:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errorBuffer[255] = "?";
data/cupt-2.10.4+nmu1/cpp/lib/src/common.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 errorBuffer[255] = { '?', '\0' };
data/cupt-2.10.4+nmu1/cpp/lib/src/common.cpp:55:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char formattedBuffer[4096];
data/cupt-2.10.4+nmu1/cpp/lib/src/common.cpp:168: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[32];
data/cupt-2.10.4+nmu1/cpp/lib/src/common.cpp:171: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(buf, "%uB", (unsigned int)bytes);
data/cupt-2.10.4+nmu1/cpp/lib/src/common.cpp:175: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(buf, "%.1fKiB", float(bytes) / 1024);
data/cupt-2.10.4+nmu1/cpp/lib/src/common.cpp:179: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(buf, "%.0fKiB", float(bytes) / 1024);
data/cupt-2.10.4+nmu1/cpp/lib/src/common.cpp:183: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(buf, "%.1fMiB", float(bytes) / 1024 / 1024);
data/cupt-2.10.4+nmu1/cpp/lib/src/common.cpp:187: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(buf, "%.0fMiB", float(bytes) / 1024 / 1024);
data/cupt-2.10.4+nmu1/cpp/lib/src/common.cpp:191: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(buf, "%.1fGiB", float(bytes) / 1024 / 1024 / 1024);
data/cupt-2.10.4+nmu1/cpp/lib/src/download/manager.cpp:115: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[0xFFFF]; // must be enough for reading max(uint16) bytes
data/cupt-2.10.4+nmu1/cpp/lib/src/file.cpp:113: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(p_storage, p_dataBegin, dataLength);
data/cupt-2.10.4+nmu1/cpp/lib/src/file.cpp:163:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		handle = fopen(path.c_str(), mode);
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/common.cpp: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 buf[16] = {0};
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/common.cpp:112: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(buf, input.first, inputLength);
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/indexofindex.cpp:237:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[sizeof(value)*2 + 1];
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/indexofindex.cpp:239:16:  [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.
	file.put(buf, sprintf(buf, "%x", value));
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/logger.cpp:69: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 dateTime[10 + 1 + 8 + 1]; // "2011-05-20 12:34:56"
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/base.cpp:149: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 unused[1024];
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/snapshots.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 timeBuf[128];
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/snapshots.cpp:339:29:  [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).
		auto currentDirectoryFd = open(".", O_RDONLY);
data/cupt-2.10.4+nmu1/cpp/console/handlers/managepackages.cpp:377:57:  [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.
			if (getOriginalVersionString(version->versionString).equal(targetVersionString))
data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/stringrange.hpp:62:7:  [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.
	bool equal(StringRange other) const
data/cupt-2.10.4+nmu1/cpp/lib/include/cupt/stringrange.hpp:65:10:  [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(begin(), end(), other.begin());
data/cupt-2.10.4+nmu1/cpp/lib/src/cache/package.cpp:117:66:  [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.
				if (!getOriginalVersionString(presentVersion->versionString).equal(parsedVersionString))
data/cupt-2.10.4+nmu1/cpp/lib/src/download/manager.cpp:96:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	auto readResult = read(socket, &len, sizeof(len));
data/cupt-2.10.4+nmu1/cpp/lib/src/download/manager.cpp:116:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		readResult = read(socket, buf, len);
data/cupt-2.10.4+nmu1/cpp/lib/src/file.cpp:70:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		auto readResult = read(p_fd, p_dataEnd, min(freeSpaceLength, p_readChunkSize));
data/cupt-2.10.4+nmu1/cpp/lib/src/file.cpp:153: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(mode) != 2)
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/cacheimpl.cpp:811:62:  [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.
			if (getOriginalVersionString(otherVersion->versionString).equal(
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/cacheimpl.cpp:894:16:  [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.
		if (!tagName.equal("Package", 7))
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/cacheimpl.cpp:906:16:  [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.
			if (tagName.equal(BUFFER_AND_SIZE("Auto-Installed")))
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/cacheimpl.cpp:908:18:  [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.
				if (tagValue.equal(BUFFER_AND_SIZE("1")))
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/cacheimpl.cpp:913:24:  [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.
				else if (!tagValue.equal(BUFFER_AND_SIZE("0")))
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/configparser.cpp:220: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).
	ssize_t length = strlen(str);
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/indexofindex.cpp:114:16:  [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.
			if (tagName.equal(BUFFER_AND_SIZE("Description-md5")))
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/nativeresolver/dependencygraph.cpp:684:58:  [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.
				if (getOriginalVersionString(version->versionString).equal(
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/nativeresolver/dependencygraph.cpp:687:15:  [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.
					if (std::equal(version->relations,
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/tagparser.hpp:41: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.
		bool equal(const char* buf, size_t size)
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/versionparse.cpp:37:16:  [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.
			if (tagName.equal(BUFFER_AND_SIZE( #tagNameParam ))) \
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/versionparse.cpp:47:17:  [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.
			if (tagValue.equal(BUFFER_AND_SIZE("required"))) \
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/versionparse.cpp:51:22:  [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.
			else if (tagValue.equal(BUFFER_AND_SIZE("important"))) \
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/versionparse.cpp:55:22:  [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.
			else if (tagValue.equal(BUFFER_AND_SIZE("standard"))) \
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/versionparse.cpp:59:22:  [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.
			else if (tagValue.equal(BUFFER_AND_SIZE("optional"))) \
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/versionparse.cpp:63:22:  [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.
			else if (tagValue.equal(BUFFER_AND_SIZE("extra"))) \
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/versionparse.cpp:77:18:  [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.
				if (!tagName.equal(BUFFER_AND_SIZE("Package")) && !tagName.equal(BUFFER_AND_SIZE("Status"))) \
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/versionparse.cpp:77:64:  [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.
				if (!tagName.equal(BUFFER_AND_SIZE("Package")) && !tagName.equal(BUFFER_AND_SIZE("Status"))) \
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/versionparse.cpp:344:16:  [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.
			if (tagName.equal(BUFFER_AND_SIZE("Priority")) && tagValue.equal(BUFFER_AND_SIZE("source")))
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/versionparse.cpp:344:63:  [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.
			if (tagName.equal(BUFFER_AND_SIZE("Priority")) && tagValue.equal(BUFFER_AND_SIZE("source")))
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/base.cpp:49:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	__umask = umask(0022);
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/base.cpp:58:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(__umask);
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/base.cpp:150:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (read(fd, unused, sizeof(unused))) {};
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/metadata.cpp:408:32:  [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.
				bool isHistory = fieldName.equal(BUFFER_AND_SIZE("SHA1-History"));
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/metadata.cpp:409:37:  [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.
				bool isDownloadInfo = fieldName.equal(BUFFER_AND_SIZE("SHA1-Download"));
data/cupt-2.10.4+nmu1/cpp/lib/src/internal/worker/metadata.cpp:435:24:  [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.
				else if (fieldName.equal(BUFFER_AND_SIZE("SHA1-Current")))
data/cupt-2.10.4+nmu1/cpp/lib/src/system/snapshots.cpp:146:65:  [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.
		if (getOriginalVersionString(installedVersion->versionString).equal(version->versionString))
data/cupt-2.10.4+nmu1/cpp/lib/src/system/state.cpp:65:44:  [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.
#define CHECK_WANT(str, value) if (current.equal(BUFFER_AND_SIZE(str))) { result.want = InstalledRecord::Want:: value; } else
data/cupt-2.10.4+nmu1/cpp/lib/src/system/state.cpp:87:44:  [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.
#define CHECK_FLAG(str, value) if (current.equal(BUFFER_AND_SIZE(str))) { result.flag = InstalledRecord::Flag:: value; } else
data/cupt-2.10.4+nmu1/cpp/lib/src/system/state.cpp:103:46:  [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.
#define CHECK_STATUS(str, value) if (current.equal(BUFFER_AND_SIZE(str))) { result.status = InstalledRecord::Status:: value; } else
data/cupt-2.10.4+nmu1/cpp/lib/src/system/state.cpp:199:18:  [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.
		if (!p_tagName.equal(BUFFER_AND_SIZE("Package")) || empty(p_tagValue))
data/cupt-2.10.4+nmu1/cpp/lib/src/system/state.cpp:211:47:  [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.
			if (!parsedTagsByIndex[index] && p_tagName.equal(BUFFER_AND_SIZE(str))) \

ANALYSIS SUMMARY:

Hits = 133
Lines analyzed = 31647 in approximately 0.86 seconds (36889 lines/second)
Physical Source Lines of Code (SLOC) = 23642
Hits@level = [0]   1 [1]  40 [2]  25 [3]   3 [4]  64 [5]   1
Hits@level+ = [0+] 134 [1+] 133 [2+]  93 [3+]  68 [4+]  65 [5+]   1
Hits/KSLOC@level+ = [0+] 5.66788 [1+] 5.62558 [2+] 3.93368 [3+] 2.87624 [4+] 2.74934 [5+] 0.0422976
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.