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/pforth-21/csrc/pf_cglue.c
Examining data/pforth-21/csrc/pf_cglue.h
Examining data/pforth-21/csrc/pf_clib.c
Examining data/pforth-21/csrc/pf_clib.h
Examining data/pforth-21/csrc/pf_core.c
Examining data/pforth-21/csrc/pf_core.h
Examining data/pforth-21/csrc/pf_guts.h
Examining data/pforth-21/csrc/pf_host.h
Examining data/pforth-21/csrc/pf_inner.c
Examining data/pforth-21/csrc/pf_io.c
Examining data/pforth-21/csrc/pf_io.h
Examining data/pforth-21/csrc/pf_mac.h
Examining data/pforth-21/csrc/pf_mem.c
Examining data/pforth-21/csrc/pf_mem.h
Examining data/pforth-21/csrc/pf_save.c
Examining data/pforth-21/csrc/pf_save.h
Examining data/pforth-21/csrc/pf_text.c
Examining data/pforth-21/csrc/pf_text.h
Examining data/pforth-21/csrc/pf_types.h
Examining data/pforth-21/csrc/pf_unix.h
Examining data/pforth-21/csrc/pf_win32.h
Examining data/pforth-21/csrc/pf_words.c
Examining data/pforth-21/csrc/pf_words.h
Examining data/pforth-21/csrc/pfcompfp.h
Examining data/pforth-21/csrc/pfcompil.c
Examining data/pforth-21/csrc/pfcompil.h
Examining data/pforth-21/csrc/pfcustom.c
Examining data/pforth-21/csrc/pfinnrfp.h
Examining data/pforth-21/csrc/pforth.h
Examining data/pforth-21/csrc/pf_all.h
Examining data/pforth-21/csrc/pf_float.h
Examining data/pforth-21/csrc/pf_main.c

FINAL RESULTS:

data/pforth-21/csrc/pf_io.h:127:20:  [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.
		#define PRT(x) { printf x; sdFlushFile(PF_STDOUT); }
data/pforth-21/csrc/pf_main.c:28:21:  [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.
	#define ERR(msg) { printf msg; }
data/pforth-21/csrc/pf_cglue.c:94:2:  [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 FName[40];
data/pforth-21/csrc/pf_clib.h:45:27:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		#define pfCopyMemory    memcpy
data/pforth-21/csrc/pf_core.c:45:1:  [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          gScratch[TIB_SIZE];
data/pforth-21/csrc/pf_core.c:283:2:  [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  buffer[32];
data/pforth-21/csrc/pf_guts.h:377:2:  [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    td_TIB[TIB_SIZE];   /* Buffer for terminal input. */
data/pforth-21/csrc/pf_guts.h:431:2:  [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          inf_SaveTIB[TIB_SIZE];
data/pforth-21/csrc/pf_guts.h:455:8:  [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.
extern char          gScratch[TIB_SIZE];
data/pforth-21/csrc/pf_io.h:107:27:  [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).
		#define sdOpenFile      fopen
data/pforth-21/csrc/pf_mem.c:40:9:  [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 MemoryPool[PF_MEM_POOL_SIZE];
data/pforth-21/csrc/pf_text.c:210:8:  [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 cnttPad[CNTT_PAD_SIZE];
data/pforth-21/csrc/pfcompil.c:631:2:  [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 FName[40];
data/pforth-21/csrc/pf_clib.h:43:27:  [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).
		#define pfCStringLength strlen
data/pforth-21/csrc/pf_io.h:36:29:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		#define sdTerminalIn      getchar
data/pforth-21/csrc/pf_io.h:114:27:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		#define sdInputChar     fgetc

ANALYSIS SUMMARY:

Hits = 16
Lines analyzed = 7288 in approximately 0.20 seconds (36692 lines/second)
Physical Source Lines of Code (SLOC) = 5050
Hits@level = [0]   1 [1]   3 [2]  11 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]  17 [1+]  16 [2+]  13 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 3.36634 [1+] 3.16832 [2+] 2.57426 [3+] 0.39604 [4+] 0.39604 [5+]   0
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.