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/newsboat-2.21/3rd-party/catch.hpp
Examining data/newsboat-2.21/3rd-party/expected.hpp
Examining data/newsboat-2.21/3rd-party/json.hpp
Examining data/newsboat-2.21/3rd-party/optional.hpp
Examining data/newsboat-2.21/config.h
Examining data/newsboat-2.21/doc/gen-example-config.cpp
Examining data/newsboat-2.21/doc/generate.cpp
Examining data/newsboat-2.21/doc/generate2.cpp
Examining data/newsboat-2.21/doc/split.h
Examining data/newsboat-2.21/filter/FilterParser.cpp
Examining data/newsboat-2.21/filter/FilterParser.h
Examining data/newsboat-2.21/filter/Parser.cpp
Examining data/newsboat-2.21/filter/Parser.h
Examining data/newsboat-2.21/filter/Scanner.cpp
Examining data/newsboat-2.21/filter/Scanner.h
Examining data/newsboat-2.21/include/cache.h
Examining data/newsboat-2.21/include/cliargsparser.h
Examining data/newsboat-2.21/include/colormanager.h
Examining data/newsboat-2.21/include/configactionhandler.h
Examining data/newsboat-2.21/include/configcontainer.h
Examining data/newsboat-2.21/include/configdata.h
Examining data/newsboat-2.21/include/configexception.h
Examining data/newsboat-2.21/include/confighandlerexception.h
Examining data/newsboat-2.21/include/configparser.h
Examining data/newsboat-2.21/include/configpaths.h
Examining data/newsboat-2.21/include/controller.h
Examining data/newsboat-2.21/include/curlhandle.h
Examining data/newsboat-2.21/include/dbexception.h
Examining data/newsboat-2.21/include/dialogsformaction.h
Examining data/newsboat-2.21/include/dirbrowserformaction.h
Examining data/newsboat-2.21/include/download.h
Examining data/newsboat-2.21/include/downloadthread.h
Examining data/newsboat-2.21/include/exception.h
Examining data/newsboat-2.21/include/feedcontainer.h
Examining data/newsboat-2.21/include/feedhqapi.h
Examining data/newsboat-2.21/include/feedhqurlreader.h
Examining data/newsboat-2.21/include/feedlistformaction.h
Examining data/newsboat-2.21/include/filebrowserformaction.h
Examining data/newsboat-2.21/include/fileurlreader.h
Examining data/newsboat-2.21/include/filtercontainer.h
Examining data/newsboat-2.21/include/fmtstrformatter.h
Examining data/newsboat-2.21/include/formaction.h
Examining data/newsboat-2.21/include/fslock.h
Examining data/newsboat-2.21/include/globals.h
Examining data/newsboat-2.21/include/helpformaction.h
Examining data/newsboat-2.21/include/history.h
Examining data/newsboat-2.21/include/htmlrenderer.h
Examining data/newsboat-2.21/include/inoreaderapi.h
Examining data/newsboat-2.21/include/inoreaderurlreader.h
Examining data/newsboat-2.21/include/itemlistformaction.h
Examining data/newsboat-2.21/include/itemrenderer.h
Examining data/newsboat-2.21/include/itemviewformaction.h
Examining data/newsboat-2.21/include/keymap.h
Examining data/newsboat-2.21/include/listformaction.h
Examining data/newsboat-2.21/include/listformatter.h
Examining data/newsboat-2.21/include/listwidget.h
Examining data/newsboat-2.21/include/logger.h
Examining data/newsboat-2.21/include/matchable.h
Examining data/newsboat-2.21/include/matcher.h
Examining data/newsboat-2.21/include/matcherexception.h
Examining data/newsboat-2.21/include/minifluxapi.h
Examining data/newsboat-2.21/include/minifluxurlreader.h
Examining data/newsboat-2.21/include/newsblurapi.h
Examining data/newsboat-2.21/include/newsblururlreader.h
Examining data/newsboat-2.21/include/nullconfigactionhandler.h
Examining data/newsboat-2.21/include/ocnewsapi.h
Examining data/newsboat-2.21/include/ocnewsurlreader.h
Examining data/newsboat-2.21/include/oldreaderapi.h
Examining data/newsboat-2.21/include/oldreaderurlreader.h
Examining data/newsboat-2.21/include/opml.h
Examining data/newsboat-2.21/include/opmlurlreader.h
Examining data/newsboat-2.21/include/pbcontroller.h
Examining data/newsboat-2.21/include/pbview.h
Examining data/newsboat-2.21/include/poddlthread.h
Examining data/newsboat-2.21/include/queueloader.h
Examining data/newsboat-2.21/include/queuemanager.h
Examining data/newsboat-2.21/include/regexmanager.h
Examining data/newsboat-2.21/include/regexowner.h
Examining data/newsboat-2.21/include/reloader.h
Examining data/newsboat-2.21/include/reloadrangethread.h
Examining data/newsboat-2.21/include/reloadthread.h
Examining data/newsboat-2.21/include/remoteapi.h
Examining data/newsboat-2.21/include/rs_utils.h
Examining data/newsboat-2.21/include/rssfeed.h
Examining data/newsboat-2.21/include/rssignores.h
Examining data/newsboat-2.21/include/rssitem.h
Examining data/newsboat-2.21/include/rssparser.h
Examining data/newsboat-2.21/include/ruststring.h
Examining data/newsboat-2.21/include/scopemeasure.h
Examining data/newsboat-2.21/include/selectformaction.h
Examining data/newsboat-2.21/include/stflpp.h
Examining data/newsboat-2.21/include/strprintf.h
Examining data/newsboat-2.21/include/tagsouppullparser.h
Examining data/newsboat-2.21/include/textformatter.h
Examining data/newsboat-2.21/include/textviewwidget.h
Examining data/newsboat-2.21/include/ttrssapi.h
Examining data/newsboat-2.21/include/ttrssurlreader.h
Examining data/newsboat-2.21/include/urlreader.h
Examining data/newsboat-2.21/include/urlviewformaction.h
Examining data/newsboat-2.21/include/utils.h
Examining data/newsboat-2.21/include/view.h
Examining data/newsboat-2.21/include/xmlexception.h
Examining data/newsboat-2.21/newsboat.cpp
Examining data/newsboat-2.21/podboat.cpp
Examining data/newsboat-2.21/rss/atomparser.cpp
Examining data/newsboat-2.21/rss/atomparser.h
Examining data/newsboat-2.21/rss/exception.cpp
Examining data/newsboat-2.21/rss/exception.h
Examining data/newsboat-2.21/rss/feed.h
Examining data/newsboat-2.21/rss/item.h
Examining data/newsboat-2.21/rss/parser.cpp
Examining data/newsboat-2.21/rss/parser.h
Examining data/newsboat-2.21/rss/rss09xparser.cpp
Examining data/newsboat-2.21/rss/rss09xparser.h
Examining data/newsboat-2.21/rss/rss10parser.cpp
Examining data/newsboat-2.21/rss/rss10parser.h
Examining data/newsboat-2.21/rss/rss20parser.cpp
Examining data/newsboat-2.21/rss/rss20parser.h
Examining data/newsboat-2.21/rss/rssparser.cpp
Examining data/newsboat-2.21/rss/rssparser.h
Examining data/newsboat-2.21/rss/rssparserfactory.cpp
Examining data/newsboat-2.21/rss/rssparserfactory.h
Examining data/newsboat-2.21/rss/rsspp_uris.h
Examining data/newsboat-2.21/src/cache.cpp
Examining data/newsboat-2.21/src/cliargsparser.cpp
Examining data/newsboat-2.21/src/colormanager.cpp
Examining data/newsboat-2.21/src/configactionhandler.cpp
Examining data/newsboat-2.21/src/configcontainer.cpp
Examining data/newsboat-2.21/src/configdata.cpp
Examining data/newsboat-2.21/src/confighandlerexception.cpp
Examining data/newsboat-2.21/src/configparser.cpp
Examining data/newsboat-2.21/src/configpaths.cpp
Examining data/newsboat-2.21/src/controller.cpp
Examining data/newsboat-2.21/src/dialogsformaction.cpp
Examining data/newsboat-2.21/src/dirbrowserformaction.cpp
Examining data/newsboat-2.21/src/download.cpp
Examining data/newsboat-2.21/src/downloadthread.cpp
Examining data/newsboat-2.21/src/exception.cpp
Examining data/newsboat-2.21/src/feedcontainer.cpp
Examining data/newsboat-2.21/src/feedhqapi.cpp
Examining data/newsboat-2.21/src/feedhqurlreader.cpp
Examining data/newsboat-2.21/src/feedlistformaction.cpp
Examining data/newsboat-2.21/src/filebrowserformaction.cpp
Examining data/newsboat-2.21/src/fileurlreader.cpp
Examining data/newsboat-2.21/src/filtercontainer.cpp
Examining data/newsboat-2.21/src/fmtstrformatter.cpp
Examining data/newsboat-2.21/src/formaction.cpp
Examining data/newsboat-2.21/src/fslock.cpp
Examining data/newsboat-2.21/src/helpformaction.cpp
Examining data/newsboat-2.21/src/history.cpp
Examining data/newsboat-2.21/src/htmlrenderer.cpp
Examining data/newsboat-2.21/src/inoreaderapi.cpp
Examining data/newsboat-2.21/src/inoreaderurlreader.cpp
Examining data/newsboat-2.21/src/itemlistformaction.cpp
Examining data/newsboat-2.21/src/itemrenderer.cpp
Examining data/newsboat-2.21/src/itemviewformaction.cpp
Examining data/newsboat-2.21/src/keymap.cpp
Examining data/newsboat-2.21/src/listformaction.cpp
Examining data/newsboat-2.21/src/listformatter.cpp
Examining data/newsboat-2.21/src/listwidget.cpp
Examining data/newsboat-2.21/src/logger.cpp
Examining data/newsboat-2.21/src/matcher.cpp
Examining data/newsboat-2.21/src/matcherexception.cpp
Examining data/newsboat-2.21/src/minifluxapi.cpp
Examining data/newsboat-2.21/src/minifluxurlreader.cpp
Examining data/newsboat-2.21/src/newsblurapi.cpp
Examining data/newsboat-2.21/src/newsblururlreader.cpp
Examining data/newsboat-2.21/src/ocnewsapi.cpp
Examining data/newsboat-2.21/src/ocnewsurlreader.cpp
Examining data/newsboat-2.21/src/oldreaderapi.cpp
Examining data/newsboat-2.21/src/oldreaderurlreader.cpp
Examining data/newsboat-2.21/src/opml.cpp
Examining data/newsboat-2.21/src/opmlurlreader.cpp
Examining data/newsboat-2.21/src/pbcontroller.cpp
Examining data/newsboat-2.21/src/pbview.cpp
Examining data/newsboat-2.21/src/poddlthread.cpp
Examining data/newsboat-2.21/src/queueloader.cpp
Examining data/newsboat-2.21/src/queuemanager.cpp
Examining data/newsboat-2.21/src/regexmanager.cpp
Examining data/newsboat-2.21/src/regexowner.cpp
Examining data/newsboat-2.21/src/reloader.cpp
Examining data/newsboat-2.21/src/reloadrangethread.cpp
Examining data/newsboat-2.21/src/reloadthread.cpp
Examining data/newsboat-2.21/src/remoteapi.cpp
Examining data/newsboat-2.21/src/rssfeed.cpp
Examining data/newsboat-2.21/src/rssignores.cpp
Examining data/newsboat-2.21/src/rssitem.cpp
Examining data/newsboat-2.21/src/rssparser.cpp
Examining data/newsboat-2.21/src/ruststring.cpp
Examining data/newsboat-2.21/src/scopemeasure.cpp
Examining data/newsboat-2.21/src/selectformaction.cpp
Examining data/newsboat-2.21/src/stflpp.cpp
Examining data/newsboat-2.21/src/strprintf.cpp
Examining data/newsboat-2.21/src/tagsouppullparser.cpp
Examining data/newsboat-2.21/src/textformatter.cpp
Examining data/newsboat-2.21/src/textviewwidget.cpp
Examining data/newsboat-2.21/src/ttrssapi.cpp
Examining data/newsboat-2.21/src/ttrssurlreader.cpp
Examining data/newsboat-2.21/src/urlreader.cpp
Examining data/newsboat-2.21/src/urlviewformaction.cpp
Examining data/newsboat-2.21/src/utils.cpp
Examining data/newsboat-2.21/src/view.cpp
Examining data/newsboat-2.21/test/cache.cpp
Examining data/newsboat-2.21/test/cliargsparser.cpp
Examining data/newsboat-2.21/test/colormanager.cpp
Examining data/newsboat-2.21/test/configcontainer.cpp
Examining data/newsboat-2.21/test/configdata.cpp
Examining data/newsboat-2.21/test/configparser.cpp
Examining data/newsboat-2.21/test/configpaths.cpp
Examining data/newsboat-2.21/test/download.cpp
Examining data/newsboat-2.21/test/feedcontainer.cpp
Examining data/newsboat-2.21/test/fileurlreader.cpp
Examining data/newsboat-2.21/test/filtercontainer.cpp
Examining data/newsboat-2.21/test/filterparser.cpp
Examining data/newsboat-2.21/test/fmtstrformatter.cpp
Examining data/newsboat-2.21/test/fslock.cpp
Examining data/newsboat-2.21/test/history.cpp
Examining data/newsboat-2.21/test/htmlrenderer.cpp
Examining data/newsboat-2.21/test/itemlistformaction.cpp
Examining data/newsboat-2.21/test/itemrenderer.cpp
Examining data/newsboat-2.21/test/keymap.cpp
Examining data/newsboat-2.21/test/listformatter.cpp
Examining data/newsboat-2.21/test/matcher.cpp
Examining data/newsboat-2.21/test/matcherexception.cpp
Examining data/newsboat-2.21/test/opml.cpp
Examining data/newsboat-2.21/test/opmlurlreader.cpp
Examining data/newsboat-2.21/test/queueloader.cpp
Examining data/newsboat-2.21/test/regexmanager.cpp
Examining data/newsboat-2.21/test/regexowner.cpp
Examining data/newsboat-2.21/test/remoteapi.cpp
Examining data/newsboat-2.21/test/rssfeed.cpp
Examining data/newsboat-2.21/test/rssignores.cpp
Examining data/newsboat-2.21/test/rssitem.cpp
Examining data/newsboat-2.21/test/rsspp_parser.cpp
Examining data/newsboat-2.21/test/rsspp_rssparser.cpp
Examining data/newsboat-2.21/test/ruststring.cpp
Examining data/newsboat-2.21/test/scopemeasure.cpp
Examining data/newsboat-2.21/test/strprintf.cpp
Examining data/newsboat-2.21/test/tagsouppullparser.cpp
Examining data/newsboat-2.21/test/test-helpers/chdir.cpp
Examining data/newsboat-2.21/test/test-helpers/chdir.h
Examining data/newsboat-2.21/test/test-helpers/chmod.cpp
Examining data/newsboat-2.21/test/test-helpers/chmod.h
Examining data/newsboat-2.21/test/test-helpers/envvar.cpp
Examining data/newsboat-2.21/test/test-helpers/envvar.h
Examining data/newsboat-2.21/test/test-helpers/exceptionwithmsg.h
Examining data/newsboat-2.21/test/test-helpers/loggerresetter.cpp
Examining data/newsboat-2.21/test/test-helpers/loggerresetter.h
Examining data/newsboat-2.21/test/test-helpers/maintempdir.cpp
Examining data/newsboat-2.21/test/test-helpers/maintempdir.h
Examining data/newsboat-2.21/test/test-helpers/misc.cpp
Examining data/newsboat-2.21/test/test-helpers/misc.h
Examining data/newsboat-2.21/test/test-helpers/opts.cpp
Examining data/newsboat-2.21/test/test-helpers/opts.h
Examining data/newsboat-2.21/test/test-helpers/stringmaker/optional.h
Examining data/newsboat-2.21/test/test-helpers/tempdir.cpp
Examining data/newsboat-2.21/test/test-helpers/tempdir.h
Examining data/newsboat-2.21/test/test-helpers/tempfile.cpp
Examining data/newsboat-2.21/test/test-helpers/tempfile.h
Examining data/newsboat-2.21/test/test.cpp
Examining data/newsboat-2.21/test/textformatter.cpp
Examining data/newsboat-2.21/test/utils.cpp

FINAL RESULTS:

data/newsboat-2.21/test/test-helpers/chmod.cpp:30:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if (0 != ::chmod(m_path.c_str(), newMode)) {
data/newsboat-2.21/test/test-helpers/chmod.cpp:37:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if (0 != ::chmod(m_path.c_str(), m_originalMode)) {
data/newsboat-2.21/3rd-party/json.hpp:1326:86:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __declspec(vaformat(printf,string_idx,first_to_check))
data/newsboat-2.21/3rd-party/json.hpp:7329:23:  [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.
                (std::snprintf)(cs.data(), cs.size(), "<U+%.4X>", static_cast<unsigned char>(c));
data/newsboat-2.21/3rd-party/json.hpp:7956:23:  [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.
                (std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast<unsigned char>(element_type));
data/newsboat-2.21/3rd-party/json.hpp:10040:15:  [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.
        (std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast<unsigned char>(current));
data/newsboat-2.21/3rd-party/json.hpp:15894:43:  [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.
                                    (std::snprintf)(string_buffer.data() + bytes, 7, "\\u%04x",
data/newsboat-2.21/3rd-party/json.hpp:15900:43:  [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.
                                    (std::snprintf)(string_buffer.data() + bytes, 13, "\\u%04x\\u%04x",
data/newsboat-2.21/3rd-party/json.hpp:15938:35:  [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.
                            (std::snprintf)(&sn[0], sn.size(), "%.2X", byte);
data/newsboat-2.21/3rd-party/json.hpp:16032:27:  [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.
                    (std::snprintf)(&sn[0], sn.size(), "%.2X", static_cast<std::uint8_t>(s.back()));
data/newsboat-2.21/3rd-party/json.hpp:16234:36:  [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.
        std::ptrdiff_t len = (std::snprintf)(number_buffer.data(), number_buffer.size(), "%.*g", d, x);
data/newsboat-2.21/filter/Scanner.cpp:88:15:  [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.
	if (data1) { wcscpy(data, data1); }
data/newsboat-2.21/filter/Scanner.cpp:89:15:  [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.
	if (data2) { wcscpy(data + data1Len, data2); }
data/newsboat-2.21/filter/Scanner.h:26:23:  [4] (buffer) swprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define coco_swprintf swprintf
data/newsboat-2.21/include/strprintf.h:108: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(buffer,
data/newsboat-2.21/include/strprintf.h:123:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(
data/newsboat-2.21/src/itemlistformaction.cpp:796:14:  [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.
			FILE* f = popen(cmd.c_str(), "w");
data/newsboat-2.21/src/itemviewformaction.cpp:570:13:  [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.
		FILE* f = popen(cmd.c_str(), "w");
data/newsboat-2.21/src/pbcontroller.cpp:78:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		0 == access(xdg_config_dir.c_str(), R_OK | X_OK);
data/newsboat-2.21/src/queueloader.cpp:150:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
					if (access(fn.c_str(), F_OK) == 0) {
data/newsboat-2.21/src/queueloader.cpp:178:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
						access((fn +
data/newsboat-2.21/src/remoteapi.cpp:78:23:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
			pass = std::string(getpass(pass_prompt.c_str()));
data/newsboat-2.21/src/strprintf.cpp:20: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(buffer, sizeof(buffer), format.c_str(), "");
data/newsboat-2.21/src/strprintf.cpp:25: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(buf.data(), len, format.c_str(), "");
data/newsboat-2.21/test/configpaths.cpp:209:35:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			const auto dir_exists = 0 == ::access(dir.c_str(), R_OK | X_OK);
data/newsboat-2.21/test/configpaths.cpp:877:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	REQUIRE_FALSE(0 == ::access((config_dir + "config").c_str(), R_OK));
data/newsboat-2.21/test/configpaths.cpp:878:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	REQUIRE_FALSE(0 == ::access((config_dir + "urls").c_str(), R_OK));
data/newsboat-2.21/test/configpaths.cpp:880:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	REQUIRE_FALSE(0 == ::access((data_dir + "cache.db").c_str(), R_OK));
data/newsboat-2.21/test/configpaths.cpp:881:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	REQUIRE_FALSE(0 == ::access((data_dir + "queue").c_str(), R_OK));
data/newsboat-2.21/test/configpaths.cpp:882:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	REQUIRE_FALSE(0 == ::access((data_dir + "history.search").c_str(), R_OK));
data/newsboat-2.21/test/configpaths.cpp:883:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	REQUIRE_FALSE(0 == ::access((data_dir + "history.cmdline").c_str(), R_OK));
data/newsboat-2.21/test/configpaths.cpp:1233:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	REQUIRE_FALSE(0 == ::access((dotdir + "config").c_str(), R_OK));
data/newsboat-2.21/test/configpaths.cpp:1234:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	REQUIRE_FALSE(0 == ::access((dotdir + "urls").c_str(), R_OK));
data/newsboat-2.21/test/configpaths.cpp:1236:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	REQUIRE_FALSE(0 == ::access((dotdir + "cache.db").c_str(), R_OK));
data/newsboat-2.21/test/configpaths.cpp:1237:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	REQUIRE_FALSE(0 == ::access((dotdir + "queue").c_str(), R_OK));
data/newsboat-2.21/test/configpaths.cpp:1238:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	REQUIRE_FALSE(0 == ::access((dotdir + "history.search").c_str(), R_OK));
data/newsboat-2.21/test/configpaths.cpp:1239:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	REQUIRE_FALSE(0 == ::access((dotdir + "history.cmdline").c_str(), R_OK));
data/newsboat-2.21/test/fslock.cpp:138:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		REQUIRE(0 == ::access(lock_location.get_path().c_str(), F_OK));
data/newsboat-2.21/test/fslock.cpp:148:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		REQUIRE(0 == ::access(lock_location.get_path().c_str(), F_OK));
data/newsboat-2.21/test/fslock.cpp:150:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		REQUIRE(0 != ::access(lock_location.get_path().c_str(), F_OK));
data/newsboat-2.21/test/fslock.cpp:151:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		REQUIRE(0 == ::access(new_lock_location.get_path().c_str(), F_OK));
data/newsboat-2.21/test/history.cpp:53:24:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		REQUIRE_FALSE(0 == ::access(filepath.c_str(), R_OK | W_OK));
data/newsboat-2.21/test/history.cpp:58:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		REQUIRE(0 == ::access(filepath.c_str(), R_OK | W_OK));
data/newsboat-2.21/test/history.cpp:87:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		REQUIRE(0 == ::access(filepath.c_str(), R_OK | W_OK));
data/newsboat-2.21/test/test-helpers/tempdir.cpp:49:5:  [4] (shell) execlp:
  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.
		::execlp("rm", "rm", "-rf", dirpath.c_str(), (char*)nullptr);
data/newsboat-2.21/test/utils.cpp:1473:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		REQUIRE(::access(path.c_str(), R_OK | X_OK) == 0);
data/newsboat-2.21/test/utils.cpp:1562:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		REQUIRE(::access(path.c_str(), R_OK | X_OK) == 0);
data/newsboat-2.21/3rd-party/catch.hpp:4653:1:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
random(T a, T b) {
data/newsboat-2.21/3rd-party/catch.hpp:4662:1:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
random(T a, T b) {
data/newsboat-2.21/3rd-party/catch.hpp:13057:18:  [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(config.rngSeed());
data/newsboat-2.21/rss/parser.cpp:160:33:  [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* curl_ca_bundle = ::getenv("CURL_CA_BUNDLE");
data/newsboat-2.21/src/controller.cpp:753:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	editor = getenv("VISUAL");
data/newsboat-2.21/src/controller.cpp:755:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		editor = getenv("EDITOR");
data/newsboat-2.21/src/controller.cpp:805:17:  [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* tmpdir = getenv("TMPDIR");
data/newsboat-2.21/src/pbcontroller.cpp:51:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env_xdg_config = ::getenv("XDG_CONFIG_HOME");
data/newsboat-2.21/src/pbcontroller.cpp:60:19:  [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.
	env_xdg_data = ::getenv("XDG_DATA_HOME");
data/newsboat-2.21/src/pbcontroller.cpp:139:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (!(cfgdir = ::getenv("HOME"))) {
data/newsboat-2.21/src/pbcontroller.cpp:206:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = ::getopt_long(argc, argv, getopt_str, longopts, nullptr)) !=
data/newsboat-2.21/src/pbview.cpp:37:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("ESCDELAY") == nullptr) {
data/newsboat-2.21/src/utils.cpp:791:33:  [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* curl_ca_bundle = ::getenv("CURL_CA_BUNDLE");
data/newsboat-2.21/src/view.cpp:74:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("ESCDELAY") == nullptr) {
data/newsboat-2.21/src/view.cpp:329: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.
		} else if ((env_pager = getenv("PAGER")) != nullptr) {
data/newsboat-2.21/test/configcontainer.cpp:37:33:  [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.
		std::string cachefilecomp = ::getenv("HOME");
data/newsboat-2.21/test/test-helpers/envvar.cpp:8: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* original = ::getenv(name.c_str());
data/newsboat-2.21/test/test-helpers/envvar.cpp:55:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		REQUIRE(::getenv(var) == nullptr);
data/newsboat-2.21/test/test-helpers/envvar.cpp:63: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.
	REQUIRE(expected == ::getenv(var));
data/newsboat-2.21/test/test-helpers/envvar.cpp:67:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		REQUIRE(expected == ::getenv(var));
data/newsboat-2.21/test/test-helpers/envvar.cpp:72:31:  [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.
		REQUIRE_FALSE(expected == ::getenv(var));
data/newsboat-2.21/test/test-helpers/envvar.cpp:75: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.
	REQUIRE(expected == ::getenv(var));
data/newsboat-2.21/test/test-helpers/envvar.cpp:86:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		REQUIRE(::getenv(var) == nullptr);
data/newsboat-2.21/test/test-helpers/envvar.cpp:94:30:  [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.
	REQUIRE_FALSE(expected == ::getenv(var));
data/newsboat-2.21/test/test-helpers/envvar.cpp:97: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.
	REQUIRE(expected == ::getenv(var));
data/newsboat-2.21/test/test-helpers/envvar.cpp:107:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		REQUIRE(::getenv(var) == nullptr);
data/newsboat-2.21/test/test-helpers/envvar.cpp:114: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.
	REQUIRE(expected == ::getenv(var));
data/newsboat-2.21/test/test-helpers/envvar.cpp:121: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.
	REQUIRE(expected == ::getenv(var));
data/newsboat-2.21/test/test-helpers/envvar.cpp:133:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		REQUIRE(::getenv(var) == nullptr);
data/newsboat-2.21/test/test-helpers/envvar.cpp:153:68:  [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.
			valueChanged = new_value.has_value() && (new_value.value() == ::getenv(var));
data/newsboat-2.21/test/test-helpers/envvar.cpp:204:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		REQUIRE(::getenv(var) == nullptr);
data/newsboat-2.21/test/test-helpers/envvar.cpp:212:18:  [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* value = ::getenv(var);
data/newsboat-2.21/test/test-helpers/envvar.cpp:220:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		value = ::getenv(var);
data/newsboat-2.21/test/test-helpers/envvar.cpp:227:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		value = ::getenv(var);
data/newsboat-2.21/test/test-helpers/envvar.cpp:242:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		REQUIRE(::getenv(var) == nullptr);
data/newsboat-2.21/test/test-helpers/envvar.cpp:250:18:  [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* value = ::getenv(var);
data/newsboat-2.21/test/test-helpers/envvar.cpp:258:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		value = ::getenv(var);
data/newsboat-2.21/test/test-helpers/envvar.cpp:265:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		value = ::getenv(var);
data/newsboat-2.21/test/test-helpers/envvar.cpp:270:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	value = ::getenv(var);
data/newsboat-2.21/test/test-helpers/envvar.cpp:285:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		REQUIRE(::getenv(var) == nullptr);
data/newsboat-2.21/test/test-helpers/envvar.cpp:298:58:  [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.
			value_unset = !new_value.has_value() && (nullptr == ::getenv(var));
data/newsboat-2.21/test/test-helpers/envvar.cpp:347:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		REQUIRE(::getenv(var) == nullptr);
data/newsboat-2.21/test/test-helpers/maintempdir.cpp:23:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char* tmpdir_p = ::getenv("TMPDIR");
data/newsboat-2.21/test/test.cpp:10: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(static_cast<unsigned int>(std::time(0)));
data/newsboat-2.21/3rd-party/catch.hpp:2165:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char timeStamp[timeStampSize];
data/newsboat-2.21/3rd-party/catch.hpp:4464:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        alignas(alignof(T)) char storage[sizeof(T)];
data/newsboat-2.21/3rd-party/catch.hpp:5966: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/newsboat-2.21/3rd-party/catch.hpp:7590:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        void open();
data/newsboat-2.21/3rd-party/catch.hpp:11431:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(&i, &f, sizeof(f));
data/newsboat-2.21/3rd-party/catch.hpp:11438:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(&i, &d, sizeof(d));
data/newsboat-2.21/3rd-party/catch.hpp:11962: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 m_buffer[L_tmpnam] = { 0 };
data/newsboat-2.21/3rd-party/catch.hpp:12049:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffer[100];
data/newsboat-2.21/3rd-party/catch.hpp:12058:23:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        m_file = std::tmpfile();
data/newsboat-2.21/3rd-party/catch.hpp:12082: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 buffer[100] = {};
data/newsboat-2.21/3rd-party/catch.hpp:12566:30:  [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).
                    tracker->open();
data/newsboat-2.21/3rd-party/catch.hpp:13386:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 **utf8Argv = new char *[ argc ];
data/newsboat-2.21/3rd-party/catch.hpp:13547:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char data[bufferSize];
data/newsboat-2.21/3rd-party/catch.hpp:13596: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( filename.c_str() );
data/newsboat-2.21/3rd-party/catch.hpp:14347: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).
    void TrackerBase::open() {
data/newsboat-2.21/3rd-party/catch.hpp:14448:13:  [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).
            open();
data/newsboat-2.21/3rd-party/catch.hpp:15634: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 buffer[maxDoubleSize];
data/newsboat-2.21/3rd-party/catch.hpp:15641:14:  [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.
        std::sprintf(buffer, "%.3f", duration);
data/newsboat-2.21/3rd-party/catch.hpp:16238: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).
    void open() {
data/newsboat-2.21/3rd-party/catch.hpp:16272:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        tp.open();
data/newsboat-2.21/3rd-party/catch.hpp:16676:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char timeStamp[timeStampSize];
data/newsboat-2.21/3rd-party/json.hpp:1800: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.
((struct { char v[sizeof(void) * 2]; } *) 1) \
data/newsboat-2.21/3rd-party/json.hpp:9948:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(&result, vec.data(), sizeof(NumberType));
data/newsboat-2.21/3rd-party/json.hpp:14239:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(vec.data(), &n, sizeof(NumberType));
data/newsboat-2.21/3rd-party/json.hpp:14290:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(&result, &x, sizeof(x));
data/newsboat-2.21/3rd-party/json.hpp:14385:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&target, &source, sizeof(Source));
data/newsboat-2.21/3rd-party/optional.hpp:767:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    typedef struct { unsigned char data[ sizeof(value_type) ]; } aligned_storage_t;
data/newsboat-2.21/filter/Parser.cpp:359:4:  [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 format[20];
data/newsboat-2.21/filter/Scanner.cpp:236: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(this->buf, buf, len*sizeof(unsigned char));
data/newsboat-2.21/filter/Scanner.cpp:335: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(newBuf, buf, bufLen*sizeof(unsigned char));
data/newsboat-2.21/filter/Scanner.cpp:392:16:  [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 ((stream = fopen(chFileName, "rb")) == NULL) {
data/newsboat-2.21/filter/Scanner.cpp:496: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(newBuf, tval, tlen*sizeof(wchar_t));
data/newsboat-2.21/include/strprintf.h:105: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/newsboat-2.21/rss/parser.cpp:70: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(header, ptr, size * nmemb);
data/newsboat-2.21/src/controller.cpp:804: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[_POSIX_PATH_MAX];
data/newsboat-2.21/src/controller.cpp:816:11:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	int fd = mkstemp(filename);
data/newsboat-2.21/src/controller.cpp:830:4:  [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).
	f.open(filename.c_str(), std::fstream::out);
data/newsboat-2.21/src/controller.cpp:865:4:  [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).
	f.open(readinfofile.c_str(), std::fstream::out);
data/newsboat-2.21/src/controller.cpp:914:4:  [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).
	f.open(filename.c_str(), std::fstream::out);
data/newsboat-2.21/src/fileurlreader.cpp:26:4:  [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).
	f.open(filename, std::fstream::in);
data/newsboat-2.21/src/fileurlreader.cpp:58:4:  [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).
	f.open(filename, std::fstream::out);
data/newsboat-2.21/src/matcher.cpp:143:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[1024];
data/newsboat-2.21/src/pbcontroller.cpp:226:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			Level l = static_cast<Level>(atoi(optarg));
data/newsboat-2.21/src/pbview.cpp:63: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 parbuf[128] = "";
data/newsboat-2.21/src/pbview.cpp:71:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[1024];
data/newsboat-2.21/src/poddlthread.cpp:90:6:  [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).
		f->open(filename, std::fstream::out);
data/newsboat-2.21/src/poddlthread.cpp:102:6:  [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).
		f->open(filename, std::fstream::out | std::fstream::app);
data/newsboat-2.21/src/queueloader.cpp:80:4:  [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).
	f.open(queuefile.c_str(), std::fstream::in);
data/newsboat-2.21/src/queueloader.cpp:204:4:  [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).
	f.open(queuefile.c_str(), std::fstream::out);
data/newsboat-2.21/src/queueloader.cpp:248: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/newsboat-2.21/src/queuemanager.cpp:25:4:  [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).
	f.open(paths->queue_file(), std::fstream::in);
data/newsboat-2.21/src/queuemanager.cpp:42:5:  [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).
		f.open(paths->queue_file(),
data/newsboat-2.21/src/remoteapi.cpp:20:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		ifs.open(exp.gl_pathv[0]);
data/newsboat-2.21/src/strprintf.cpp:7: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/newsboat-2.21/src/tagsouppullparser.cpp:451: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 mbc[MB_CUR_MAX];
data/newsboat-2.21/src/tagsouppullparser.cpp:508: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 mbc[MB_CUR_MAX];
data/newsboat-2.21/src/utils.cpp:346: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 outbuf[16];
data/newsboat-2.21/src/utils.cpp:1015:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[BUFFER_SIZE];
data/newsboat-2.21/test/configparser.cpp:269:23:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		TestHelpers::EnvVar tmpfile("TMPFILE"); // $TMPFILE used in conf file
data/newsboat-2.21/test/configparser.cpp:270:3:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		tmpfile.set(testfile.get_path());
data/newsboat-2.21/test/fslock.cpp:94:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		const int fd = ::open(lock_location.get_path().c_str(), O_RDWR | O_CREAT, 0400);
data/newsboat-2.21/test/itemlistformaction.cpp:32: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 test_pubDate_str[128];
data/newsboat-2.21/test/itemlistformaction.cpp:394: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 test_pubDate_str[128];
data/newsboat-2.21/test/itemlistformaction.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 test_pubDate_str[128];
data/newsboat-2.21/test/itemlistformaction.cpp:788: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 test_pubDate_str[128];
data/newsboat-2.21/test/test-helpers/tempfile.cpp:15:20:  [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).
	const auto fd = ::mkstemp(filepath_template_c.data());
data/newsboat-2.21/3rd-party/catch.hpp:3730:29:  [1] (buffer) is_permutation:
  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.
                return std::is_permutation(m_target.begin(), m_target.end(), vec.begin());
data/newsboat-2.21/3rd-party/catch.hpp:13415:36:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            static_cast<void>(std::getchar());
data/newsboat-2.21/3rd-party/catch.hpp:13420:36:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            static_cast<void>(std::getchar());
data/newsboat-2.21/3rd-party/catch.hpp:13719:50:  [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.
        return s.size() >= prefix.size() && std::equal(prefix.begin(), prefix.end(), s.begin());
data/newsboat-2.21/3rd-party/catch.hpp:13725:50:  [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.
        return s.size() >= suffix.size() && std::equal(suffix.rbegin(), suffix.rend(), s.rbegin());
data/newsboat-2.21/3rd-party/catch.hpp:13813: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).
    : StringRef( rawChars, static_cast<StringRef::size_type>(std::strlen(rawChars) ) )
data/newsboat-2.21/3rd-party/json.hpp:4772:21:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return std::fgetc(m_file);
data/newsboat-2.21/3rd-party/json.hpp:5133: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).
    auto length = std::strlen(reinterpret_cast<const char*>(b));
data/newsboat-2.21/filter/Scanner.cpp:18:14:  [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).
		valueLen = wcslen(value);
data/newsboat-2.21/filter/Scanner.cpp:31:2:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	wcsncpy(data, &(value[startIndex]), len);
data/newsboat-2.21/filter/Scanner.cpp:41: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).
	if (data) { dataLen = wcslen(data); }
data/newsboat-2.21/filter/Scanner.cpp:58:16:  [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 dataLen = wcslen(data);
data/newsboat-2.21/filter/Scanner.cpp:83:26:  [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 (data1) { data1Len = wcslen(data1); }
data/newsboat-2.21/filter/Scanner.cpp:84:25:  [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 (data2) {data2Len = wcslen(data2); }
data/newsboat-2.21/filter/Scanner.cpp:99:2:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	wcsncpy(data, target, targetLen);
data/newsboat-2.21/filter/Scanner.cpp:111:21:  [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 (data) { return wcslen(data); }
data/newsboat-2.21/filter/Scanner.cpp:116:16:  [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 dataLen = wcslen(data);
data/newsboat-2.21/filter/Scanner.cpp:117:15:  [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 endLen = wcslen(end);
data/newsboat-2.21/filter/Scanner.cpp:165: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).
	if (value) { len = strlen(value); }
data/newsboat-2.21/filter/Scanner.cpp:341:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read > 0) {
data/newsboat-2.21/filter/Scanner.cpp:342:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		fileLen = bufLen = (bufLen + read);
data/newsboat-2.21/filter/Scanner.cpp:343:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return read;
data/newsboat-2.21/filter/Scanner.cpp:551:2:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	wcsncpy(t->val, tval, tlen);
data/newsboat-2.21/include/controller.h:46:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void mark_article_read(const std::string& guid, bool read);
data/newsboat-2.21/include/feedhqapi.h:19:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bool mark_article_read(const std::string& guid, bool read) override;
data/newsboat-2.21/include/feedhqapi.h:33:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bool read,
data/newsboat-2.21/include/inoreaderapi.h:20:63:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual bool mark_article_read(const std::string& guid, bool read);
data/newsboat-2.21/include/minifluxapi.h:20:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bool mark_article_read(const std::string& guid, bool read) override;
data/newsboat-2.21/include/newsblurapi.h:26:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bool mark_article_read(const std::string& guid, bool read) override;
data/newsboat-2.21/include/ocnewsapi.h:19:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bool mark_article_read(const std::string& guid, bool read) override;
data/newsboat-2.21/include/oldreaderapi.h:19:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bool mark_article_read(const std::string& guid, bool read) override;
data/newsboat-2.21/include/oldreaderapi.h:33:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bool read,
data/newsboat-2.21/include/remoteapi.h:31:63:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual bool mark_article_read(const std::string& guid, bool read) = 0;
data/newsboat-2.21/include/ttrssapi.h:26:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bool mark_article_read(const std::string& guid, bool read) override;
data/newsboat-2.21/src/controller.cpp:583:66:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void Controller::mark_article_read(const std::string& guid, bool read)
data/newsboat-2.21/src/controller.cpp:586:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		api->mark_article_read(guid, read);
data/newsboat-2.21/src/feedhqapi.cpp:213:65:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool FeedHqApi::mark_article_read(const std::string& guid, bool read)
data/newsboat-2.21/src/feedhqapi.cpp:216:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return mark_article_read_with_token(guid, read, token);
data/newsboat-2.21/src/feedhqapi.cpp:220:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bool read,
data/newsboat-2.21/src/feedhqapi.cpp:225:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read) {
data/newsboat-2.21/src/helpformaction.cpp:149: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 how_often_1 = strlen(tabs_1) -
data/newsboat-2.21/src/helpformaction.cpp:151: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 how_often_2 = strlen(tabs_2) -
data/newsboat-2.21/src/inoreaderapi.cpp:196: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).
		feedurl.substr(strlen(INOREADER_FEED_PREFIX));
data/newsboat-2.21/src/inoreaderapi.cpp:208:68:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool InoreaderApi::mark_article_read(const std::string& guid, bool read)
data/newsboat-2.21/src/inoreaderapi.cpp:220:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read) {
data/newsboat-2.21/src/itemviewformaction.cpp:61:4:  [1] (buffer) strlen:
  Does not handle 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(_("Top")),
data/newsboat-2.21/src/itemviewformaction.cpp:62:4:  [1] (buffer) strlen:
  Does not handle 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(_("Bottom"))})));
data/newsboat-2.21/src/minifluxapi.cpp:108:67:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool MinifluxApi::mark_article_read(const std::string& guid, bool read)
data/newsboat-2.21/src/minifluxapi.cpp:120:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		args["status"] = read ? "read" : "unread";
data/newsboat-2.21/src/newsblurapi.cpp:198:67:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool NewsBlurApi::mark_article_read(const std::string& guid, bool read)
data/newsboat-2.21/src/newsblurapi.cpp:212:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read) {
data/newsboat-2.21/src/ocnewsapi.cpp:157:65:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool OcNewsApi::mark_article_read(const std::string& guid, bool read)
data/newsboat-2.21/src/ocnewsapi.cpp:162:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read) {
data/newsboat-2.21/src/oldreaderapi.cpp:153: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 (strncmp(id, prefix, strlen(prefix)) != 0) {
data/newsboat-2.21/src/oldreaderapi.cpp:205: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).
	std::string real_feedurl = feedurl.substr(strlen(OLDREADER_FEED_PREFIX),
data/newsboat-2.21/src/oldreaderapi.cpp:206: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).
			feedurl.length() - strlen(OLDREADER_FEED_PREFIX));
data/newsboat-2.21/src/oldreaderapi.cpp:230:68:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool OldReaderApi::mark_article_read(const std::string& guid, bool read)
data/newsboat-2.21/src/oldreaderapi.cpp:233:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return mark_article_read_with_token(guid, read, token);
data/newsboat-2.21/src/oldreaderapi.cpp:237:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bool read,
data/newsboat-2.21/src/oldreaderapi.cpp:242:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read) {
data/newsboat-2.21/src/opmlurlreader.cpp:64: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 (rssurl && strlen(rssurl) > 0) {
data/newsboat-2.21/src/queueloader.cpp:251: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 (!base || strlen(base) == 0) {
data/newsboat-2.21/src/tagsouppullparser.cpp:78:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		inputstream->read(&c, 1);
data/newsboat-2.21/src/ttrssapi.cpp:322:64:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool TtRssApi::mark_article_read(const std::string& guid, bool read)
data/newsboat-2.21/src/ttrssapi.cpp:333:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		this->update_article(guid, 2, read ? 0 : 1);
data/newsboat-2.21/src/utils.cpp:352: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).
	inbytesleft = strlen(inbufp);
data/newsboat-2.21/src/utils.cpp:365: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).
				inbufp += strlen(inbufp) - inbytesleft;
data/newsboat-2.21/src/utils.cpp:366: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).
				inbytesleft = strlen(inbufp);
data/newsboat-2.21/src/utils.cpp:373: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).
				inbufp += strlen(inbufp) - inbytesleft + 1;
data/newsboat-2.21/src/utils.cpp:374: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).
				inbytesleft = strlen(inbufp);
data/newsboat-2.21/test/matcherexception.cpp:23: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).
		REQUIRE_FALSE(strlen(e.what()) == 0);
data/newsboat-2.21/test/matcherexception.cpp:32: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).
		REQUIRE_FALSE(strlen(e.what()) == 0);
data/newsboat-2.21/test/utils.cpp:607:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		::usleep(10 * 1000);

ANALYSIS SUMMARY:

Hits = 230
Lines analyzed = 97789 in approximately 2.29 seconds (42712 lines/second)
Physical Source Lines of Code (SLOC) = 72338
Hits@level = [0]  23 [1]  73 [2]  66 [3]  44 [4]  45 [5]   2
Hits@level+ = [0+] 253 [1+] 230 [2+] 157 [3+]  91 [4+]  47 [5+]   2
Hits/KSLOC@level+ = [0+] 3.49747 [1+] 3.17952 [2+] 2.17037 [3+] 1.25798 [4+] 0.649728 [5+] 0.027648
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.