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/apache-log4j1.2-1.2.17/src/ntdll/nteventlog.cpp

FINAL RESULTS:

data/apache-log4j1.2-1.2.17/src/ntdll/nteventlog.cpp:162:3:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
  wcscpy(subkey, prefix);
data/apache-log4j1.2-1.2.17/src/ntdll/nteventlog.cpp:163:3:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
  wcscat(subkey, source);
data/apache-log4j1.2-1.2.17/src/ntdll/nteventlog.cpp:160:3:  [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 subkey[256];
data/apache-log4j1.2-1.2.17/src/ntdll/nteventlog.cpp:171:9:  [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 modpath[_MAX_PATH];
data/apache-log4j1.2-1.2.17/src/ntdll/nteventlog.cpp:282:9:  [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 modpath[_MAX_PATH];
data/apache-log4j1.2-1.2.17/src/ntdll/nteventlog.cpp:146:23:  [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).
      (LPBYTE)value, (wcslen(value) + 1) * sizeof(wchar_t));
data/apache-log4j1.2-1.2.17/src/ntdll/nteventlog.cpp:295: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).
					(LPBYTE) modpath, (wcslen(modpath) + 1) * sizeof(wchar_t));
data/apache-log4j1.2-1.2.17/src/ntdll/nteventlog.cpp:298: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).
						(LPBYTE) modpath, (wcslen(modpath) + 1) * sizeof(wchar_t));

ANALYSIS SUMMARY:

Hits = 8
Lines analyzed = 352 in approximately 0.13 seconds (2637 lines/second)
Physical Source Lines of Code (SLOC) = 252
Hits@level = [0]   0 [1]   3 [2]   3 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]   8 [1+]   8 [2+]   5 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 31.746 [1+] 31.746 [2+] 19.8413 [3+] 7.93651 [4+] 7.93651 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.