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/poedit-2.4.2/deps/pugixml/src/pugixml.hpp
Examining data/poedit-2.4.2/deps/pugixml/src/pugiconfig.hpp
Examining data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp
Examining data/poedit-2.4.2/deps/json/single_include/nlohmann/json.hpp
Examining data/poedit-2.4.2/src/text_control.h
Examining data/poedit-2.4.2/src/http_client.h
Examining data/poedit-2.4.2/src/syntaxhighlighter.cpp
Examining data/poedit-2.4.2/src/unicode_helpers.h
Examining data/poedit-2.4.2/src/welcomescreen.h
Examining data/poedit-2.4.2/src/prefsdlg.cpp
Examining data/poedit-2.4.2/src/progressinfo.cpp
Examining data/poedit-2.4.2/src/main_toolbar.h
Examining data/poedit-2.4.2/src/editing_area.h
Examining data/poedit-2.4.2/src/syntaxhighlighter.h
Examining data/poedit-2.4.2/src/spellchecking.cpp
Examining data/poedit-2.4.2/src/crowdin_client.h
Examining data/poedit-2.4.2/src/cat_update.h
Examining data/poedit-2.4.2/src/unicode_helpers.cpp
Examining data/poedit-2.4.2/src/export_html.cpp
Examining data/poedit-2.4.2/src/utility.cpp
Examining data/poedit-2.4.2/src/catalog.cpp
Examining data/poedit-2.4.2/src/concurrency.cpp
Examining data/poedit-2.4.2/src/cat_update.cpp
Examining data/poedit-2.4.2/src/icons.cpp
Examining data/poedit-2.4.2/src/sidebar.cpp
Examining data/poedit-2.4.2/src/colorscheme.h
Examining data/poedit-2.4.2/src/hidpi.cpp
Examining data/poedit-2.4.2/src/catalog_xliff.h
Examining data/poedit-2.4.2/src/utility.h
Examining data/poedit-2.4.2/src/gexecute.h
Examining data/poedit-2.4.2/src/custom_buttons.cpp
Examining data/poedit-2.4.2/src/findframe.h
Examining data/poedit-2.4.2/src/catalog_po.h
Examining data/poedit-2.4.2/src/findframe.cpp
Examining data/poedit-2.4.2/src/cat_sorting.h
Examining data/poedit-2.4.2/src/language_impl_plurals.h
Examining data/poedit-2.4.2/src/prefsdlg.h
Examining data/poedit-2.4.2/src/propertiesdlg.h
Examining data/poedit-2.4.2/src/edframe.h
Examining data/poedit-2.4.2/src/custom_buttons.h
Examining data/poedit-2.4.2/src/edlistctrl.h
Examining data/poedit-2.4.2/src/commentdlg.h
Examining data/poedit-2.4.2/src/language.h
Examining data/poedit-2.4.2/src/languagectrl.cpp
Examining data/poedit-2.4.2/src/concurrency.h
Examining data/poedit-2.4.2/src/json.h
Examining data/poedit-2.4.2/src/wx/main_toolbar.cpp
Examining data/poedit-2.4.2/src/crowdin_client.cpp
Examining data/poedit-2.4.2/src/str_helpers.h
Examining data/poedit-2.4.2/src/http_client_casablanca.cpp
Examining data/poedit-2.4.2/src/chooselang.cpp
Examining data/poedit-2.4.2/src/edapp.h
Examining data/poedit-2.4.2/src/hidpi.h
Examining data/poedit-2.4.2/src/catalog.h
Examining data/poedit-2.4.2/src/qa_checks.h
Examining data/poedit-2.4.2/src/icons.h
Examining data/poedit-2.4.2/src/customcontrols.cpp
Examining data/poedit-2.4.2/src/logcapture.h
Examining data/poedit-2.4.2/src/keychain/keytar.h
Examining data/poedit-2.4.2/src/keychain/keytar_posix.cc
Examining data/poedit-2.4.2/src/qa_checks.cpp
Examining data/poedit-2.4.2/src/crowdin_gui.cpp
Examining data/poedit-2.4.2/src/attentionbar.h
Examining data/poedit-2.4.2/src/version.h
Examining data/poedit-2.4.2/src/http_client.cpp
Examining data/poedit-2.4.2/src/language.cpp
Examining data/poedit-2.4.2/src/extractors/extractor.cpp
Examining data/poedit-2.4.2/src/extractors/extractor_legacy.cpp
Examining data/poedit-2.4.2/src/extractors/extractor_legacy.h
Examining data/poedit-2.4.2/src/extractors/extractor.h
Examining data/poedit-2.4.2/src/extractors/extractor_gettext.cpp
Examining data/poedit-2.4.2/src/manager.h
Examining data/poedit-2.4.2/src/propertiesdlg.cpp
Examining data/poedit-2.4.2/src/gexecute.cpp
Examining data/poedit-2.4.2/src/spellchecking.h
Examining data/poedit-2.4.2/src/fileviewer.h
Examining data/poedit-2.4.2/src/cat_sorting.cpp
Examining data/poedit-2.4.2/src/fileviewer.cpp
Examining data/poedit-2.4.2/src/text_control.cpp
Examining data/poedit-2.4.2/src/edapp.cpp
Examining data/poedit-2.4.2/src/manager.cpp
Examining data/poedit-2.4.2/src/errors.h
Examining data/poedit-2.4.2/src/language_impl_legacy.h
Examining data/poedit-2.4.2/src/progressinfo.h
Examining data/poedit-2.4.2/src/pretranslate.h
Examining data/poedit-2.4.2/src/configuration.cpp
Examining data/poedit-2.4.2/src/edframe.cpp
Examining data/poedit-2.4.2/src/catalog_xliff.cpp
Examining data/poedit-2.4.2/src/languagectrl.h
Examining data/poedit-2.4.2/src/catalog_po.cpp
Examining data/poedit-2.4.2/src/tm/tmx_io.h
Examining data/poedit-2.4.2/src/tm/tmx_io.cpp
Examining data/poedit-2.4.2/src/tm/transmem.cpp
Examining data/poedit-2.4.2/src/tm/suggestions.cpp
Examining data/poedit-2.4.2/src/tm/suggestions.h
Examining data/poedit-2.4.2/src/tm/transmem.h
Examining data/poedit-2.4.2/src/edlistctrl.cpp
Examining data/poedit-2.4.2/src/customcontrols.h
Examining data/poedit-2.4.2/src/sidebar.h
Examining data/poedit-2.4.2/src/attentionbar.cpp
Examining data/poedit-2.4.2/src/welcomescreen.cpp
Examining data/poedit-2.4.2/src/editing_area.cpp
Examining data/poedit-2.4.2/src/commentdlg.cpp
Examining data/poedit-2.4.2/src/wx_backports/wx_gtk_nativewin.cpp
Examining data/poedit-2.4.2/src/wx_backports/wx_gtk_activityindicator.cpp
Examining data/poedit-2.4.2/src/wx_backports/gtk_activityindicator.h
Examining data/poedit-2.4.2/src/wx_backports/activityindicator.h
Examining data/poedit-2.4.2/src/wx_backports/nativewin.h
Examining data/poedit-2.4.2/src/pluralforms/pl_evaluate.h
Examining data/poedit-2.4.2/src/pluralforms/pl_evaluate.cpp
Examining data/poedit-2.4.2/src/crowdin_gui.h
Examining data/poedit-2.4.2/src/pretranslate.cpp
Examining data/poedit-2.4.2/src/colorscheme.cpp
Examining data/poedit-2.4.2/src/chooselang.h
Examining data/poedit-2.4.2/src/cloud_sync.h
Examining data/poedit-2.4.2/src/pugixml.h
Examining data/poedit-2.4.2/src/configuration.h

FINAL RESULTS:

data/poedit-2.4.2/src/utility.cpp:296:9:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
        chown(destPath, st.st_uid, st.st_gid);
data/poedit-2.4.2/src/utility.cpp:297:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        chmod(destPath, st.st_mode);
data/poedit-2.4.2/deps/json/single_include/nlohmann/json.hpp:1329: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/poedit-2.4.2/deps/json/single_include/nlohmann/json.hpp:5862: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/poedit-2.4.2/deps/json/single_include/nlohmann/json.hpp:7798: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/poedit-2.4.2/deps/json/single_include/nlohmann/json.hpp:9231: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/poedit-2.4.2/deps/json/single_include/nlohmann/json.hpp:15085: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/poedit-2.4.2/deps/json/single_include/nlohmann/json.hpp:15091: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/poedit-2.4.2/deps/json/single_include/nlohmann/json.hpp:15129: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/poedit-2.4.2/deps/json/single_include/nlohmann/json.hpp:15223: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/poedit-2.4.2/deps/json/single_include/nlohmann/json.hpp:15425: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/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:141: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.
#	define PUGI__SNPRINTF(buf, ...) snprintf(buf, sizeof(buf), __VA_ARGS__)
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:145:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#	define PUGI__SNPRINTF sprintf
data/poedit-2.4.2/src/catalog_po.cpp:1331: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.
            bool sandboxed = (getenv("APP_SANDBOX_CONTAINER_ID") != NULL);
data/poedit-2.4.2/src/http_client_casablanca.cpp:296:34:  [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 *proxy = std::getenv("https_proxy");
data/poedit-2.4.2/src/http_client_casablanca.cpp:298:26:  [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.
            proxy = std::getenv("http_proxy");
data/poedit-2.4.2/deps/json/single_include/nlohmann/json.hpp:1803: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/poedit-2.4.2/deps/json/single_include/nlohmann/json.hpp:7708: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/poedit-2.4.2/deps/json/single_include/nlohmann/json.hpp:13475: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/poedit-2.4.2/deps/json/single_include/nlohmann/json.hpp:13506: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/poedit-2.4.2/deps/json/single_include/nlohmann/json.hpp:13604: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/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:100:50:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
#define PUGI__STATIC_ASSERT(cond) { static const char condition_failed[(cond) ? 1 : -1] = {0}; (void)condition_failed[0]; }
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:122:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
using std::memcpy;
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:1840:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const unsigned char chartype_table[256] =
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:1870:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const unsigned char chartypex_table[256] =
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:2055:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buffer, contents, length * sizeof(char_t));
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:2231:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buffer, data, prefix_length);
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:2374: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(dest, source, source_length * sizeof(char_t));
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:2390:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf, source, source_length * sizeof(char_t));
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:3763: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(buffer + bufsize, data, length * sizeof(char_t));
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:3773:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buffer + offset, data, length * sizeof(char_t));
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:4670:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[128];
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:4679:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[128];
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:4898: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(write, chunk->data, chunk->size);
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:5007:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char mode_ascii[4] = {0};
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:5011:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE* result = fopen(path_utf8, mode_ascii);
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:6168:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(&result[offset], j->name, length * sizeof(char_t));
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:7120:27:  [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).
		auto_deleter<FILE> file(fopen(path_, "rb"), impl::close_file);
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:7203:27:  [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).
		auto_deleter<FILE> file(fopen(path_, (flags & format_save_file_text) ? "w" : "wb"), impl::close_file);
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:7542: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 data[xpath_memory_page_size];
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:7619:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(result, ptr, old_size);
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:7735: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(result, string, length * sizeof(char_t));
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:7797:22:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				if (!_uses_heap) memcpy(result, _buffer, target_length * sizeof(char_t));
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:7800:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(result + target_length, o._buffer, source_length * sizeof(char_t));
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:8207:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int exponent = atoi(exponent_string + 1);
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:8234: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 mantissa_buffer[32];
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:8350: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(scratch, begin, length * sizeof(char_t));
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:8505:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char table[128] = {0};
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:8530:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(result, table, sizeof(table));
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:8647:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(result->name, name, (length + 1) * sizeof(char_t));
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:8739: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(scratch, begin, length * sizeof(char_t));
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:8881: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(_end, begin_, count * sizeof(xpath_node));
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:11142: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(c, value.begin, length * sizeof(char_t));
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:12116: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(storage, begin_, size_ * sizeof(xpath_node));
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:12320: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(copy, value, size);
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:12689: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(buffer, r.c_str(), (size - 1) * sizeof(char_t));
data/poedit-2.4.2/deps/pugixml/src/pugixml.hpp:1005: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 _memory[192];
data/poedit-2.4.2/src/edapp.cpp:1309:5:  [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 buf[1000];
data/poedit-2.4.2/src/edframe.cpp:1362: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).
    f.open(tempfile.FileName().fn_str());
data/poedit-2.4.2/src/language.cpp:400: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 locale[512];
data/poedit-2.4.2/src/language.cpp:410:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[512];
data/poedit-2.4.2/src/prefsdlg.cpp:588: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).
                    f.open(p.fn_str());
data/poedit-2.4.2/src/prefsdlg.cpp:640:19:  [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(p.fn_str());
data/poedit-2.4.2/src/unicode_helpers.cpp:134:5:  [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 replacement[3] = {0};
data/poedit-2.4.2/deps/json/single_include/nlohmann/json.hpp:4293: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/poedit-2.4.2/deps/json/single_include/nlohmann/json.hpp:4600:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        std::strlen(reinterpret_cast<const char*>(b))) {}
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:217:10:  [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).
		return wcslen(s);
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:219:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		return strlen(s);
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:251:10:  [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).
		return wcslen(s);
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:4646:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		assert(strlen(buf) < sizeof(wbuf) / sizeof(wbuf[0]));
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:4653:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		return strcpy_insitu(dest, header, header_mask, buf, strlen(buf));
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:4876:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			stream.read(chunk->data, static_cast<std::streamsize>(sizeof(chunk->data) / sizeof(T)));
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:4932:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		stream.read(static_cast<T*>(buffer.data), static_cast<std::streamsize>(read_length));
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:7244:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		return impl::as_wide_impl(str, strlen(str));
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:8191:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		truncate_zeros(buffer, buffer + strlen(buffer));
data/poedit-2.4.2/deps/pugixml/src/pugixml.cpp:8241: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).
		size_t result_size = strlen(mantissa_buffer) + (exponent > 0 ? exponent : -exponent) + 4;
data/poedit-2.4.2/src/catalog.cpp:251:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            ctype.Mid(charsetPos + strlen("; charset=")).Strip(wxString::both);

ANALYSIS SUMMARY:

Hits = 77
Lines analyzed = 76319 in approximately 1.66 seconds (46019 lines/second)
Physical Source Lines of Code (SLOC) = 50241
Hits@level = [0]   4 [1]  13 [2]  48 [3]   3 [4]  11 [5]   2
Hits@level+ = [0+]  81 [1+]  77 [2+]  64 [3+]  16 [4+]  13 [5+]   2
Hits/KSLOC@level+ = [0+] 1.61223 [1+] 1.53261 [2+] 1.27386 [3+] 0.318465 [4+] 0.258753 [5+] 0.0398081
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.