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/ratpoints-2.1.3/rptest.c
Examining data/ratpoints-2.1.3/rp-private.h
Examining data/ratpoints-2.1.3/main.c
Examining data/ratpoints-2.1.3/sift.c
Examining data/ratpoints-2.1.3/init.c
Examining data/ratpoints-2.1.3/sturm.c
Examining data/ratpoints-2.1.3/ratpoints.h
Examining data/ratpoints-2.1.3/testdata.h
Examining data/ratpoints-2.1.3/find_points.c
Examining data/ratpoints-2.1.3/gen_init_sieve_h.c
Examining data/ratpoints-2.1.3/primes.h
Examining data/ratpoints-2.1.3/gen_find_points_h.c

FINAL RESULTS:

data/ratpoints-2.1.3/gen_find_points_h.c:66:7:  [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.
      printf((n < RATPOINTS_NUM_PRIMES - 1) ? "},\n " : "}\n};\n");
data/ratpoints-2.1.3/gen_find_points_h.c:75:5:  [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.
    printf((n < RATPOINTS_NUM_PRIMES - 1) ? "," : "};\n\n");
data/ratpoints-2.1.3/gen_find_points_h.c:87:5:  [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.
    printf((n < RATPOINTS_NUM_PRIMES - 1) ? "},\n " : "}\n};\n");
data/ratpoints-2.1.3/gen_find_points_h.c:109:7:  [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.
      printf((n < RATPOINTS_NUM_PRIMES - 1) ? "},\n" : "}\n");
data/ratpoints-2.1.3/main.c:338:17:  [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(print_format, argv[i]);
data/ratpoints-2.1.3/main.c:347:17:  [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_before, argv[i]);
data/ratpoints-2.1.3/main.c:356:17:  [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_between, argv[i]);
data/ratpoints-2.1.3/main.c:365:17:  [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_after, argv[i]);
data/ratpoints-2.1.3/main.c:513:9:  [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.
      { printf(flag ? " + " : ""); }
data/ratpoints-2.1.3/main.c:515:9:  [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.
      { printf(flag ? " - " : "- ");
data/ratpoints-2.1.3/main.c:336:26:  [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).
              { long l = strlen(argv[i]);
data/ratpoints-2.1.3/main.c:345:26:  [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).
              { long l = strlen(argv[i]);
data/ratpoints-2.1.3/main.c:354:26:  [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).
              { long l = strlen(argv[i]);
data/ratpoints-2.1.3/main.c:363:26:  [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).
              { long l = strlen(argv[i]);

ANALYSIS SUMMARY:

Hits = 14
Lines analyzed = 5366 in approximately 0.23 seconds (23020 lines/second)
Physical Source Lines of Code (SLOC) = 4201
Hits@level = [0] 245 [1]   4 [2]   0 [3]   0 [4]  10 [5]   0
Hits@level+ = [0+] 259 [1+]  14 [2+]  10 [3+]  10 [4+]  10 [5+]   0
Hits/KSLOC@level+ = [0+] 61.652 [1+] 3.33254 [2+] 2.38039 [3+] 2.38039 [4+] 2.38039 [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.