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/pspresent-1.3/gs.c
Examining data/pspresent-1.3/ps.c
Examining data/pspresent-1.3/pspresent.c
Examining data/pspresent-1.3/pspresent.h

FINAL RESULTS:

data/pspresent-1.3/gs.c:47:2:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execvp(args[0], args);
data/pspresent-1.3/pspresent.c:624:2:  [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(wm_name, filename);
data/pspresent-1.3/pspresent.c:457:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, "os:O:hvlt::T:?")) != -1)
data/pspresent-1.3/gs.c:39: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 ghostview[32];
data/pspresent-1.3/gs.c:58: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 prop[64];
data/pspresent-1.3/ps.c:49:30:  [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 Bool PSGetBoundingBox(char *string, int bounds[4])
data/pspresent-1.3/ps.c:88:21:  [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.
Bool PSScanDocument(char *start, char *end, int bounds[4], int *orientation, 
data/pspresent-1.3/ps.c:88:34:  [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.
Bool PSScanDocument(char *start, char *end, int bounds[4], int *orientation, 
data/pspresent-1.3/ps.c:122:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			pages_size = atoi(line + LEN(DSC_PAGES)) + 1;
data/pspresent-1.3/ps.c:156:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			this_page = atoi(line + LEN(DSC_PAGE));
data/pspresent-1.3/pspresent.c:359:7:  [2] (misc) open:
  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).
	fd = open(filename, O_RDONLY);
data/pspresent-1.3/pspresent.c:422:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		pages[i].delay = atoi(buf);
data/pspresent-1.3/pspresent.c:465:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				head = atoi(optarg);
data/pspresent-1.3/pspresent.c:481:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					delay = atoi(optarg);
data/pspresent-1.3/pspresent.c:495:14:  [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).
				fdelay = fopen(optarg, "r");
data/pspresent-1.3/pspresent.c:623:2:  [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(wm_name, "pspresent: ");
data/pspresent-1.3/pspresent.h:52:21:  [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.
Bool PSScanDocument(char *start, char *end, int bounds[4], int *orientation,
data/pspresent-1.3/pspresent.h:52:34:  [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.
Bool PSScanDocument(char *start, char *end, int bounds[4], int *orientation,
data/pspresent-1.3/pspresent.c:617: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).
	wm_name = malloc(strlen(filename) + 12);

ANALYSIS SUMMARY:

Hits = 19
Lines analyzed = 1082 in approximately 0.04 seconds (30196 lines/second)
Physical Source Lines of Code (SLOC) = 818
Hits@level = [0]  20 [1]   1 [2]  15 [3]   1 [4]   2 [5]   0
Hits@level+ = [0+]  39 [1+]  19 [2+]  18 [3+]   3 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 47.6773 [1+] 23.2274 [2+] 22.0049 [3+] 3.66748 [4+] 2.44499 [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.