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/outguess-0.2.2/arc.c
Examining data/outguess-0.2.2/arc.h
Examining data/outguess-0.2.2/fourier.c
Examining data/outguess-0.2.2/fourier.h
Examining data/outguess-0.2.2/golay.c
Examining data/outguess-0.2.2/golay.h
Examining data/outguess-0.2.2/histogram.c
Examining data/outguess-0.2.2/iterator.c
Examining data/outguess-0.2.2/iterator.h
Examining data/outguess-0.2.2/jpeg-6b-steg/ansi2knr.c
Examining data/outguess-0.2.2/jpeg-6b-steg/cderror.h
Examining data/outguess-0.2.2/jpeg-6b-steg/cdjpeg.c
Examining data/outguess-0.2.2/jpeg-6b-steg/cdjpeg.h
Examining data/outguess-0.2.2/jpeg-6b-steg/cjpeg.c
Examining data/outguess-0.2.2/jpeg-6b-steg/ckconfig.c
Examining data/outguess-0.2.2/jpeg-6b-steg/djpeg.c
Examining data/outguess-0.2.2/jpeg-6b-steg/example.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jcapimin.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jcapistd.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jccoefct.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jccolor.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jcdctmgr.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jchuff.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jchuff.h
Examining data/outguess-0.2.2/jpeg-6b-steg/jcinit.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jcmainct.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jcmarker.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jcmaster.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jcomapi.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jcparam.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jcphuff.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jcprepct.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jcsample.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jctrans.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jdapimin.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jdapistd.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jdatadst.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jdatasrc.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jdcoefct.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jdcolor.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jdct.h
Examining data/outguess-0.2.2/jpeg-6b-steg/jddctmgr.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jdhuff.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jdhuff.h
Examining data/outguess-0.2.2/jpeg-6b-steg/jdinput.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jdmainct.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jdmarker.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jdmaster.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jdmerge.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jdphuff.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jdpostct.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jdsample.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jdtrans.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jerror.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jerror.h
Examining data/outguess-0.2.2/jpeg-6b-steg/jfdctflt.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jfdctfst.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jfdctint.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jidctflt.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jidctfst.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jidctint.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jidctred.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jinclude.h
Examining data/outguess-0.2.2/jpeg-6b-steg/jmemansi.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jmemdos.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jmemmac.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jmemmgr.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jmemname.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jmemnobs.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jmemsys.h
Examining data/outguess-0.2.2/jpeg-6b-steg/jmorecfg.h
Examining data/outguess-0.2.2/jpeg-6b-steg/jpegint.h
Examining data/outguess-0.2.2/jpeg-6b-steg/jpeglib.h
Examining data/outguess-0.2.2/jpeg-6b-steg/jpegtran.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jquant1.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jquant2.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jutils.c
Examining data/outguess-0.2.2/jpeg-6b-steg/jversion.h
Examining data/outguess-0.2.2/jpeg-6b-steg/rdbmp.c
Examining data/outguess-0.2.2/jpeg-6b-steg/rdcolmap.c
Examining data/outguess-0.2.2/jpeg-6b-steg/rdgif.c
Examining data/outguess-0.2.2/jpeg-6b-steg/rdjpgcom.c
Examining data/outguess-0.2.2/jpeg-6b-steg/rdppm.c
Examining data/outguess-0.2.2/jpeg-6b-steg/rdrle.c
Examining data/outguess-0.2.2/jpeg-6b-steg/rdswitch.c
Examining data/outguess-0.2.2/jpeg-6b-steg/rdtarga.c
Examining data/outguess-0.2.2/jpeg-6b-steg/transupp.c
Examining data/outguess-0.2.2/jpeg-6b-steg/transupp.h
Examining data/outguess-0.2.2/jpeg-6b-steg/wrbmp.c
Examining data/outguess-0.2.2/jpeg-6b-steg/wrgif.c
Examining data/outguess-0.2.2/jpeg-6b-steg/wrjpgcom.c
Examining data/outguess-0.2.2/jpeg-6b-steg/wrppm.c
Examining data/outguess-0.2.2/jpeg-6b-steg/wrrle.c
Examining data/outguess-0.2.2/jpeg-6b-steg/wrtarga.c
Examining data/outguess-0.2.2/jpg.c
Examining data/outguess-0.2.2/jpg.h
Examining data/outguess-0.2.2/missing/err.c
Examining data/outguess-0.2.2/missing/err.h
Examining data/outguess-0.2.2/missing/md5.c
Examining data/outguess-0.2.2/missing/md5.h
Examining data/outguess-0.2.2/outguess.c
Examining data/outguess-0.2.2/outguess.h
Examining data/outguess-0.2.2/pnm.c
Examining data/outguess-0.2.2/pnm.h

FINAL RESULTS:

data/outguess-0.2.2/jpeg-6b-steg/ansi2knr.c:403: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/outguess-0.2.2/jpeg-6b-steg/jerror.c:193:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(buffer, msgtext, err->msg_parm.s);
data/outguess-0.2.2/jpeg-6b-steg/jerror.c:195:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(buffer, msgtext,
data/outguess-0.2.2/jpeg-6b-steg/jmemmac.c:240:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(info->temp_name, TEMP_FILE_NAME, next_file_num);
data/outguess-0.2.2/jpeg-6b-steg/jmemmac.c:241:5:  [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 ( (Ptr)fName+1, info->temp_name );
data/outguess-0.2.2/jpeg-6b-steg/jmemname.c:102:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(fname, TEMP_FILE_NAME, TEMP_DIRECTORY, next_file_num);
data/outguess-0.2.2/jpeg-6b-steg/jmemname.c:129:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(fname, TEMP_FILE_NAME, TEMP_DIRECTORY, next_file_num);
data/outguess-0.2.2/jpeg-6b-steg/jmemname.c:130:3:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
  mktemp(fname);		/* make sure file name is unique */
data/outguess-0.2.2/jpeg-6b-steg/wrjpgcom.c:456:2:  [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(comment_arg, argv[argn]+1);
data/outguess-0.2.2/jpeg-6b-steg/wrjpgcom.c:466:4:  [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(comment_arg, argv[argn]);
data/outguess-0.2.2/missing/err.c:53:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		(void)vfprintf(stderr, fmt, ap);
data/outguess-0.2.2/missing/err.c:68:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		(void)vfprintf(stderr, fmt, ap);
data/outguess-0.2.2/missing/err.c:82:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		(void)vfprintf(stderr, fmt, ap);
data/outguess-0.2.2/missing/err.c:95:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		(void)vfprintf(stderr, fmt, ap);
data/outguess-0.2.2/outguess.c:891: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, version, argv[0]);
data/outguess-0.2.2/outguess.c:902: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, version, progname);
data/outguess-0.2.2/outguess.c:1003:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(derivekey, "%s%d", key2, i);
data/outguess-0.2.2/jpeg-6b-steg/jmemdos.c:50:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
extern char * getenv JPP((const char * name));
data/outguess-0.2.2/jpeg-6b-steg/jmemdos.c:139:31:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((env = (const char *) getenv("TMP")) == NULL)
data/outguess-0.2.2/jpeg-6b-steg/jmemdos.c:140:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      if ((env = (const char *) getenv("TEMP")) == NULL)
data/outguess-0.2.2/jpeg-6b-steg/jmemmgr.c:35:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
extern char * getenv JPP((const char * name));
data/outguess-0.2.2/jpeg-6b-steg/jmemmgr.c:1106:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((memenv = getenv("JPEGMEM")) != NULL) {
data/outguess-0.2.2/outguess.c:834:15:  [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 ((ch = getopt(argc, argv, "eErmftp:s:S:i:I:k:d:D:K:x:F:")) != -1)
data/outguess-0.2.2/histogram.c:86:13:  [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).
	if ((fin = fopen(argv[0], "r")) == NULL)
data/outguess-0.2.2/jpeg-6b-steg/ansi2knr.c:358: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(argv[2], "w");
data/outguess-0.2.2/jpeg-6b-steg/ansi2knr.c:364:7:  [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/outguess-0.2.2/jpeg-6b-steg/cjpeg.c:539:23:  [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).
    if ((input_file = fopen(argv[file_index], READ_BINARY)) == NULL) {
data/outguess-0.2.2/jpeg-6b-steg/cjpeg.c:550:24:  [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).
    if ((output_file = fopen(outfilename, WRITE_BINARY)) == NULL) {
data/outguess-0.2.2/jpeg-6b-steg/ckconfig.c:297:18:  [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).
  if ((outfile = fopen("jconfig.h", "w")) == NULL) {
data/outguess-0.2.2/jpeg-6b-steg/djpeg.c:274:17:  [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).
	if ((mapfile = fopen(argv[argn], READ_BINARY)) == NULL) {
data/outguess-0.2.2/jpeg-6b-steg/djpeg.c:504:23:  [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).
    if ((input_file = fopen(argv[file_index], READ_BINARY)) == NULL) {
data/outguess-0.2.2/jpeg-6b-steg/djpeg.c:515:24:  [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).
    if ((output_file = fopen(outfilename, WRITE_BINARY)) == NULL) {
data/outguess-0.2.2/jpeg-6b-steg/example.c:114:18:  [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).
  if ((outfile = fopen(filename, "wb")) == NULL) {
data/outguess-0.2.2/jpeg-6b-steg/example.c:306:17:  [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).
  if ((infile = fopen(filename, "rb")) == NULL) {
data/outguess-0.2.2/jpeg-6b-steg/jchuff.c:185: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 huffsize[257];
data/outguess-0.2.2/jpeg-6b-steg/jchuff.h:29: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 ehufsi[256];		/* length of code for each symbol */
data/outguess-0.2.2/jpeg-6b-steg/jcmarker.c:228: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 dc_in_use[NUM_ARITH_TBLS];
data/outguess-0.2.2/jpeg-6b-steg/jcmarker.c:229: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 ac_in_use[NUM_ARITH_TBLS];
data/outguess-0.2.2/jpeg-6b-steg/jdhuff.c:156: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 huffsize[257];
data/outguess-0.2.2/jpeg-6b-steg/jerror.c:100: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 buffer[JMSG_LENGTH_MAX];
data/outguess-0.2.2/jpeg-6b-steg/jinclude.h:62:32:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define MEMCOPY(dest,src,size)	bcopy((const void *)(src), (void *)(dest), (size_t)(size))
data/outguess-0.2.2/jpeg-6b-steg/jinclude.h:68:32:  [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 MEMCOPY(dest,src,size)	memcpy((void *)(dest), (const void *)(src), (size_t)(size))
data/outguess-0.2.2/jpeg-6b-steg/jmemansi.c:144:26:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  if ((info->temp_file = tmpfile()) == NULL)
data/outguess-0.2.2/jpeg-6b-steg/jmemdos.c:151:5:  [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(ptr, "JPG%03d.TMP", next_file_num);
data/outguess-0.2.2/jpeg-6b-steg/jmemdos.c:153:18:  [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).
    if ((tfile = fopen(fname, READ_BINARY)) == NULL)
data/outguess-0.2.2/jpeg-6b-steg/jmemdos.c:339: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 endbuffer[2];
data/outguess-0.2.2/jpeg-6b-steg/jmemdos.c:360:7:  [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 FAR *) buffer_address)[byte_count - 1L] = endbuffer[0];
data/outguess-0.2.2/jpeg-6b-steg/jmemdos.c:372: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 endbuffer[2];
data/outguess-0.2.2/jpeg-6b-steg/jmemdos.c:393:22:  [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.
    endbuffer[0] = ((char FAR *) buffer_address)[byte_count - 1L];
data/outguess-0.2.2/jpeg-6b-steg/jmemdos.c:468: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 bytes[18];		/* Misaligned fields in here! */
data/outguess-0.2.2/jpeg-6b-steg/jmemname.c:103:18:  [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).
    if ((tfile = fopen(fname, READ_BINARY)) == NULL) {
data/outguess-0.2.2/jpeg-6b-steg/jmemname.c:251:26:  [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).
  if ((info->temp_file = fopen(info->temp_name, RW_BINARY)) == NULL)
data/outguess-0.2.2/jpeg-6b-steg/jmemsys.h:156: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 temp_name[TEMP_NAME_LENGTH]; /* name if it's a file */
data/outguess-0.2.2/jpeg-6b-steg/jmemsys.h:162: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 temp_name[TEMP_NAME_LENGTH]; /* name if it's a file */
data/outguess-0.2.2/jpeg-6b-steg/jmemsys.h:166: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 temp_name[TEMP_NAME_LENGTH]; /* name of temp file */
data/outguess-0.2.2/jpeg-6b-steg/jpeglib.h:663:5:  [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 s[JMSG_STR_PARM_MAX];
data/outguess-0.2.2/jpeg-6b-steg/jpegtran.c:409:23:  [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).
    if ((input_file = fopen(argv[file_index], READ_BINARY)) == NULL) {
data/outguess-0.2.2/jpeg-6b-steg/jpegtran.c:420:24:  [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).
    if ((output_file = fopen(outfilename, WRITE_BINARY)) == NULL) {
data/outguess-0.2.2/jpeg-6b-steg/rdjpgcom.c:471:19:  [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).
    if ((infile = fopen(argv[argn], READ_BINARY)) == NULL) {
data/outguess-0.2.2/jpeg-6b-steg/rdswitch.c:90:13:  [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).
  if ((fp = fopen(filename, "r")) == NULL) {
data/outguess-0.2.2/jpeg-6b-steg/rdswitch.c:182:13:  [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).
  if ((fp = fopen(filename, "r")) == NULL) {
data/outguess-0.2.2/jpeg-6b-steg/wrbmp.c:160: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 bmpfileheader[14];
data/outguess-0.2.2/jpeg-6b-steg/wrbmp.c:161: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 bmpinfoheader[40];
data/outguess-0.2.2/jpeg-6b-steg/wrbmp.c:233: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 bmpfileheader[14];
data/outguess-0.2.2/jpeg-6b-steg/wrbmp.c:234: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 bmpcoreheader[12];
data/outguess-0.2.2/jpeg-6b-steg/wrgif.c:65: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 packetbuf[256];		/* workspace for accumulating packet */
data/outguess-0.2.2/jpeg-6b-steg/wrjpgcom.c:442: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).
      if ((comment_file = fopen(argv[argn], "r")) == NULL) {
data/outguess-0.2.2/jpeg-6b-steg/wrjpgcom.c:485:19:  [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).
    if ((infile = fopen(argv[argn], READ_BINARY)) == NULL) {
data/outguess-0.2.2/jpeg-6b-steg/wrjpgcom.c:512:18:  [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).
  if ((outfile = fopen(argv[argn+1], WRITE_BINARY)) == NULL) {
data/outguess-0.2.2/jpeg-6b-steg/wrrle.c:178: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 cmapcomment[80];
data/outguess-0.2.2/jpeg-6b-steg/wrrle.c:202:5:  [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(cmapcomment, "color_map_length=%d", cinfo->actual_number_of_colors);
data/outguess-0.2.2/jpeg-6b-steg/wrtarga.c:57: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 targaheader[18];
data/outguess-0.2.2/jpg.c:279:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pbitmap, &tbitmap, sizeof(tbitmap));
data/outguess-0.2.2/jpg.c:348:13:  [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).
		quality = atoi(parameter);
data/outguess-0.2.2/jpg.c:362:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dbitmap, image->bitmap, sizeof(*dbitmap));
data/outguess-0.2.2/jpg.c:377:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dbitmap, tmpmap, sizeof(*dbitmap));
data/outguess-0.2.2/jpg.c:707:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&image->img[(cinfo.output_scanline-1)*row_stride], buffer[0],
data/outguess-0.2.2/jpg.c:763: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 dummy_buf[BUFSIZE];
data/outguess-0.2.2/missing/md5.c:103:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(p, buf, len);
data/outguess-0.2.2/missing/md5.c:106:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, buf, t);
data/outguess-0.2.2/missing/md5.c:115:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ctx->in, buf, 64);
data/outguess-0.2.2/missing/md5.c:123:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ctx->in, buf, len);
data/outguess-0.2.2/missing/md5.c:132:15:  [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.
     unsigned char digest[16];
data/outguess-0.2.2/missing/md5.c:196: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.
     const unsigned char inraw[64];
data/outguess-0.2.2/missing/md5.c:294:11:  [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.
	unsigned char checksum[16];
data/outguess-0.2.2/missing/md5.h:16:11:  [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.
	unsigned char in[64];
data/outguess-0.2.2/missing/md5.h:21:24:  [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.
void MD5Final(unsigned char digest[16], struct MD5Context *context);
data/outguess-0.2.2/missing/md5.h:22:49:  [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.
void MD5Transform(uint32 buf[4], const unsigned char in[64]);
data/outguess-0.2.2/outguess.c:550:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(edata, data, 3);
data/outguess-0.2.2/outguess.c:553:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy (edata, data, adj);
data/outguess-0.2.2/outguess.c:659:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (data, encdata, declen);
data/outguess-0.2.2/outguess.c:729:12:  [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).
	if ((fd = open(name, O_RDONLY, 0)) == -1) {
data/outguess-0.2.2/outguess.c:850:13:  [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).
			derive = atoi(optarg);
data/outguess-0.2.2/outguess.c:853: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).
			cfg1.siter = atoi(optarg);
data/outguess-0.2.2/outguess.c:856: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).
			cfg2.siter = atoi(optarg);
data/outguess-0.2.2/outguess.c:865:22:  [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).
			cfg1.siterstart = atoi(optarg);
data/outguess-0.2.2/outguess.c:868:22:  [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).
			cfg2.siterstart = atoi(optarg);
data/outguess-0.2.2/outguess.c:920: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).
		fin = fopen(argv[0], "rb");
data/outguess-0.2.2/outguess.c:927:10:  [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).
		fout = fopen(argv[1], "wb");
data/outguess-0.2.2/outguess.c:989:4:  [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 derivekey[128];
data/outguess-0.2.2/pnm.c:163: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 magic[10];
data/outguess-0.2.2/arc.c:116:25:  [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).
  MD5Update(&ctx, type, strlen(type));
data/outguess-0.2.2/jpeg-6b-steg/ansi2knr.c:260: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/outguess-0.2.2/jpeg-6b-steg/ansi2knr.c:374: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/outguess-0.2.2/jpeg-6b-steg/ansi2knr.c:397: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/outguess-0.2.2/jpeg-6b-steg/ansi2knr.c:485:25:  [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(buf + strlen(buf) - 1, -1);
data/outguess-0.2.2/jpeg-6b-steg/ansi2knr.c:518: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) )
data/outguess-0.2.2/jpeg-6b-steg/cjpeg.c:92:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if ((c = getc(infile)) == EOF)
data/outguess-0.2.2/jpeg-6b-steg/jerror.h:232:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy((cinfo)->err->msg_parm.s, (str), JMSG_STR_PARM_MAX), \
data/outguess-0.2.2/jpeg-6b-steg/jerror.h:288:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy((cinfo)->err->msg_parm.s, (str), JMSG_STR_PARM_MAX), \
data/outguess-0.2.2/jpeg-6b-steg/jmemmac.c:242:14:  [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).
    *fName = strlen (info->temp_name);
data/outguess-0.2.2/jpeg-6b-steg/rdbmp.c:74:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if ((c = getc(infile)) == EOF)
data/outguess-0.2.2/jpeg-6b-steg/rdbmp.c:210:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if ((c = getc(infile)) == EOF)
data/outguess-0.2.2/jpeg-6b-steg/rdcolmap.c:88:22:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((header[i] = getc(infile)) == EOF)
data/outguess-0.2.2/jpeg-6b-steg/rdcolmap.c:104:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    R = getc(infile);
data/outguess-0.2.2/jpeg-6b-steg/rdcolmap.c:105:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    G = getc(infile);
data/outguess-0.2.2/jpeg-6b-steg/rdcolmap.c:106:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    B = getc(infile);
data/outguess-0.2.2/jpeg-6b-steg/rdcolmap.c:127:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ch = getc(infile);
data/outguess-0.2.2/jpeg-6b-steg/rdcolmap.c:130:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ch = getc(infile);
data/outguess-0.2.2/jpeg-6b-steg/rdcolmap.c:178:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  c = getc(infile);		/* save format discriminator for a sec */
data/outguess-0.2.2/jpeg-6b-steg/rdcolmap.c:207:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	R = getc(infile);
data/outguess-0.2.2/jpeg-6b-steg/rdcolmap.c:208:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	G = getc(infile);
data/outguess-0.2.2/jpeg-6b-steg/rdcolmap.c:209:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	B = getc(infile);
data/outguess-0.2.2/jpeg-6b-steg/rdcolmap.c:240:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  switch (getc(infile)) {
data/outguess-0.2.2/jpeg-6b-steg/rdjpgcom.c:64:21:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define NEXTBYTE()  getc(infile)
data/outguess-0.2.2/jpeg-6b-steg/rdppm.c:90:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ch = getc(infile);
data/outguess-0.2.2/jpeg-6b-steg/rdppm.c:93:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ch = getc(infile);
data/outguess-0.2.2/jpeg-6b-steg/rdppm.c:303:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (getc(source->pub.input_file) != 'P')
data/outguess-0.2.2/jpeg-6b-steg/rdppm.c:306:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  c = getc(source->pub.input_file); /* subformat discriminator character */
data/outguess-0.2.2/jpeg-6b-steg/rdswitch.c:27:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ch = getc(file);
data/outguess-0.2.2/jpeg-6b-steg/rdswitch.c:30:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ch = getc(file);
data/outguess-0.2.2/jpeg-6b-steg/rdtarga.c:94:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if ((c = getc(infile)) == EOF)
data/outguess-0.2.2/jpeg-6b-steg/rdtarga.c:130:36:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    sinfo->tga_pixel[i] = (U_CHAR) getc(infile);
data/outguess-0.2.2/jpeg-6b-steg/rdtarga.c:161:36:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    sinfo->tga_pixel[i] = (U_CHAR) getc(infile);
data/outguess-0.2.2/jpeg-6b-steg/wrjpgcom.c:78:21:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define NEXTBYTE()  getc(infile)
data/outguess-0.2.2/jpeg-6b-steg/wrjpgcom.c:458:36:  [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).
	  comment_length = (unsigned int) strlen(comment_arg);
data/outguess-0.2.2/jpeg-6b-steg/wrjpgcom.c:465:4:  [1] (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). Risk is low because the
  source is a constant character.
	  strcat(comment_arg, " ");
data/outguess-0.2.2/jpeg-6b-steg/wrjpgcom.c:469: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).
      comment_length = (unsigned int) strlen(comment_arg);
data/outguess-0.2.2/jpeg-6b-steg/wrjpgcom.c:546:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(src_file)) != EOF) {
data/outguess-0.2.2/missing/md5.c:307:33:  [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).
		MD5Update (&context, argv[j], strlen (argv[j]));
data/outguess-0.2.2/outguess.c:746:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, p, fs.st_size) != fs.st_size) {
data/outguess-0.2.2/outguess.c:948:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	image = srch->read(fin);
data/outguess-0.2.2/outguess.c:986:32:  [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).
		do_embed(&bitmap, data, key, strlen(key), &cfg1, &cumres);
data/outguess-0.2.2/outguess.c:1006: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).
					derivekey[strlen(key2)] = '\0';
data/outguess-0.2.2/outguess.c:1009:22:  [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).
					     derivekey, strlen(derivekey),
data/outguess-0.2.2/outguess.c:1095:41:  [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).
		arc4_initkey(&as,  "Encryption", key, strlen(key));
data/outguess-0.2.2/outguess.c:1098:38:  [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).
		iterator_init(&iter, &bitmap, key, strlen(key)); 
data/outguess-0.2.2/pnm.c:82:22:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while (isspace(c = getc(f)));
data/outguess-0.2.2/pnm.c:84:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while ((c = getc(f)) != '\n' && c != EOF);
data/outguess-0.2.2/pnm.c:180:2:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	getc(fin);
data/outguess-0.2.2/pnm.h:56:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	image *(*read)(FILE *);

ANALYSIS SUMMARY:

Hits = 151
Lines analyzed = 38906 in approximately 1.16 seconds (33668 lines/second)
Physical Source Lines of Code (SLOC) = 22623
Hits@level = [0] 331 [1]  50 [2]  78 [3]   6 [4]  17 [5]   0
Hits@level+ = [0+] 482 [1+] 151 [2+] 101 [3+]  23 [4+]  17 [5+]   0
Hits/KSLOC@level+ = [0+] 21.3058 [1+] 6.67462 [2+] 4.46448 [3+] 1.01666 [4+] 0.751448 [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.