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/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c
Examining data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c
Examining data/tiff-4.1.0+git191117/archive/tools/ras2tiff.c
Examining data/tiff-4.1.0+git191117/archive/tools/rasterfile.h
Examining data/tiff-4.1.0+git191117/archive/tools/sgi2tiff.c
Examining data/tiff-4.1.0+git191117/archive/tools/sgisv.c
Examining data/tiff-4.1.0+git191117/archive/tools/ycbcr.c
Examining data/tiff-4.1.0+git191117/contrib/addtiffo/addtiffo.c
Examining data/tiff-4.1.0+git191117/contrib/addtiffo/tif_overview.c
Examining data/tiff-4.1.0+git191117/contrib/addtiffo/tif_ovrcache.c
Examining data/tiff-4.1.0+git191117/contrib/addtiffo/tif_ovrcache.h
Examining data/tiff-4.1.0+git191117/contrib/dbs/tiff-bi.c
Examining data/tiff-4.1.0+git191117/contrib/dbs/tiff-grayscale.c
Examining data/tiff-4.1.0+git191117/contrib/dbs/tiff-palette.c
Examining data/tiff-4.1.0+git191117/contrib/dbs/tiff-rgb.c
Examining data/tiff-4.1.0+git191117/contrib/dbs/xtiff/patchlevel.h
Examining data/tiff-4.1.0+git191117/contrib/dbs/xtiff/xtiff.c
Examining data/tiff-4.1.0+git191117/contrib/dbs/xtiff/xtifficon.h
Examining data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c
Examining data/tiff-4.1.0+git191117/contrib/mfs/mfs_file.c
Examining data/tiff-4.1.0+git191117/contrib/oss-fuzz/tiff_read_rgba_fuzzer.cc
Examining data/tiff-4.1.0+git191117/contrib/pds/tif_imageiter.c
Examining data/tiff-4.1.0+git191117/contrib/pds/tif_imageiter.h
Examining data/tiff-4.1.0+git191117/contrib/pds/tif_pdsdirread.c
Examining data/tiff-4.1.0+git191117/contrib/pds/tif_pdsdirwrite.c
Examining data/tiff-4.1.0+git191117/contrib/ras/ras2tif.c
Examining data/tiff-4.1.0+git191117/contrib/ras/tif2ras.c
Examining data/tiff-4.1.0+git191117/contrib/stream/tiffstream.cpp
Examining data/tiff-4.1.0+git191117/contrib/stream/tiffstream.h
Examining data/tiff-4.1.0+git191117/contrib/tags/listtif.c
Examining data/tiff-4.1.0+git191117/contrib/tags/maketif.c
Examining data/tiff-4.1.0+git191117/contrib/tags/xtif_dir.c
Examining data/tiff-4.1.0+git191117/contrib/tags/xtiffio.h
Examining data/tiff-4.1.0+git191117/contrib/tags/xtiffiop.h
Examining data/tiff-4.1.0+git191117/contrib/win_dib/Tiffile.cpp
Examining data/tiff-4.1.0+git191117/contrib/win_dib/tiff2dib.c
Examining data/tiff-4.1.0+git191117/libtiff/mkg3states.c
Examining data/tiff-4.1.0+git191117/libtiff/mkspans.c
Examining data/tiff-4.1.0+git191117/libtiff/t4.h
Examining data/tiff-4.1.0+git191117/libtiff/tif_aux.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_close.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_codec.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_color.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_compress.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_config.vc.h
Examining data/tiff-4.1.0+git191117/libtiff/tif_config.wince.h
Examining data/tiff-4.1.0+git191117/libtiff/tif_dir.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_dir.h
Examining data/tiff-4.1.0+git191117/libtiff/tif_dirinfo.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_dirread.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_dirwrite.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_dumpmode.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_error.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_extension.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_fax3.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_fax3.h
Examining data/tiff-4.1.0+git191117/libtiff/tif_fax3sm.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_flush.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_getimage.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_jbig.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_jpeg.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_jpeg_12.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_luv.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_lzma.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_lzw.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_next.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_open.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_packbits.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_pixarlog.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_predict.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_predict.h
Examining data/tiff-4.1.0+git191117/libtiff/tif_print.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_read.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_stream.cxx
Examining data/tiff-4.1.0+git191117/libtiff/tif_strip.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_swab.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_thunder.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_tile.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_unix.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_version.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_vms.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_warning.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_webp.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_win32.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_wince.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_write.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_zip.c
Examining data/tiff-4.1.0+git191117/libtiff/tif_zstd.c
Examining data/tiff-4.1.0+git191117/libtiff/tiff.h
Examining data/tiff-4.1.0+git191117/libtiff/tiffconf.vc.h
Examining data/tiff-4.1.0+git191117/libtiff/tiffconf.wince.h
Examining data/tiff-4.1.0+git191117/libtiff/tiffio.h
Examining data/tiff-4.1.0+git191117/libtiff/tiffiop.h
Examining data/tiff-4.1.0+git191117/libtiff/tiffvers.h
Examining data/tiff-4.1.0+git191117/libtiff/uvcode.h
Examining data/tiff-4.1.0+git191117/libtiff/tif_ojpeg.c
Examining data/tiff-4.1.0+git191117/port/_strtol.h
Examining data/tiff-4.1.0+git191117/port/_strtoul.h
Examining data/tiff-4.1.0+git191117/port/dummy.c
Examining data/tiff-4.1.0+git191117/port/getopt.c
Examining data/tiff-4.1.0+git191117/port/lfind.c
Examining data/tiff-4.1.0+git191117/port/libport.h
Examining data/tiff-4.1.0+git191117/port/snprintf.c
Examining data/tiff-4.1.0+git191117/port/strcasecmp.c
Examining data/tiff-4.1.0+git191117/port/strtol.c
Examining data/tiff-4.1.0+git191117/port/strtoll.c
Examining data/tiff-4.1.0+git191117/port/strtoul.c
Examining data/tiff-4.1.0+git191117/port/strtoull.c
Examining data/tiff-4.1.0+git191117/test/ascii_tag.c
Examining data/tiff-4.1.0+git191117/test/check_tag.c
Examining data/tiff-4.1.0+git191117/test/custom_dir.c
Examining data/tiff-4.1.0+git191117/test/defer_strile_loading.c
Examining data/tiff-4.1.0+git191117/test/defer_strile_writing.c
Examining data/tiff-4.1.0+git191117/test/long_tag.c
Examining data/tiff-4.1.0+git191117/test/raw_decode.c
Examining data/tiff-4.1.0+git191117/test/rewrite_tag.c
Examining data/tiff-4.1.0+git191117/test/short_tag.c
Examining data/tiff-4.1.0+git191117/test/strip.c
Examining data/tiff-4.1.0+git191117/test/strip_rw.c
Examining data/tiff-4.1.0+git191117/test/test_arrays.c
Examining data/tiff-4.1.0+git191117/test/test_arrays.h
Examining data/tiff-4.1.0+git191117/test/testtypes.c
Examining data/tiff-4.1.0+git191117/test/tifftest.h
Examining data/tiff-4.1.0+git191117/tools/fax2ps.c
Examining data/tiff-4.1.0+git191117/tools/fax2tiff.c
Examining data/tiff-4.1.0+git191117/tools/pal2rgb.c
Examining data/tiff-4.1.0+git191117/tools/ppm2tiff.c
Examining data/tiff-4.1.0+git191117/tools/raw2tiff.c
Examining data/tiff-4.1.0+git191117/tools/rgb2ycbcr.c
Examining data/tiff-4.1.0+git191117/tools/thumbnail.c
Examining data/tiff-4.1.0+git191117/tools/tiff2bw.c
Examining data/tiff-4.1.0+git191117/tools/tiff2pdf.c
Examining data/tiff-4.1.0+git191117/tools/tiff2ps.c
Examining data/tiff-4.1.0+git191117/tools/tiff2rgba.c
Examining data/tiff-4.1.0+git191117/tools/tiffcmp.c
Examining data/tiff-4.1.0+git191117/tools/tiffcp.c
Examining data/tiff-4.1.0+git191117/tools/tiffcrop.c
Examining data/tiff-4.1.0+git191117/tools/tiffdither.c
Examining data/tiff-4.1.0+git191117/tools/tiffdump.c
Examining data/tiff-4.1.0+git191117/tools/tiffgt.c
Examining data/tiff-4.1.0+git191117/tools/tiffinfo.c
Examining data/tiff-4.1.0+git191117/tools/tiffinfoce.c
Examining data/tiff-4.1.0+git191117/tools/tiffmedian.c
Examining data/tiff-4.1.0+git191117/tools/tiffset.c
Examining data/tiff-4.1.0+git191117/tools/tiffsplit.c

FINAL RESULTS:

data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c:167:13:  [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(s+1, s+1+o);
data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c:183: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(s+1, s+html_codes[i].len);
data/tiff-4.1.0+git191117/contrib/pds/tif_imageiter.c:106:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(emsg, "Missing needed %s tag", photoTag);
data/tiff-4.1.0+git191117/contrib/pds/tif_imageiter.c:132:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(emsg, "Sorry, can not handle YCbCr images with %s=%d",
data/tiff-4.1.0+git191117/contrib/pds/tif_imageiter.c:149:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(emsg, "Sorry, can not handle RGB image with %s=%d",
data/tiff-4.1.0+git191117/contrib/pds/tif_imageiter.c:158:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(emsg, "Sorry, can not handle separated image with %s=%d",
data/tiff-4.1.0+git191117/contrib/pds/tif_imageiter.c:163:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(emsg, "Sorry, can not handle separated image with %s=%d",
data/tiff-4.1.0+git191117/contrib/pds/tif_imageiter.c:170:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(emsg, "Sorry, can not handle image with %s=%d",
data/tiff-4.1.0+git191117/contrib/ras/ras2tif.c:65:5:  [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, s1, pname, s2);
data/tiff-4.1.0+git191117/contrib/ras/ras2tif.c:235:6:  [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("failed a scanline write (%d)\n", row);
data/tiff-4.1.0+git191117/contrib/ras/tif2ras.c:60:5:  [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, s1, pname, s2);
data/tiff-4.1.0+git191117/libtiff/tif_compress.c:209:3:  [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(cd->info->name, name);
data/tiff-4.1.0+git191117/libtiff/tif_config.vc.h:109:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/tiff-4.1.0+git191117/libtiff/tif_config.vc.h:109:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/tiff-4.1.0+git191117/libtiff/tif_extension.c:105: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(psLink->name, name);
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:110:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(emsg, "Missing needed %s tag", photoTag);
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:121:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(emsg,
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:145:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(emsg, "Sorry, can not handle RGB image with %s=%d",
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:155:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(emsg,
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:161:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(emsg,
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:170:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(emsg, "Sorry, LogL data must have %s=%d",
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:178:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(emsg, "Sorry, LogLuv data must have %s=%d or %d",
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:183:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(emsg, "Sorry, can not handle LogLuv images with %s=%d",
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:188:33:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                                sprintf(emsg,
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:197:33:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                                sprintf(emsg,
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:206:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(emsg, "Sorry, can not handle image with %s=%d",
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:354:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(emsg, "Missing needed %s tag", photoTag);
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:386:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(emsg,
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:423:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(emsg, "Sorry, can not handle RGB image with %s=%d",
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:433:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(emsg, "Sorry, can not handle separated image with %s=%d",
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:438:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(emsg, "Sorry, can not handle separated image with %s=%d",
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:446:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(emsg, "Sorry, LogL data must have %s=%d",
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:456:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(emsg, "Sorry, LogLuv data must have %s=%d or %d",
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:461:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(emsg, "Sorry, can not handle LogLuv images with %s=%d",
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:472:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(emsg, "Sorry, can not handle image with %s=%d",
data/tiff-4.1.0+git191117/libtiff/tif_ojpeg.c:625: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(fd," " TIFF_UINT64_FORMAT,(TIFF_UINT64_T)sp->qtable_offset[m]);
data/tiff-4.1.0+git191117/libtiff/tif_ojpeg.c:632: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(fd," " TIFF_UINT64_FORMAT,(TIFF_UINT64_T)sp->dctable_offset[m]);
data/tiff-4.1.0+git191117/libtiff/tif_ojpeg.c:639: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(fd," " TIFF_UINT64_FORMAT,(TIFF_UINT64_T)sp->actable_offset[m]);
data/tiff-4.1.0+git191117/libtiff/tif_open.c:124: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(tif->tif_name, name);
data/tiff-4.1.0+git191117/libtiff/tif_unix.c:361:2:  [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.
	vfprintf(stderr, fmt, ap);
data/tiff-4.1.0+git191117/libtiff/tif_unix.c:371:2:  [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.
	vfprintf(stderr, fmt, ap);
data/tiff-4.1.0+git191117/libtiff/tif_vms.c:326:2:  [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.
	vfprintf(stderr, fmt, ap);
data/tiff-4.1.0+git191117/libtiff/tif_vms.c:341:2:  [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.
	vfprintf(stderr, fmt, ap);
data/tiff-4.1.0+git191117/libtiff/tif_win32.c:402:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define vsnprintf _vsnprintf
data/tiff-4.1.0+git191117/libtiff/tif_win32.c:411:2:  [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.
	vfprintf(stderr, fmt, ap);
data/tiff-4.1.0+git191117/libtiff/tif_win32.c:421:2:  [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.
	vfprintf(stderr, fmt, ap);
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:205:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(szTitle, szTitleText, szTmpModule);
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:207:2:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	vsprintf(szTmp, fmt, ap);
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:253:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(szTitle, szTitleText, szTmpModule);
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:255:2:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	vsprintf(szTmp, fmt, ap);
data/tiff-4.1.0+git191117/libtiff/tiffiop.h:59:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#undef snprintf
data/tiff-4.1.0+git191117/libtiff/tiffiop.h:60:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _TIFF_snprintf_f
data/tiff-4.1.0+git191117/libtiff/tiffiop.h:61:12:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
extern int snprintf(char* str, size_t size, const char* format, ...);
data/tiff-4.1.0+git191117/port/libport.h:59:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#undef vsnprintf
data/tiff-4.1.0+git191117/port/libport.h:60:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf _TIFF_vsnprintf_f
data/tiff-4.1.0+git191117/port/libport.h:62:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#undef snprintf
data/tiff-4.1.0+git191117/port/libport.h:63:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _TIFF_snprintf_f
data/tiff-4.1.0+git191117/port/libport.h:64:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
int snprintf(char* str, size_t size, const char* format, ...);
data/tiff-4.1.0+git191117/port/snprintf.c:36:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  count = vsnprintf(str, size, format, ap);
data/tiff-4.1.0+git191117/test/raw_decode.c:177: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(srcfile,srcdir);
data/tiff-4.1.0+git191117/test/raw_decode.c:179: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(srcfile,srcfilerel);
data/tiff-4.1.0+git191117/tools/tiff2ps.c:612:2:  [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(fd, startline, nc);
data/tiff-4.1.0+git191117/tools/tiffcmp.c:548:3:  [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(fmt, name, v1, v2);		\
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2508:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(&dump_array[j], (bitset) ? "1" : "0");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2545:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(&dump_array[j], (bitset) ? "1" : "0");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2580:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(&dump_array[j], (bitset) ? "1" : "0");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2617:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(&dump_array[j], (bitset) ? "1" : "0");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2653:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(&dump_array[j], (bitset) ? "1" : "0");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2679:5:  [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.
    vfprintf(dumpfile, msg, ap);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:6768:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(&bitarray[j], (bitset) ? "1" : "0");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:6775:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(&bitarray[j], (bitset) ? "1" : "0");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:6794:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(&bitarray[j], (bitset) ? "1" : "0");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:6811:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(&bitarray[j], (bitset) ? "1" : "0");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:6836:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(&bitarray[j], (bitset) ? "1" : "0");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:6879:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(&bitarray[j], (bitset) ? "1" : "0");
data/tiff-4.1.0+git191117/tools/tiffdump.c:720: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(fd, bytefmt, sep, *data++), sep = " ";
data/tiff-4.1.0+git191117/tools/tiffdump.c:724: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(fd, sbytefmt, sep, *(char *)data++), sep = " ";
data/tiff-4.1.0+git191117/tools/tiffdump.c:728: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(fd, bytefmt, sep, *data++), sep = " ";
data/tiff-4.1.0+git191117/tools/tiffdump.c:736: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(fd, shortfmt, sep, *wp++), sep = " ";
data/tiff-4.1.0+git191117/tools/tiffdump.c:742: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(fd, sshortfmt, sep, *wp++), sep = " ";
data/tiff-4.1.0+git191117/tools/tiffdump.c:748: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(fd, longfmt, sep, (unsigned long) *lp++);
data/tiff-4.1.0+git191117/tools/tiffdump.c:756: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(fd, slongfmt, sep, (long) *lp++), sep = " ";
data/tiff-4.1.0+git191117/tools/tiffdump.c:765: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(fd, long8fmt, sep, val);
data/tiff-4.1.0+git191117/tools/tiffdump.c:776:25:  [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(fd, slong8fmt, sep, val);
data/tiff-4.1.0+git191117/tools/tiffdump.c:789:5:  [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(fd, rationalfmt, sep,
data/tiff-4.1.0+git191117/tools/tiffdump.c:803:5:  [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(fd, srationalfmt, sep,
data/tiff-4.1.0+git191117/tools/tiffdump.c:813: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(fd, floatfmt, sep, *fp++), sep = " ";
data/tiff-4.1.0+git191117/tools/tiffdump.c:819: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(fd, doublefmt, sep, *dp++), sep = " ";
data/tiff-4.1.0+git191117/tools/tiffdump.c:825: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(fd, ifdfmt, sep, (unsigned long) *lp++);
data/tiff-4.1.0+git191117/tools/tiffdump.c:834: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(fd, ifd8fmt, sep, (unsigned __int64) *llp++);
data/tiff-4.1.0+git191117/tools/tiffdump.c:836: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(fd, ifd8fmt, sep, (unsigned long long) *llp++);
data/tiff-4.1.0+git191117/tools/tiffdump.c:857:2:  [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.
	vfprintf(fd, fmt, ap);
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:255: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, "c:r:o:h")) != -1) {
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:145:17:  [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, "c:r:")) != -1)
data/tiff-4.1.0+git191117/archive/tools/ras2tiff.c:76: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, "c:r:h")) != -1)
data/tiff-4.1.0+git191117/archive/tools/sgi2tiff.c:66: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, "c:p:r:")) != -1)
data/tiff-4.1.0+git191117/archive/tools/sgisv.c:62: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, "c:p:r:")) != -1)
data/tiff-4.1.0+git191117/libtiff/mkg3states.c:43:12:  [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.
extern int getopt(int argc, char * const argv[], const char *optstring);
data/tiff-4.1.0+git191117/libtiff/mkg3states.c:390:17:  [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, "c:s:bp")) != -1)
data/tiff-4.1.0+git191117/libtiff/tif_dirread.c:5665:24:  [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.
		const char* pszMax = getenv("LIBTIFF_STRILE_ARRAY_MAX_RESIZE_COUNT");
data/tiff-4.1.0+git191117/libtiff/tif_jpeg.c:384:38:  [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.
        sz_max_allowed_scan_number = getenv("LIBTIFF_JPEG_MAX_ALLOWED_SCAN_NUMBER");
data/tiff-4.1.0+git191117/libtiff/tif_jpeg.c:1223:17:  [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.
                getenv("LIBTIFF_ALLOW_LARGE_LIBJPEG_MEM_ALLOC") == NULL )
data/tiff-4.1.0+git191117/libtiff/tif_jpeg.c:2460:17:  [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 (getenv("JPEGMEM") == NULL)
data/tiff-4.1.0+git191117/port/getopt.c:54:1:  [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.
getopt(int argc, char * const argv[], const char *optstring)
data/tiff-4.1.0+git191117/port/libport.h:27:5:  [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.
int getopt(int argc, char * const argv[], const char *optstring);
data/tiff-4.1.0+git191117/test/raw_decode.c:170:16:  [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 ((srcdir = getenv("srcdir")) == NULL) {
data/tiff-4.1.0+git191117/tools/fax2ps.c:333:17:  [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, "l:p:x:y:W:H:wS")) != -1)
data/tiff-4.1.0+git191117/tools/fax2tiff.c:113: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, "R:X:o:r:1234ABLMPUW5678abcflmprsuvwz?")) != -1)
data/tiff-4.1.0+git191117/tools/pal2rgb.c:88: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, "C:c:p:r:")) != -1)
data/tiff-4.1.0+git191117/tools/ppm2tiff.c:51:12:  [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.
extern int getopt(int argc, char * const argv[], const char *optstring);
data/tiff-4.1.0+git191117/tools/ppm2tiff.c:110: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, "c:r:R:")) != -1)
data/tiff-4.1.0+git191117/tools/raw2tiff.c:63:12:  [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.
extern int getopt(int argc, char * const argv[], const char *optstring);
data/tiff-4.1.0+git191117/tools/raw2tiff.c:113: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, "c:r:H:w:l:b:d:LMp:si:o:h")) != -1) {
data/tiff-4.1.0+git191117/tools/rgb2ycbcr.c:78: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, "c:h:r:v:z")) != -1)
data/tiff-4.1.0+git191117/tools/thumbnail.c:43:12:  [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.
extern int getopt(int argc, char * const argv[], const char *optstring);
data/tiff-4.1.0+git191117/tools/thumbnail.c:84:17:  [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, "w:h:c:")) != -1) {
data/tiff-4.1.0+git191117/tools/tiff2bw.c:136: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, "c:r:R:G:B:")) != -1)
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:57:12:  [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.
extern int getopt(int argc, char * const argv[], const char *optstring);
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:619: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.
	       (c = getopt(argc, argv,
data/tiff-4.1.0+git191117/tools/tiff2ps.c:255: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, "b:d:h:H:W:L:i:w:l:o:O:P:C:r:t:acemxyzps1238DT")) != -1)
data/tiff-4.1.0+git191117/tools/tiff2rgba.c:71: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, "c:r:t:bn8")) != -1)
data/tiff-4.1.0+git191117/tools/tiffcmp.c:43:12:  [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.
extern int getopt(int argc, char * const argv[], const char *optstring);
data/tiff-4.1.0+git191117/tools/tiffcmp.c:74: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, "ltz:")) != -1)
data/tiff-4.1.0+git191117/tools/tiffcp.c:55:12:  [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.
extern int getopt(int argc, char * const argv[], const char *optstring);
data/tiff-4.1.0+git191117/tools/tiffcp.c:176: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, ",:b:c:f:l:o:p:r:w:aistBLMC8x")) != -1)
data/tiff-4.1.0+git191117/tools/tiffcrop.c:132:12:  [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.
extern int getopt(int argc, char * const argv[], const char *optstring);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:1614:17:  [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,
data/tiff-4.1.0+git191117/tools/tiffdither.c:216: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, "c:f:r:t:")) != -1)
data/tiff-4.1.0+git191117/tools/tiffdump.c:54:12:  [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.
extern int getopt(int argc, char * const argv[], const char *optstring);
data/tiff-4.1.0+git191117/tools/tiffdump.c:121: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, "m:o:h")) != -1) {
data/tiff-4.1.0+git191117/tools/tiffgt.c:52:12:  [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.
extern int getopt(int argc, char * const argv[], const char *optstring);
data/tiff-4.1.0+git191117/tools/tiffgt.c:105:21:  [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, "d:o:p:eflmsvw?")) != -1)
data/tiff-4.1.0+git191117/tools/tiffinfo.c:78: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, "f:o:cdDSjilmrsvwz0123456789")) != -1)
data/tiff-4.1.0+git191117/tools/tiffinfoce.c:44:5:  [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.
int getopt(int argc, char * const argv[], const char *optstring);
data/tiff-4.1.0+git191117/tools/tiffinfoce.c:67: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, "f:o:cdDSjilmrsvwz0123456789")) != -1)
data/tiff-4.1.0+git191117/tools/tiffmedian.c:130: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, "c:C:r:f")) != -1)
data/tiff-4.1.0+git191117/tools/tiffsplit.c:34:12:  [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.
extern int getopt(int argc, char * const argv[], const char *optstring);
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:135: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	bType[2];       /* Signature "BM" */
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:262:19:  [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).
			rowsperstrip = atoi(optarg);
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:291:8:  [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(infilename, O_RDONLY|O_BINARY, 0);
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:868: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).
			quality = atoi(cp+1);
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:879: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).
			predictor = atoi(cp+1);
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:884: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).
			predictor = atoi(cp+1);
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:919: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 buf[BUFSIZ];
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:89: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 buf[BUFSIZ];
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:103:10:  [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 suffix[4096];
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:104:10:  [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 stack[4096];
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:112:10:  [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 globalmap[COLSIZE][3];/* RGB values for global color map */
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:152: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).
		    rowsperstrip = atoi(optarg);
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:164: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(imagename, "rb")) != NULL) {
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:172: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(filename, "rb")) == NULL) {
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:191: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).
			predictor = atoi(cp+1);
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:196: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).
			predictor = atoi(cp+1);
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:233: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 buf[6];
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:259:14:  [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 buf[7];
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:282:14:  [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 buf[9];
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:284:14:  [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 localmap[256][3];
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:346: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 buf[255];
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:369:14:  [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 buf[255];
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:502: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.
initcolors(unsigned char colormap[COLSIZE][3], int ncolors)
data/tiff-4.1.0+git191117/archive/tools/ras2tiff.c:83:19:  [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).
			rowsperstrip = atoi(optarg);
data/tiff-4.1.0+git191117/archive/tools/ras2tiff.c:91: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[optind], "rb");
data/tiff-4.1.0+git191117/archive/tools/ras2tiff.c:270: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).
			quality = atoi(cp+1);
data/tiff-4.1.0+git191117/archive/tools/ras2tiff.c:281: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).
			predictor = atoi(cp+1);
data/tiff-4.1.0+git191117/archive/tools/ras2tiff.c:286: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).
			predictor = atoi(cp+1);
data/tiff-4.1.0+git191117/archive/tools/ras2tiff.c:319: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 buf[BUFSIZ];
data/tiff-4.1.0+git191117/archive/tools/rasterfile.h:7: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	ras_magic[4];		/* magic number */
data/tiff-4.1.0+git191117/archive/tools/sgi2tiff.c:89:19:  [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).
			rowsperstrip = atoi(optarg);
data/tiff-4.1.0+git191117/archive/tools/sgi2tiff.c:167: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).
			quality = atoi(cp+1);
data/tiff-4.1.0+git191117/archive/tools/sgi2tiff.c:178: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).
			predictor = atoi(cp+1);
data/tiff-4.1.0+git191117/archive/tools/sgi2tiff.c:183: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).
			predictor = atoi(cp+1);
data/tiff-4.1.0+git191117/archive/tools/sgi2tiff.c:321: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 buf[BUFSIZ];
data/tiff-4.1.0+git191117/archive/tools/sgisv.c:75: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).
					quality = atoi(cp+1);
data/tiff-4.1.0+git191117/archive/tools/sgisv.c:82:18:  [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).
					predictor = atoi(cp+1);
data/tiff-4.1.0+git191117/archive/tools/sgisv.c:96:19:  [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).
			rowsperstrip = atoi(optarg);
data/tiff-4.1.0+git191117/archive/tools/sgisv.c:111:7:  [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).
		    atoi(argv[optind+1]), atoi(argv[optind+2]),
data/tiff-4.1.0+git191117/archive/tools/sgisv.c:111:29:  [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).
		    atoi(argv[optind+1]), atoi(argv[optind+2]),
data/tiff-4.1.0+git191117/archive/tools/sgisv.c:112:7:  [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).
		    atoi(argv[optind+3]), atoi(argv[optind+4]));
data/tiff-4.1.0+git191117/archive/tools/sgisv.c:112:29:  [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).
		    atoi(argv[optind+3]), atoi(argv[optind+4]));
data/tiff-4.1.0+git191117/archive/tools/sgisv.c:144: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 buf[BUFSIZ];
data/tiff-4.1.0+git191117/contrib/addtiffo/addtiffo.c:124:39:  [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).
        anOverviews[nOverviewCount] = atoi(argv[nOverviewCount+2]);
data/tiff-4.1.0+git191117/contrib/addtiffo/tif_overview.c:818:9:  [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( panRed2, panRedMap, 2 * nColorCount );
data/tiff-4.1.0+git191117/contrib/addtiffo/tif_overview.c:819:9:  [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( panGreen2, panGreenMap, 2 * nColorCount );
data/tiff-4.1.0+git191117/contrib/addtiffo/tif_overview.c:820:9:  [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( panBlue2, panBlueMap, 2 * nColorCount );
data/tiff-4.1.0+git191117/contrib/dbs/tiff-grayscale.c:54:27:  [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).
         bits_per_pixel = atoi(argv[2]);
data/tiff-4.1.0+git191117/contrib/dbs/tiff-palette.c:52:27:  [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).
         bits_per_pixel = atoi(argv[2]);
data/tiff-4.1.0+git191117/contrib/dbs/xtiff/xtiff.c:509: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 buffer[BUFSIZ];
data/tiff-4.1.0+git191117/contrib/dbs/xtiff/xtiff.c:1249: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 message[80];
data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c:261:20:  [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
data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c:431:25:  [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).
                ifile = fopen(argv[++i], "rb");
data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c:433:25:  [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).
                ifile = fopen(argv[++i], "rt");
data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c:442:25:  [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).
                ofile = fopen(argv[++i], "wt");
data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c:444:25:  [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).
                ofile = fopen(argv[++i], "wb");
data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c:514:51:  [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).
                        dataset = (unsigned char) atoi(newstr);
data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c:517:52:  [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).
                          recnum = (unsigned char) atoi(newstr);
data/tiff-4.1.0+git191117/contrib/mfs/mfs_file.c:64: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 *buf[MAX_BUFFS];        /* Memory for each open buf */
data/tiff-4.1.0+git191117/contrib/mfs/mfs_file.c:344:9:  [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 (clnt_buf, (void *) (buf[fd] + buf_off[fd]), size);
data/tiff-4.1.0+git191117/contrib/mfs/mfs_file.c:388:9:  [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 ((buf[fd] + buf_off[fd]), clnt_buf, size);
data/tiff-4.1.0+git191117/contrib/mfs/mfs_file.c:403:9:  [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 ((buf[fd] + buf_off[fd]), clnt_buf, size);
data/tiff-4.1.0+git191117/contrib/oss-fuzz/tiff_read_rgba_fuzzer.cc:124: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).
            nLoops = atoi(argv[i+1]);
data/tiff-4.1.0+git191117/contrib/oss-fuzz/tiff_read_rgba_fuzzer.cc:151:15:  [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).
    FILE* f = fopen(pszFilename, "rb");
data/tiff-4.1.0+git191117/contrib/pds/tif_imageiter.c:71:61:  [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.
TIFFImageIterBegin(TIFFImageIter* img, TIFF* tif, int stop, char emsg[1024])
data/tiff-4.1.0+git191117/contrib/pds/tif_imageiter.c:235: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 emsg[1024];
data/tiff-4.1.0+git191117/contrib/pds/tif_imageiter.c:480: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 emsg[1024];
data/tiff-4.1.0+git191117/contrib/pds/tif_pdsdirread.c:860:6:  [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 c[2];
data/tiff-4.1.0+git191117/contrib/pds/tif_pdsdirwrite.c:586:33:  [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.
		if (!TIFFWriteData(tif, dir, (char *)table[i]))
data/tiff-4.1.0+git191117/contrib/pds/tif_pdsdirwrite.c:733: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 buf[10 * sizeof(double)];
data/tiff-4.1.0+git191117/contrib/ras/ras2tif.c:108: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(datetime, "%04d:%02d:%02d %02d:%02d:%02d",
data/tiff-4.1.0+git191117/contrib/ras/ras2tif.c:149:22:  [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).
    } else if ((fp = fopen(inf, "r")) == NULL)
data/tiff-4.1.0+git191117/contrib/ras/tif2ras.c:299:6:  [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(outp, inp, width);
data/tiff-4.1.0+git191117/contrib/ras/tif2ras.c:315: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(outf, "w")))
data/tiff-4.1.0+git191117/contrib/tags/maketif.c:60: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[WIDTH];
data/tiff-4.1.0+git191117/contrib/win_dib/Tiffile.cpp:94:13:  [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 emsg[1024];
data/tiff-4.1.0+git191117/contrib/win_dib/Tiffile.cpp:98:17:  [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 emsg[1024];
data/tiff-4.1.0+git191117/contrib/win_dib/tiff2dib.c:191:28:  [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(lpBits, &buf[(int) (l*LineSize)], (int)
data/tiff-4.1.0+git191117/libtiff/mkg3states.c:412: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).
    fd = fopen(outputfile, "w");
data/tiff-4.1.0+git191117/libtiff/mkspans.c:35: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 runs[256];
data/tiff-4.1.0+git191117/libtiff/mkspans.c:54: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 runs[2][256];
data/tiff-4.1.0+git191117/libtiff/tif_codec.c:115: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.
        char compression_code[20];
data/tiff-4.1.0+git191117/libtiff/tif_codec.c:117:9:  [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(compression_code, "%d",tif->tif_dir.td_compression );
data/tiff-4.1.0+git191117/libtiff/tif_dirread.c:4129:17:  [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(new_sampleinfo, tif->tif_dir.td_sampleinfo, old_extrasamples * sizeof(uint16));
data/tiff-4.1.0+git191117/libtiff/tif_dirread.c:5668:27:  [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).
			max_nstrips = (uint32) atoi(pszMax);
data/tiff-4.1.0+git191117/libtiff/tif_dirread.c:6021:14:  [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 buffer[2 * IO_CACHE_PAGE_SIZE];
data/tiff-4.1.0+git191117/libtiff/tif_dirwrite.c:2913:9:  [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( &entry_tag, direntry_raw + 0, sizeof(uint16) );
data/tiff-4.1.0+git191117/libtiff/tif_dirwrite.c:2934: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( &entry_type, direntry_raw + 2, sizeof(uint16) );
data/tiff-4.1.0+git191117/libtiff/tif_dirwrite.c:2942:9:  [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( &value, direntry_raw + 4, sizeof(uint32) );
data/tiff-4.1.0+git191117/libtiff/tif_dirwrite.c:2947:9:  [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( &value, direntry_raw + 8, sizeof(uint32) );
data/tiff-4.1.0+git191117/libtiff/tif_dirwrite.c:2954:9:  [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( &entry_count, direntry_raw + 4, sizeof(uint64) );
data/tiff-4.1.0+git191117/libtiff/tif_dirwrite.c:2958:9:  [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( &entry_offset, direntry_raw + 12, sizeof(uint64) );
data/tiff-4.1.0+git191117/libtiff/tif_dirwrite.c:3051:9:  [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( buf_to_write, data, count * TIFFDataWidth(datatype) );
data/tiff-4.1.0+git191117/libtiff/tif_dirwrite.c:3199:9:  [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( &entry_offset, buf_to_write, count*TIFFDataWidth(datatype));
data/tiff-4.1.0+git191117/libtiff/tif_dirwrite.c:3210: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( direntry_raw + 2, &entry_type, sizeof(uint16) );
data/tiff-4.1.0+git191117/libtiff/tif_dirwrite.c:3219:9:  [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( direntry_raw + 4, &value, sizeof(uint32) );
data/tiff-4.1.0+git191117/libtiff/tif_dirwrite.c:3224:9:  [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( direntry_raw + 8, &value, sizeof(uint32) );
data/tiff-4.1.0+git191117/libtiff/tif_dirwrite.c:3230:9:  [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( direntry_raw + 4, &entry_count, sizeof(uint64) );
data/tiff-4.1.0+git191117/libtiff/tif_dirwrite.c:3234:9:  [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( direntry_raw + 12, &entry_offset, sizeof(uint64) );
data/tiff-4.1.0+git191117/libtiff/tif_fax3.c:789:23:  [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 const unsigned char zeroruns[256] = {
data/tiff-4.1.0+git191117/libtiff/tif_fax3.c:807:23:  [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 const unsigned char oneruns[256] = {
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:74:28:  [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.
TIFFRGBAImageOK(TIFF* tif, char emsg[1024])
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:81:3:  [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(emsg, "Sorry, requested compression method is not configured");
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:92:4:  [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(emsg, "Sorry, can not handle images with %d-bit samples",
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:97:17:  [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(emsg, "Sorry, can not handle images with IEEE floating-point samples");
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:265:61:  [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.
TIFFRGBAImageBegin(TIFFRGBAImage* img, TIFF* tif, int stop, char emsg[1024])
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:304:4:  [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(emsg, "Sorry, can not handle images with %d-bit samples",
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:362: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(emsg, "Missing required \"Colormap\" tag");
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:372: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(emsg, "Out of memory for colormap copy");
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:483:4:  [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(emsg, "Sorry, can not handle image");
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:488:4:  [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(emsg, "Sorry, can not handle image");
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:523: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 emsg[1024] = "";
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:2899: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 	emsg[1024] = "";
data/tiff-4.1.0+git191117/libtiff/tif_getimage.c:2957: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 	emsg[1024] = "";
data/tiff-4.1.0+git191117/libtiff/tif_jpeg.c:220: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[JMSG_LENGTH_MAX];
data/tiff-4.1.0+git191117/libtiff/tif_jpeg.c:236: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[JMSG_LENGTH_MAX];
data/tiff-4.1.0+git191117/libtiff/tif_jpeg.c:386:43:  [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).
            sp->max_allowed_scan_number = atoi(sz_max_allowed_scan_number);
data/tiff-4.1.0+git191117/libtiff/tif_jpeg.c:1455:59:  [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 *) buf)[iValue] =
data/tiff-4.1.0+git191117/libtiff/tif_lzma.c:439: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(&sp->stream, &tmp_stream, sizeof(lzma_stream));
data/tiff-4.1.0+git191117/libtiff/tif_ojpeg.c:2529: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[JMSG_LENGTH_MAX];
data/tiff-4.1.0+git191117/libtiff/tif_ojpeg.c:2537: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[JMSG_LENGTH_MAX];
data/tiff-4.1.0+git191117/libtiff/tif_predict.c:728:9:  [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( working_copy, bp0, cc0 );
data/tiff-4.1.0+git191117/libtiff/tif_print.c:79: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.
			    (unsigned int) ((unsigned char *) raw_data)[j]);
data/tiff-4.1.0+git191117/libtiff/tif_print.c:192:13:  [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.
				fputc(((char *)raw_data)[i], fd);
data/tiff-4.1.0+git191117/libtiff/tif_swab.c:208:23:  [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 const unsigned char TIFFBitRevTable[256] = {
data/tiff-4.1.0+git191117/libtiff/tif_swab.c:242:23:  [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 const unsigned char TIFFNoBitRevTable[256] = {
data/tiff-4.1.0+git191117/libtiff/tif_unix.c:238: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(name, m, 0666);
data/tiff-4.1.0+git191117/libtiff/tif_unix.c:346: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(d, s, (size_t) c);
data/tiff-4.1.0+git191117/libtiff/tif_vms.c:118: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 name[256];
data/tiff-4.1.0+git191117/libtiff/tif_vms.c:121: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 *inadr[2], *retadr[2];
data/tiff-4.1.0+git191117/libtiff/tif_vms.c:179: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 *inadr[2];
data/tiff-4.1.0+git191117/libtiff/tif_vms.c:251:8:  [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(name, m, 0666,
data/tiff-4.1.0+git191117/libtiff/tif_vms.c:254:8:  [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(name, m, 0666, "mbc = 32", "ctx = stm");
data/tiff-4.1.0+git191117/libtiff/tif_vms.c:300: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(d, s, (size_t) c);
data/tiff-4.1.0+git191117/libtiff/tif_vms.c:390: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		b[8];
data/tiff-4.1.0+git191117/libtiff/tif_vms.c:398: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		b[4];
data/tiff-4.1.0+git191117/libtiff/tif_webp.c:114: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(sp->pBuffer + sp->buffer_offset,
data/tiff-4.1.0+git191117/libtiff/tif_webp.c:163:7:  [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(op,   
data/tiff-4.1.0+git191117/libtiff/tif_win32.c:390: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(d, s, (size_t) c);
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:90:16:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    nWideLen = MultiByteToWideChar(CP_ACP, 0, name, nLen, NULL, 0);
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:98:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_ACP, 0, name, nLen, wchName, nWideLen);
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:211:16:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    nWideLen = MultiByteToWideChar(CP_ACP, 0, szTitle, -1, NULL, 0);
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:213:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_ACP, 0, szTitle, -1, szWideTitle, nWideLen);
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:215:16:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    nWideLen = MultiByteToWideChar(CP_ACP, 0, szTmp, -1, NULL, 0);
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:217:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_ACP, 0, szTmp, -1, szWideMsg, nWideLen);
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:259:16:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    nWideLen = MultiByteToWideChar(CP_ACP, 0, szTitle, -1, NULL, 0);
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:261:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_ACP, 0, szTitle, -1, szWideTitle, nWideLen);
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:263:16:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    nWideLen = MultiByteToWideChar(CP_ACP, 0, szTmp, -1, NULL, 0);
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:265:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_ACP, 0, szTmp, -1, szWideMsg, nWideLen);
data/tiff-4.1.0+git191117/test/custom_dir.c:64: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	buf[SPP] = { 0, 127, 255 };
data/tiff-4.1.0+git191117/test/defer_strile_loading.c:80: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.
            unsigned char tilebuffer[256];
data/tiff-4.1.0+git191117/test/defer_strile_loading.c:102: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).
    f = fopen(filename, "rb");
data/tiff-4.1.0+git191117/test/defer_strile_loading.c:125: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.
                    unsigned char tilebuffer[256];
data/tiff-4.1.0+git191117/test/defer_strile_loading.c:143: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.
                    unsigned char inputbuffer[256];
data/tiff-4.1.0+git191117/test/defer_strile_loading.c:144: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.
                    unsigned char tilebuffer[256];
data/tiff-4.1.0+git191117/test/defer_strile_loading.c:199: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.
                    unsigned char inputbuffer[1];
data/tiff-4.1.0+git191117/test/defer_strile_loading.c:200: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.
                    unsigned char tilebuffer[1];
data/tiff-4.1.0+git191117/test/defer_strile_writing.c:143: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.
            unsigned char tilebuffer[256];
data/tiff-4.1.0+git191117/test/defer_strile_writing.c:178:26:  [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 tilebuffer[256];
data/tiff-4.1.0+git191117/test/long_tag.c:62: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	buf[3] = { 0, 127, 255 };
data/tiff-4.1.0+git191117/test/raw_decode.c:159: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 srcfile[1024];
data/tiff-4.1.0+git191117/test/rewrite_tag.c:50:14:  [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   buf[10] = {0,0,0,0,0,0,0,0,0,0};
data/tiff-4.1.0+git191117/test/short_tag.c:83: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	buf[SPP] = { 0, 127, 255 };
data/tiff-4.1.0+git191117/test/test_arrays.c:34:16:  [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 byte_array1[XSIZE * YSIZE]=
data/tiff-4.1.0+git191117/test/test_arrays.c:109:16:  [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 byte_array2[YSIZE * XSIZE] =
data/tiff-4.1.0+git191117/test/test_arrays.c:184:16:  [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 byte_array3[YSIZE * XSIZE] =
data/tiff-4.1.0+git191117/tools/fax2ps.c:345:27:  [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).
	    pageNumber = (uint16)atoi(optarg);
data/tiff-4.1.0+git191117/tools/fax2ps.c:367: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).
	    maxline = atoi(optarg);
data/tiff-4.1.0+git191117/tools/fax2ps.c:389: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 buf[16*1024];
data/tiff-4.1.0+git191117/tools/fax2ps.c:391:7:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	fd = tmpfile();
data/tiff-4.1.0+git191117/tools/fax2ps.c:444: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 buf[BUFSIZ];
data/tiff-4.1.0+git191117/tools/fax2tiff.c:154:21:  [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).
			xsize = (uint32) atoi(optarg);
data/tiff-4.1.0+git191117/tools/fax2tiff.c:202:22:  [2] (integer) atol:
  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).
			defrowsperstrip = atol(optarg);
data/tiff-4.1.0+git191117/tools/fax2tiff.c:272: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[optind], "rb");
data/tiff-4.1.0+git191117/tools/fax2tiff.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 buf[BUFSIZ];
data/tiff-4.1.0+git191117/tools/pal2rgb.c:91:11:  [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).
			cmap = atoi(optarg);
data/tiff-4.1.0+git191117/tools/pal2rgb.c:106:19:  [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).
			rowsperstrip = atoi(optarg);
data/tiff-4.1.0+git191117/tools/pal2rgb.c:262: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).
			quality = atoi(cp+1);
data/tiff-4.1.0+git191117/tools/pal2rgb.c:273: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).
			predictor = atoi(cp+1);
data/tiff-4.1.0+git191117/tools/pal2rgb.c:278: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).
			predictor = atoi(cp+1);
data/tiff-4.1.0+git191117/tools/pal2rgb.c:453: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 buf[BUFSIZ];
data/tiff-4.1.0+git191117/tools/ppm2tiff.c:117:19:  [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).
			rowsperstrip = atoi(optarg);
data/tiff-4.1.0+git191117/tools/ppm2tiff.c:138: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(infile, "rb");
data/tiff-4.1.0+git191117/tools/ppm2tiff.c:327: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).
			quality = atoi(cp+1);
data/tiff-4.1.0+git191117/tools/ppm2tiff.c:343: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).
			predictor = atoi(cp+1);
data/tiff-4.1.0+git191117/tools/ppm2tiff.c:348: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).
			predictor = atoi(cp+1);
data/tiff-4.1.0+git191117/tools/ppm2tiff.c:381: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 buf[BUFSIZ];
data/tiff-4.1.0+git191117/tools/raw2tiff.c:120:19:  [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).
			rowsperstrip = atoi(optarg);
data/tiff-4.1.0+git191117/tools/raw2tiff.c:123:15:  [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).
			hdr_size = atoi(optarg);
data/tiff-4.1.0+git191117/tools/raw2tiff.c:126: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).
			width = atoi(optarg);
data/tiff-4.1.0+git191117/tools/raw2tiff.c:129: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).
			length = atoi(optarg);
data/tiff-4.1.0+git191117/tools/raw2tiff.c:132: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).
			nbands = atoi(optarg);
data/tiff-4.1.0+git191117/tools/raw2tiff.c:205:14:  [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(argv[optind], O_RDONLY|O_BINARY, 0);
data/tiff-4.1.0+git191117/tools/raw2tiff.c:310:6:  [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(buf1 + (col*nbands+band)*depth,
data/tiff-4.1.0+git191117/tools/raw2tiff.c:491:20:  [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.
				X = ((unsigned char *)buf1)[i];
data/tiff-4.1.0+git191117/tools/raw2tiff.c:492:20:  [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.
				Y = ((unsigned char *)buf2)[i];
data/tiff-4.1.0+git191117/tools/raw2tiff.c:500:18:  [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.
				X = ((signed char *)buf1)[i];
data/tiff-4.1.0+git191117/tools/raw2tiff.c:501:18:  [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.
				Y = ((signed char *)buf2)[i];
data/tiff-4.1.0+git191117/tools/raw2tiff.c:586: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).
			quality = atoi(cp+1);
data/tiff-4.1.0+git191117/tools/raw2tiff.c:597: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).
			predictor = atoi(cp+1);
data/tiff-4.1.0+git191117/tools/raw2tiff.c:602: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).
			predictor = atoi(cp+1);
data/tiff-4.1.0+git191117/tools/raw2tiff.c:672: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 buf[BUFSIZ];
data/tiff-4.1.0+git191117/tools/rgb2ycbcr.c:95:23:  [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).
			horizSubSampling = atoi(optarg);
data/tiff-4.1.0+git191117/tools/rgb2ycbcr.c:100: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).
			vertSubSampling = atoi(optarg);
data/tiff-4.1.0+git191117/tools/rgb2ycbcr.c:105:19:  [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).
			rowsperstrip = atoi(optarg);
data/tiff-4.1.0+git191117/tools/rgb2ycbcr.c:338: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 buf[2048];
data/tiff-4.1.0+git191117/tools/rgb2ycbcr.c:378: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 buf[BUFSIZ];
data/tiff-4.1.0+git191117/tools/thumbnail.c:313:19:  [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.
		buf = (unsigned char *)_TIFFrealloc(buf, (tmsize_t)bytecounts[s]);
data/tiff-4.1.0+git191117/tools/thumbnail.c:347:19:  [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.
		buf = (unsigned char *)_TIFFrealloc(buf, (tmsize_t)bytecounts[t]);
data/tiff-4.1.0+git191117/tools/thumbnail.c:672: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 buf[BUFSIZ];
data/tiff-4.1.0+git191117/tools/tiff2bw.c:124: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 thing[1024];
data/tiff-4.1.0+git191117/tools/tiff2bw.c:143:19:  [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).
			rowsperstrip = atoi(optarg);
data/tiff-4.1.0+git191117/tools/tiff2bw.c:146: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).
			RED = PCT(atoi(optarg));
data/tiff-4.1.0+git191117/tools/tiff2bw.c:149: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).
			GREEN = PCT(atoi(optarg));
data/tiff-4.1.0+git191117/tools/tiff2bw.c:152:15:  [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).
			BLUE = PCT(atoi(optarg));
data/tiff-4.1.0+git191117/tools/tiff2bw.c:337: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).
			quality = atoi(cp+1);
data/tiff-4.1.0+git191117/tools/tiff2bw.c:348: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).
			predictor = atoi(cp+1);
data/tiff-4.1.0+git191117/tools/tiff2bw.c:353: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).
			predictor = atoi(cp+1);
data/tiff-4.1.0+git191117/tools/tiff2bw.c:520: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 buf[BUFSIZ];
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:205: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 pdf_fileid[TIFF2PDF_FILEID_SIZE];
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:207: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 pdf_datetime[TIFF2PDF_DATETIME_SIZE];
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:209: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 pdf_creator[TIFF2PDF_CREATOR_SIZE];
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:211: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 pdf_author[TIFF2PDF_AUTHOR_SIZE];
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:213: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 pdf_title[TIFF2PDF_TITLE_SIZE];
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:215: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 pdf_subject[TIFF2PDF_SUBJECT_SIZE];
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:217: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 pdf_keywords[TIFF2PDF_KEYWORDS_SIZE];
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:650:40:  [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).
				t2p->pdf_defaultcompressionquality=atoi(optarg);
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:778:21:  [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).
		t2p->outputfile = fopen(outfilename, "wb");
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:2937:13:  [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 table_end[2];
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:3779: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((uint8*)data + i * 3, (uint8*)data + i * 4, 3);
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:3841: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[16];
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:3861: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/tiff-4.1.0+git191117/tools/tiff2pdf.c:3893: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[64];
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:3991: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[64];
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:4083: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/tiff-4.1.0+git191117/tools/tiff2pdf.c:4132: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/tiff-4.1.0+git191117/tools/tiff2pdf.c:4150: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/tiff-4.1.0+git191117/tools/tiff2pdf.c:4179: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[512];
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:4330: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/tiff-4.1.0+git191117/tools/tiff2pdf.c:4370: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[256];
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:4816: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[512];
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:4865: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/tiff-4.1.0+git191117/tools/tiff2pdf.c:4939: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[128];
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:5015: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/tiff-4.1.0+git191117/tools/tiff2pdf.c:5053: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/tiff-4.1.0+git191117/tools/tiff2pdf.c:5088: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[256];
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:5187: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/tiff-4.1.0+git191117/tools/tiff2pdf.c:5202: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/tiff-4.1.0+git191117/tools/tiff2pdf.c:5272: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/tiff-4.1.0+git191117/tools/tiff2pdf.c:5380: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[64];
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:5406: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/tiff-4.1.0+git191117/tools/tiff2ps.c:194: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    pageOrientation[12];            /* set optional PageOrientation DSC to Landscape or Portrait */
data/tiff-4.1.0+git191117/tools/tiff2ps.c:201:10:  [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 ascii85buf[10];
data/tiff-4.1.0+git191117/tools/tiff2ps.c:267: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).
			dirnum = atoi(optarg);
data/tiff-4.1.0+git191117/tools/tiff2ps.c:273:18:  [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).
			interpolate = atoi(optarg) ? TRUE:FALSE;
data/tiff-4.1.0+git191117/tools/tiff2ps.c:316: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).
			output = fopen(optarg, "w");
data/tiff-4.1.0+git191117/tools/tiff2ps.c:328:37:  [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.
                          case 'L': strcpy (pageOrientation, "Landscape");
data/tiff-4.1.0+git191117/tools/tiff2ps.c:331:37:  [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.
                          case 'P': strcpy (pageOrientation, "Portrait");
data/tiff-4.1.0+git191117/tools/tiff2ps.c:354:18:  [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).
 			  rotation = atoi(optarg);
data/tiff-4.1.0+git191117/tools/tiff2ps.c:1802: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 im_h[64], im_x[64], im_y[64];
data/tiff-4.1.0+git191117/tools/tiff2ps.c:1827:10:  [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.
			(void)strcpy(im_x, "im_x neg");
data/tiff-4.1.0+git191117/tools/tiff2ps.c:1842:10:  [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.
			(void)strcpy(im_h, "im_h");
data/tiff-4.1.0+git191117/tools/tiff2ps.c:2850: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 encoded[6];
data/tiff-4.1.0+git191117/tools/tiff2ps.c:2956: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                        ascii85[5];     /* Encoded 5 tuple */
data/tiff-4.1.0+git191117/tools/tiff2ps.c:3095: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 buf[BUFSIZ];
data/tiff-4.1.0+git191117/tools/tiff2rgba.c:93: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).
				rowsperstrip = atoi(optarg);
data/tiff-4.1.0+git191117/tools/tiff2rgba.c:97: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).
				rowsperstrip = atoi(optarg);
data/tiff-4.1.0+git191117/tools/tiff2rgba.c:550: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 buf[BUFSIZ];
data/tiff-4.1.0+git191117/tools/tiffcmp.c:80: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).
			stopondiff = atoi(optarg);
data/tiff-4.1.0+git191117/tools/tiffcmp.c:130: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 buf[BUFSIZ];
data/tiff-4.1.0+git191117/tools/tiffcp.c:166: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 mode[10];
data/tiff-4.1.0+git191117/tools/tiffcp.c:223: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).
			deftilelength = atoi(optarg);
data/tiff-4.1.0+git191117/tools/tiffcp.c:237:22:  [2] (integer) atol:
  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).
			defrowsperstrip = atol(optarg);
data/tiff-4.1.0+git191117/tools/tiffcp.c:247:19:  [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).
			deftilewidth = atoi(optarg);
data/tiff-4.1.0+git191117/tools/tiffcp.c:326: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).
				defpredictor = atoi(cp);
data/tiff-4.1.0+git191117/tools/tiffcp.c:328: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).
				defpreset = atoi(++cp);
data/tiff-4.1.0+git191117/tools/tiffcp.c:369:15:  [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(cp+1);
data/tiff-4.1.0+git191117/tools/tiffcp.c:385:19:  [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).
			defpredictor = atoi(cp+1);
data/tiff-4.1.0+git191117/tools/tiffcp.c:475: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 buf[BUFSIZ];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:327: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   name[MAX_PAPERNAME_LENGTH];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:406: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          name[16];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:424: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 mode[4];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:425: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 infilename[PATH_MAX + 1];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:426: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 outfilename[PATH_MAX + 1];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:981:12:  [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 *srcbuffs[MAX_SAMPLES];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:1437: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).
	quality = atoi(cp + 1);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:1460: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).
      defpredictor = atoi(cp+1);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:1467: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).
      defpredictor = atoi(cp+1);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:1675: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).
		*deftilelength = atoi(optarg);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:1690:22:  [2] (integer) atol:
  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).
		*defrowsperstrip = atol(optarg);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:1708:19:  [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).
		*deftilewidth = atoi(optarg);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:1779:27:  [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 (dump->mode, "wb");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:1792:39:  [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).
                        dump->level = atoi(opt_offset + 1);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:1806:18:  [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).
			dump->debug = atoi(opt_offset + 1);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:1938:26:  [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).
			     imagelist[i++] = atoi(opt_ptr);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:1942:38:  [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).
                             start = atoi (opt_ptr);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:1946:38:  [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).
                               end = atoi (sep + 1);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:1973:19:  [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 (page->name, "Custom"); 
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2023:32:  [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).
                  page->cols = atoi(optarg);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2024:32:  [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).
                  page->rows = atoi(sep +1);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2028:32:  [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).
                  page->cols = atoi(optarg);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2029:32:  [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).
                  page->rows = atoi(optarg);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2086:55:  [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).
                    crop_data->zonelist[i].position = atoi(opt_ptr);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2087:55:  [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).
                    crop_data->zonelist[i].total    = atoi(opt_offset + 1);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2114: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   export_ext[16];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2115: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   exportname[PATH_MAX];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2124: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 (export_ext, ".tiff", 6);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2142:9:  [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 (export_ext, ".tiff", 5);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2191: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  mode[10];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2215: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_filename[PATH_MAX + 16]; /* Extra space keeps the compiler from complaining */
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2319:30:  [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 ((dump.infile = fopen(temp_filename, dump.mode)) == NULL)
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2338:31:  [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 ((dump.outfile = fopen(temp_filename, dump.mode)) == NULL)
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2491: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  dump_array[10];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2530: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  dump_array[10];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2565: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  dump_array[20];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2602: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  dump_array[40];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2638: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  dump_array[80];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:3786: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           action[32];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:3825:11:  [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 (action, "Flush");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:3830:11:  [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 (action, "Update");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:3886: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           action[8];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:3931:6:  [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 (action, "Flush");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:3937:6:  [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 (action, "Update");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:3996: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           action[8];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:4043:6:  [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 (action, "Flush");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:4049:6:  [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 (action, "Update");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:4121: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           action[8];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:4180:4:  [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 (action, "Flush");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:4186:4:  [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 (action, "Update");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:4312: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           action[32];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:4350:11:  [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 (action, "Flush");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:4355:11:  [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 (action, "Update");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:4412: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           action[8];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:4455:6:  [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 (action, "Flush");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:4461:6:  [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 (action, "Update");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:4521: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           action[8];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:4567:6:  [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 (action, "Flush");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:4573:6:  [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 (action, "Update");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:4646: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           action[8];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:4705:4:  [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 (action, "Flush");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:4711:4:  [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 (action, "Update");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:4778:12:  [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 *srcbuffs[MAX_SAMPLES];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5859: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 compressionid[16];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5864:3:  [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 (compressionid, "None/dump");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5867:3:  [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 (compressionid, "Huffman RLE");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5870:3:  [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 (compressionid, "Group3 Fax");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5873:3:  [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 (compressionid, "Group4 Fax");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5876:3:  [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 (compressionid, "LZW");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5879:3:  [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 (compressionid, "Old Jpeg");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5882:3:  [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 (compressionid, "New Jpeg");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5885:3:  [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 (compressionid, "Next RLE");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5888:3:  [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 (compressionid, "CITTRLEW");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5891:3:  [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 (compressionid, "Mac Packbits");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5894:3:  [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 (compressionid, "Thunderscan");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5897:3:  [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 (compressionid, "IT8 padded");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5900:3:  [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 (compressionid, "IT8 RLE");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5903:3:  [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 (compressionid, "IT8 mono");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5906:3:  [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 (compressionid, "IT8 lineart");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5909:3:  [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 (compressionid, "Pixar 10 bit");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5912:3:  [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 (compressionid, "Pixar 11bit");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5915:3:  [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 (compressionid, "Deflate");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5918:3:  [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 (compressionid, "Adobe deflate");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5921:3:  [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 (compressionid, "None/unknown");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5939: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 photometricid[12];
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5944:10:  [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 (photometricid, "MinIsWhite");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5947:10:  [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 (photometricid, "MinIsBlack");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5950:10:  [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 (photometricid, "RGB");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5953:10:  [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 (photometricid, "Palette");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5956:10:  [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 (photometricid, "Mask");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5959:10:  [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 (photometricid, "Separated");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5962:10:  [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 (photometricid, "YCBCR");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5965:10:  [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 (photometricid, "CIELab");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5968:10:  [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 (photometricid, "ICCLab");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5971:10:  [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 (photometricid, "ITULab");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5974:10:  [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 (photometricid, "LogL");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5977:10:  [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 (photometricid, "LOGLuv");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5980:10:  [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 (photometricid, "Unknown");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:8983:12:  [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 swapbuff[32];
data/tiff-4.1.0+git191117/tools/tiffdither.c:189: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).
			predictor = atoi(cp+1);
data/tiff-4.1.0+git191117/tools/tiffdither.c:194: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).
			predictor = atoi(cp+1);
data/tiff-4.1.0+git191117/tools/tiffdither.c:207: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 thing[1024];
data/tiff-4.1.0+git191117/tools/tiffdither.c:231:19:  [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).
			rowsperstrip = atoi(optarg);
data/tiff-4.1.0+git191117/tools/tiffdither.c:234: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).
			threshold = atoi(optarg);
data/tiff-4.1.0+git191117/tools/tiffdither.c:328: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 buf[BUFSIZ];
data/tiff-4.1.0+git191117/tools/tiffdump.c:142:8:  [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(argv[optind], O_RDONLY|O_BINARY, 0);
data/tiff-4.1.0+git191117/tools/tiffdump.c:414: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(&count, dp, sizeof(uint64));
data/tiff-4.1.0+git191117/tools/tiffdump.c:763:25:  [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(&val, llp, sizeof(uint64));
data/tiff-4.1.0+git191117/tools/tiffdump.c:774:25:  [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(&val, llp, sizeof(int64));
data/tiff-4.1.0+git191117/tools/tiffgt.c:63: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     title[TITLE_LENGTH];            /* window title line */
data/tiff-4.1.0+git191117/tools/tiffgt.c:108:26:  [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).
                dirnum = atoi(optarg);
data/tiff-4.1.0+git191117/tools/tiffgt.c:445: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.
        char buf[BUFSIZ];
data/tiff-4.1.0+git191117/tools/tiffinfo.c:83: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).
			dirnum = atoi(&argv[optind-1][1]);
data/tiff-4.1.0+git191117/tools/tiffinfo.c:187: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 buf[BUFSIZ];
data/tiff-4.1.0+git191117/tools/tiffinfoce.c:72: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).
			dirnum = atoi(&argv[optind-1][1]);
data/tiff-4.1.0+git191117/tools/tiffmedian.c:137: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).
			num_colors = atoi(optarg);
data/tiff-4.1.0+git191117/tools/tiffmedian.c:149:19:  [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).
			rowsperstrip = atoi(optarg);
data/tiff-4.1.0+git191117/tools/tiffmedian.c:306: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).
			predictor = atoi(cp+1);
data/tiff-4.1.0+git191117/tools/tiffmedian.c:311: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).
			predictor = atoi(cp+1);
data/tiff-4.1.0+git191117/tools/tiffmedian.c:338: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 buf[BUFSIZ];
data/tiff-4.1.0+git191117/tools/tiffset.c:63:9:  [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).
    if( atoi(tagname) > 0 )
data/tiff-4.1.0+git191117/tools/tiffset.c:64:46:  [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).
        fip = TIFFFieldWithTag(tiff, (ttag_t)atoi(tagname));
data/tiff-4.1.0+git191117/tools/tiffset.c:92:33:  [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).
	    if( TIFFSetDirectory(tiff, atoi(argv[arg_index]) ) != 1 )
data/tiff-4.1.0+git191117/tools/tiffset.c:101:36:  [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).
	    if( TIFFSetSubDirectory(tiff, atoi(argv[arg_index]) ) != 1 )
data/tiff-4.1.0+git191117/tools/tiffset.c:145:30:  [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).
                        wc = atoi(argv[arg_index++]);
data/tiff-4.1.0+git191117/tools/tiffset.c:209:59:  [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).
                                    ((uint8 *)array)[i] = atoi(argv[arg_index+i]);
data/tiff-4.1.0+git191117/tools/tiffset.c:213:60:  [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).
                                    ((uint16 *)array)[i] = atoi(argv[arg_index+i]);
data/tiff-4.1.0+git191117/tools/tiffset.c:217:58:  [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).
                                    ((int8 *)array)[i] = atoi(argv[arg_index+i]);
data/tiff-4.1.0+git191117/tools/tiffset.c:221:59:  [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).
                                    ((int16 *)array)[i] = atoi(argv[arg_index+i]);
data/tiff-4.1.0+git191117/tools/tiffset.c:225:60:  [2] (integer) atol:
  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).
                                    ((uint32 *)array)[i] = atol(argv[arg_index+i]);
data/tiff-4.1.0+git191117/tools/tiffset.c:230:59:  [2] (integer) atol:
  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).
                                    ((int32 *)array)[i] = atol(argv[arg_index+i]);
data/tiff-4.1.0+git191117/tools/tiffset.c:282:52:  [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).
                                                   atoi(argv[arg_index++]));
data/tiff-4.1.0+git191117/tools/tiffset.c:288:52:  [2] (integer) atol:
  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).
                                                   atol(argv[arg_index++]));
data/tiff-4.1.0+git191117/tools/tiffset.c:335: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).
            fp = fopen( argv[arg_index], "rt" );
data/tiff-4.1.0+git191117/tools/tiffsplit.c:48: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 fname[PATH_LENGTH];
data/tiff-4.1.0+git191117/tools/tiffsplit.c:245: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.
				buf = (unsigned char *)_TIFFrealloc(buf, (tmsize_t)bytecounts[s]);
data/tiff-4.1.0+git191117/tools/tiffsplit.c:279: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.
				buf = (unsigned char *)_TIFFrealloc(buf, (tmsize_t)bytecounts[t]);
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:297:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fd, file_hdr.bType, 2) != 2) {
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:314:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if (read(fd, &file_hdr.iOffBits, 4) != 4) {
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:336:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if (read(fd, &info_hdr.iSize, 4) != 4) {
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:358:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if ((read(fd, &info_hdr.iWidth, 4) != 4) ||
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:359:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            (read(fd, &info_hdr.iHeight, 4) != 4) ||
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:360:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            (read(fd, &info_hdr.iPlanes, 2) != 2) ||
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:361:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            (read(fd, &info_hdr.iBitCount, 2) != 2) ||
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:362:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            (read(fd, &info_hdr.iCompression, 4) != 4) ||
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:363:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            (read(fd, &info_hdr.iSizeImage, 4) != 4) ||
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:364:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            (read(fd, &info_hdr.iXPelsPerMeter, 4) != 4) ||
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:365:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            (read(fd, &info_hdr.iYPelsPerMeter, 4) != 4) ||
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:366:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            (read(fd, &info_hdr.iClrUsed, 4) != 4) ||
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:367:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            (read(fd, &info_hdr.iClrImportant, 4) != 4)) {
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:398:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if ( read(fd, &iShort, 2) != 2 ) {
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:407:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if ( read(fd, &iShort, 2) != 2 ) {
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:416:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (read(fd, &iShort, 2) != 2 ) {
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:425:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if ( read(fd, &iShort, 2) != 2 ) {
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:486:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				if ( read(fd, clr_tbl, n_clr_elems * clr_tbl_size)
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:623:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				if (read(fd, scanbuf, size) != (long) size) {
data/tiff-4.1.0+git191117/archive/tools/bmp2tiff.c:688:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if ( read(fd, comprbuf, compr_size) != (long) compr_size ) {
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:168:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getc(stdin);
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:213:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((ch = getc(infile)) != ';' && ch != EOF) {
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:349:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    (void) getc(infile);
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:350:21:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((count = getc(infile)) && count <= 255)
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:376:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    datasize = getc(infile);
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:390:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    for (count = getc(infile); count > 0 && count <= 255; count = getc(infile)) {
data/tiff-4.1.0+git191117/archive/tools/gif2tiff.c:390:67:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    for (count = getc(infile); count > 0 && count <= 255; count = getc(infile)) {
data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c:219:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  c = getc(ifile);
data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c:232:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              c = getc(ifile);
data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c:238:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      dataset = getc(ifile);
data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c:241:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      recnum = getc(ifile);
data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c:256:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(ifile);
data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c:266:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              c = getc(ifile);
data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c:282:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          x = getc(ifile);
data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c:302:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          c = getc(ifile);
data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c:313:11:  [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(readable) > 0)
data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c:322:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(ifile);
data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c:343:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c=fgetc(file);
data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c:535: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).
                    len = strlen(token);
data/tiff-4.1.0+git191117/contrib/iptcutil/iptcutil.c:544:56:  [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).
                            len -= convertHTMLcodes(s, strlen(s));
data/tiff-4.1.0+git191117/contrib/pds/tif_pdsdirwrite.c:448: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).
		  dir->tdir_count = (uint32) (strlen(cp) + 1);
data/tiff-4.1.0+git191117/contrib/stream/tiffstream.cpp:37:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						   read,
data/tiff-4.1.0+git191117/contrib/stream/tiffstream.cpp:58:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						   read,
data/tiff-4.1.0+git191117/contrib/stream/tiffstream.cpp:79:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						   read,
data/tiff-4.1.0+git191117/contrib/stream/tiffstream.cpp:90:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
TiffStream::read(thandle_t fd, tdata_t buf, tsize_t size)
data/tiff-4.1.0+git191117/contrib/stream/tiffstream.cpp:102:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	istr->read(reinterpret_cast<char*>(buf), actual);
data/tiff-4.1.0+git191117/contrib/stream/tiffstream.h:32:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	static tsize_t read(thandle_t fd, tdata_t buf, tsize_t size);
data/tiff-4.1.0+git191117/libtiff/tif_compress.c:203:69:  [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).
	    _TIFFmalloc((tmsize_t)(sizeof (codec_t) + sizeof (TIFFCodec) + strlen(name)+1));
data/tiff-4.1.0+git191117/libtiff/tif_dir.c:59:46:  [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).
    { setByteArray((void**) cpp, (void*) cp, strlen(cp)+1, 1); }
data/tiff-4.1.0+git191117/libtiff/tif_dir.c:584:17:  [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).
				ma=(uint32)(strlen(mb)+1);
data/tiff-4.1.0+git191117/libtiff/tif_dirwrite.c:702: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).
									pa=(uint32)(strlen(pb));
data/tiff-4.1.0+git191117/libtiff/tif_extension.c:103:52:  [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).
    psLink->name = (char *) _TIFFmalloc((tmsize_t)(strlen(name)+1));
data/tiff-4.1.0+git191117/libtiff/tif_open.c:117:55:  [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).
	tif = (TIFF *)_TIFFmalloc((tmsize_t)(sizeof (TIFF) + strlen(name) + 1));
data/tiff-4.1.0+git191117/libtiff/tif_print.c:680:34:  [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).
	_TIFFprintAsciiBounded( fd, cp, strlen(cp));
data/tiff-4.1.0+git191117/libtiff/tif_stream.cxx:123:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data->stream->read((char *) buf, request_size);
data/tiff-4.1.0+git191117/libtiff/tif_unix.c:85:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                count=read(fdh.fd, buf_offset, (TIFFIOSize_t) io_size);
data/tiff-4.1.0+git191117/libtiff/tif_vms.c:55:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return (read((int) fd, buf, size));
data/tiff-4.1.0+git191117/libtiff/tif_vms.c:139:18:  [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).
	fab.fab$b_fns = strlen(name);
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:88:12:  [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).
    nLen = strlen(name) + 1;
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:201:10:  [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).
        (strlen(szTmpModule) + strlen(szTitleText)
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:201: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).
        (strlen(szTmpModule) + strlen(szTitleText)
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:202:11:  [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).
        + strlen(fmt) + 128) * sizeof(char))) == NULL)
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:206:21:  [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).
	szTmp = szTitle + (strlen(szTitle) + 2) * sizeof(char);
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:249:10:  [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).
        (strlen(szTmpModule) + strlen(szTitleText)
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:249: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).
        (strlen(szTmpModule) + strlen(szTitleText)
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:250:11:  [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).
        + strlen(fmt) + 128) * sizeof(char))) == NULL)
data/tiff-4.1.0+git191117/libtiff/tif_wince.c:254:21:  [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).
	szTmp = szTitle + (strlen(szTitle) + 2) * sizeof(char);
data/tiff-4.1.0+git191117/test/raw_decode.c:173:7:  [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(srcdir) + 1 + strlen(srcfilerel)) >= sizeof(srcfile)) {
data/tiff-4.1.0+git191117/test/raw_decode.c:173:28:  [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(srcdir) + 1 + strlen(srcfilerel)) >= sizeof(srcfile)) {
data/tiff-4.1.0+git191117/test/raw_decode.c:178:2:  [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(srcfile,"/");
data/tiff-4.1.0+git191117/tools/fax2ps.c:399:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((n = read(fileno(stdin), buf, sizeof (buf))) > 0) {
data/tiff-4.1.0+git191117/tools/ppm2tiff.c:151:6:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (fgetc(in) != 'P')
data/tiff-4.1.0+git191117/tools/ppm2tiff.c:153:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	switch (fgetc(in)) {
data/tiff-4.1.0+git191117/tools/ppm2tiff.c:180:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c = fgetc(in);
data/tiff-4.1.0+git191117/tools/ppm2tiff.c:188:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			    c = fgetc(in);
data/tiff-4.1.0+git191117/tools/ppm2tiff.c:200:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (fgetc(in) != '\n')
data/tiff-4.1.0+git191117/tools/ppm2tiff.c:206:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (fgetc(in) != '\n' || prec != 255)
data/tiff-4.1.0+git191117/tools/raw2tiff.c:300:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				if (read(fd, buf, linebytes) < 0) {
data/tiff-4.1.0+git191117/tools/raw2tiff.c:316:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (read(fd, buf1, bufsize) < 0) {
data/tiff-4.1.0+git191117/tools/raw2tiff.c:432:45:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                        if (read(fd, buf1, scanlinesize) !=
data/tiff-4.1.0+git191117/tools/raw2tiff.c:438:45:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                        if (read(fd, buf2, scanlinesize) !=
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:708:9:  [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(optarg) == 0) {
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:713:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(t2p->pdf_datetime + 2, optarg,
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:719:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(t2p->pdf_creator, optarg, sizeof(t2p->pdf_creator) - 1);
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:723:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(t2p->pdf_author, optarg, sizeof(t2p->pdf_author) - 1);
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:727:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(t2p->pdf_title, optarg, sizeof(t2p->pdf_title) - 1);
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:731:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(t2p->pdf_subject, optarg, sizeof(t2p->pdf_subject) - 1);
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:735:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(t2p->pdf_keywords, optarg, sizeof(t2p->pdf_keywords) - 1);
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:920:6:  [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).
	len=strlen(papersize);
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:2524:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			bufferoffset+=read;
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:2572:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					samplebufferoffset+=read;
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:2613:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			bufferoffset+=read;
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:3058:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				samplebufferoffset+=read;
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:3897:12:  [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).
	namelen = strlen((char *)name);
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:3994:8:  [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).
	len = strlen(pdfstr);
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:4183:6:  [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(t2p->pdf_datetime) > 0) {
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:4199:7:  [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(info) >= sizeof(t2p->pdf_creator))
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:4214:8:  [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(info) >= sizeof(t2p->pdf_author))
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:4227:7:  [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(info) > 511) {
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:4241:8:  [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(info) >= sizeof(t2p->pdf_subject))
data/tiff-4.1.0+git191117/tools/tiff2pdf.c:4297:10:  [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).
	    && (strlen(datetime) >= 19) ){
data/tiff-4.1.0+git191117/tools/tiff2ps.c:1099:21:  [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(pageOrientation))
data/tiff-4.1.0+git191117/tools/tiff2ps.c:1111:23:  [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(pageOrientation))
data/tiff-4.1.0+git191117/tools/tiff2ps.c:1121:23:  [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(pageOrientation))
data/tiff-4.1.0+git191117/tools/tiff2ps.c:1143:21:  [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(pageOrientation))
data/tiff-4.1.0+git191117/tools/tiff2ps.c:1155:23:  [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(pageOrientation))
data/tiff-4.1.0+git191117/tools/tiff2ps.c:1165:23:  [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(pageOrientation))
data/tiff-4.1.0+git191117/tools/tiff2ps.c:1808:8:  [1] (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 character.
	(void)strcpy(im_x, "0");
data/tiff-4.1.0+git191117/tools/tiffcp.c:796:23:  [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).
				int inknameslen = strlen(inknames) + 1;
data/tiff-4.1.0+git191117/tools/tiffcp.c:801:57:  [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).
                                        inknameslen += (strlen(cp) + 1);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:1758: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).
                    end = strlen (opt_ptr);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:1765:29:  [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).
                      end = strlen (opt_offset + 1);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:1772:25:  [1] (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 character.
                        strcpy (dump->mode, "w");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:1796:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy (dump->infilename, opt_offset + 1, PATH_MAX - 20);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:1802:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy (dump->outfilename, opt_offset + 1, PATH_MAX - 20);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:1809:15:  [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(dump->infilename)) || (strlen(dump->outfilename)))
data/tiff-4.1.0+git191117/tools/tiffcrop.c:1809:45:  [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(dump->infilename)) || (strlen(dump->outfilename)))
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2130:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (exportname, outname, sizeof(exportname) - FILENUM_MAX_LENGTH);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2138:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (export_ext, sep, 5);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2144: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).
      basename_len = strlen(exportname);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2308:18:  [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).
        length = strlen(dump.infilename);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2327:18:  [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).
        length = strlen(dump.outfilename);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2582:11:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
          sprintf(&dump_array[++j], " ");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2619:11:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
          sprintf(&dump_array[++j], " ");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:2655:11:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
          sprintf(&dump_array[++j], " ");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:4968:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (page->name, PaperTable[n].name, 15);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:4984:4:  [1] (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 character.
   strcpy (page->name, "");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:5079:3:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
  sprintf (dump->mode, "w");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:6770:7:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
      sprintf(&bitarray[8], " ");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:6771:7:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
      sprintf(&bitarray[9], " ");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:6789:2:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
	sprintf(&bitarray[18], "\n");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:6790:2:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
	sprintf(&bitarray[19], "\t");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:6831:2:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
	sprintf(&bitarray[18], "\n");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:6832:2:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
	sprintf(&bitarray[19], "\t");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:6874:4:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
	  sprintf(&bitarray[28], " ");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:6875:4:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
	  sprintf(&bitarray[29], " ");
data/tiff-4.1.0+git191117/tools/tiffcrop.c:7270:21:  [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).
	 int inknameslen = strlen(inknames) + 1;
data/tiff-4.1.0+git191117/tools/tiffcrop.c:7276:23:  [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).
	     inknameslen += (strlen(cp) + 1);
data/tiff-4.1.0+git191117/tools/tiffcrop.c:7950:21:  [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).
	 int inknameslen = strlen(inknames) + 1;
data/tiff-4.1.0+git191117/tools/tiffcrop.c:7956:23:  [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).
	     inknameslen += (strlen(cp) + 1);
data/tiff-4.1.0+git191117/tools/tiffdump.c:173:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, (char*) &hdr, sizeof (TIFFHeaderCommon)) != sizeof (TIFFHeaderCommon))
data/tiff-4.1.0+git191117/tools/tiffdump.c:196:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fd, (char*) &hdr.classic.tiff_diroff, 4) != 4)
data/tiff-4.1.0+git191117/tools/tiffdump.c:209:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fd, (char*) &hdr.big.tiff_offsetsize, 12) != 12)
data/tiff-4.1.0+git191117/tools/tiffdump.c:315:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fd, (char*) &dircount, sizeof (uint16)) != sizeof (uint16)) {
data/tiff-4.1.0+git191117/tools/tiffdump.c:324:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fd, (char*) &dircount64, sizeof (uint64)) != sizeof (uint64)) {
data/tiff-4.1.0+git191117/tools/tiffdump.c:342:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(fd, (char*) dirmem, dircount*direntrysize);
data/tiff-4.1.0+git191117/tools/tiffdump.c:358:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (read(fd, (char*) &nextdiroff32, sizeof (uint32)) != sizeof (uint32))
data/tiff-4.1.0+git191117/tools/tiffdump.c:364:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (read(fd, (char*) &nextdiroff, sizeof (uint64)) != sizeof (uint64))
data/tiff-4.1.0+git191117/tools/tiffdump.c:484:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				else if (read(fd, datamem, (size_t)datasize) != (TIFF_SSIZE_T)datasize)
data/tiff-4.1.0+git191117/tools/tiffinfoce.c:158:5:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getc(stdin);
data/tiff-4.1.0+git191117/tools/tiffsplit.c:66:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(fname, argv[2], sizeof(fname));
data/tiff-4.1.0+git191117/tools/tiffsplit.c:77:15:  [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).
			path_len = strlen(fname) + sizeof(TIFF_SUFFIX);
data/tiff-4.1.0+git191117/tools/tiffsplit.c:79:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(path, fname, path_len);
data/tiff-4.1.0+git191117/tools/tiffsplit.c:81:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat(path, TIFF_SUFFIX, path_len - strlen(path) - 1);
data/tiff-4.1.0+git191117/tools/tiffsplit.c:81:42:  [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).
			strncat(path, TIFF_SUFFIX, path_len - strlen(path) - 1);
data/tiff-4.1.0+git191117/tools/tiffsplit.c:107: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).
			fpnt = fname + strlen(fname);

ANALYSIS SUMMARY:

Hits = 709
Lines analyzed = 92231 in approximately 2.63 seconds (35022 lines/second)
Physical Source Lines of Code (SLOC) = 72034
Hits@level = [0] 1018 [1] 156 [2] 416 [3]  45 [4]  92 [5]   0
Hits@level+ = [0+] 1727 [1+] 709 [2+] 553 [3+] 137 [4+]  92 [5+]   0
Hits/KSLOC@level+ = [0+] 23.9748 [1+] 9.84257 [2+] 7.67693 [3+] 1.90188 [4+] 1.27717 [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.