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/libgnatcoll-bindings-21.0.0/gmp/gmp_support.c
Examining data/libgnatcoll-bindings-21.0.0/gmp/gnatcoll-gmp-mpz_even_p.c
Examining data/libgnatcoll-bindings-21.0.0/gmp/gnatcoll-gmp-mpz_odd_p.c
Examining data/libgnatcoll-bindings-21.0.0/gmp/gnatcoll-gmp-mpz_sign.c
Examining data/libgnatcoll-bindings-21.0.0/iconv/iconv_support.c
Examining data/libgnatcoll-bindings-21.0.0/omp/sort_omp.c
Examining data/libgnatcoll-bindings-21.0.0/python/python_support.c
Examining data/libgnatcoll-bindings-21.0.0/python3/python_support.c
Examining data/libgnatcoll-bindings-21.0.0/syslog/syslog_support.c

FINAL RESULTS:

data/libgnatcoll-bindings-21.0.0/python/python_support.c:177:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat (command, name);
data/libgnatcoll-bindings-21.0.0/python3/python_support.c:155:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat (command, name);
data/libgnatcoll-bindings-21.0.0/python/python_support.c:78: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(module, &def, sizeof(struct PyModuleDef));
data/libgnatcoll-bindings-21.0.0/python/python_support.c:176:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
   strcpy (command, "import ");
data/libgnatcoll-bindings-21.0.0/python/python_support.c:252: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 (&PyAdaMethodDescr_Type, &PyMethodDescr_Type, sizeof (PyTypeObject));
data/libgnatcoll-bindings-21.0.0/python/python_support.c:315:11:  [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 msg[200];
data/libgnatcoll-bindings-21.0.0/python3/python_support.c:69: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(module, &def, sizeof(struct PyModuleDef));
data/libgnatcoll-bindings-21.0.0/python3/python_support.c:154:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
   strcpy (command, "import ");
data/libgnatcoll-bindings-21.0.0/python3/python_support.c:228: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 (&PyAdaMethodDescr_Type, &PyMethodDescr_Type, sizeof (PyTypeObject));
data/libgnatcoll-bindings-21.0.0/python3/python_support.c:285:11:  [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 msg[200];
data/libgnatcoll-bindings-21.0.0/python3/python_support.c:619: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 *w_gnat_argv[gnat_argc];
data/libgnatcoll-bindings-21.0.0/python/python_support.c:175:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   char* command = (char*)malloc(9 + strlen(name));
data/libgnatcoll-bindings-21.0.0/python/python_support.c:178:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
   strcat (command, "\n");
data/libgnatcoll-bindings-21.0.0/python3/python_support.c:153:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   char* command = (char*)malloc(9 + strlen(name));
data/libgnatcoll-bindings-21.0.0/python3/python_support.c:156:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
   strcat (command, "\n");

ANALYSIS SUMMARY:

Hits = 15
Lines analyzed = 1968 in approximately 0.41 seconds (4822 lines/second)
Physical Source Lines of Code (SLOC) = 1378
Hits@level = [0]   9 [1]   4 [2]   9 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]  24 [1+]  15 [2+]  11 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 17.4165 [1+] 10.8853 [2+] 7.98258 [3+] 1.45138 [4+] 1.45138 [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.