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/automake1.11-1.11.6/lib/ansi2knr.c
Examining data/automake1.11-1.11.6/doc/amhello/src/main.c

FINAL RESULTS:

data/automake1.11-1.11.6/lib/ansi2knr.c:270:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	  fprintf(stderr, usage);
data/automake1.11-1.11.6/lib/ansi2knr.c:276:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, usage);
data/automake1.11-1.11.6/lib/ansi2knr.c:340:8:  [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(buf, more);
data/automake1.11-1.11.6/lib/ansi2knr.c:280:9:  [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).
		out = fopen(output_name, "w");
data/automake1.11-1.11.6/lib/ansi2knr.c:288:8:  [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).
		in = fopen(argv[1], "r");
data/automake1.11-1.11.6/lib/ansi2knr.c:162:16:  [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).
    extern int strlen(), strncmp();
data/automake1.11-1.11.6/lib/ansi2knr.c:311:16:  [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).
test:		line += strlen(line);
data/automake1.11-1.11.6/lib/ansi2knr.c:334:16:  [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).
			    line += strlen(line);
data/automake1.11-1.11.6/lib/ansi2knr.c:483:39:  [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).
	bend = skipspace(ppdirbackward(buf + strlen(buf) - 1, buf), -1);
data/automake1.11-1.11.6/lib/ansi2knr.c:516:13:  [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).
		   {	if ( strlen(kp) == len && !strncmp(kp, buf, len) )

ANALYSIS SUMMARY:

Hits = 10
Lines analyzed = 753 in approximately 0.31 seconds (2418 lines/second)
Physical Source Lines of Code (SLOC) = 496
Hits@level = [0]   7 [1]   5 [2]   2 [3]   0 [4]   3 [5]   0
Hits@level+ = [0+]  17 [1+]  10 [2+]   5 [3+]   3 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 34.2742 [1+] 20.1613 [2+] 10.0806 [3+] 6.04839 [4+] 6.04839 [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.