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/mlgmp-20021123/mlgmp_fr.c
Examining data/mlgmp-20021123/mlgmp_random.c
Examining data/mlgmp-20021123/mlgmp_f.c
Examining data/mlgmp-20021123/mlgmp_q.c
Examining data/mlgmp-20021123/mlgmp.h
Examining data/mlgmp-20021123/mlgmp_misc.c
Examining data/mlgmp-20021123/mlgmp_z.c
Examining data/mlgmp-20021123/config.h
Examining data/mlgmp-20021123/conversions.c

FINAL RESULTS:

data/mlgmp-20021123/mlgmp_f.c:105:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(String_val(rs), s);
data/mlgmp-20021123/mlgmp_fr.c:152:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(String_val(rs), s);
data/mlgmp-20021123/mlgmp_misc.c:21:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(String_val(r), gmp_version);
data/mlgmp-20021123/mlgmp_z.c:132:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(String_val(r), s);
data/mlgmp-20021123/mlgmp_f.c:300: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 exponent_buf[10];
data/mlgmp-20021123/mlgmp_f.c:315:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(exponent_buf, "@%08lx", (exponent & 0xFFFFFFFFUL));
data/mlgmp-20021123/mlgmp_fr.c:421: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 exponent_buf[10];
data/mlgmp-20021123/mlgmp_fr.c:436:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(exponent_buf, "@%08lx", (exponent & 0xFFFFFFFFUL));
data/mlgmp-20021123/mlgmp_f.c:104: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).
  rs=alloc_string(strlen(s));
data/mlgmp-20021123/mlgmp_f.c:308:9:  [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).
  len = strlen(s);
data/mlgmp-20021123/mlgmp_fr.c:151: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).
  rs=alloc_string(strlen(s));
data/mlgmp-20021123/mlgmp_fr.c:429:9:  [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).
  len = strlen(s);
data/mlgmp-20021123/mlgmp_misc.c:20:20:  [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).
  r = alloc_string(strlen(gmp_version));
data/mlgmp-20021123/mlgmp_q.c:197:9:  [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).
  len = strlen(s);
data/mlgmp-20021123/mlgmp_q.c:203:9:  [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).
  len = strlen(s);
data/mlgmp-20021123/mlgmp_z.c:131: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).
  r=alloc_string(strlen(s));
data/mlgmp-20021123/mlgmp_z.c:773:9:  [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).
  len = strlen(s);

ANALYSIS SUMMARY:

Hits = 17
Lines analyzed = 2166 in approximately 0.08 seconds (27573 lines/second)
Physical Source Lines of Code (SLOC) = 1760
Hits@level = [0]   1 [1]   9 [2]   4 [3]   0 [4]   4 [5]   0
Hits@level+ = [0+]  18 [1+]  17 [2+]   8 [3+]   4 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 10.2273 [1+] 9.65909 [2+] 4.54545 [3+] 2.27273 [4+] 2.27273 [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.