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/xli-1.17.0+20061110/bmp.c
Examining data/xli-1.17.0+20061110/bmp.h
Examining data/xli-1.17.0+20061110/bright.c
Examining data/xli-1.17.0+20061110/buildshar.c
Examining data/xli-1.17.0+20061110/clip.c
Examining data/xli-1.17.0+20061110/cmuwmrast.c
Examining data/xli-1.17.0+20061110/cmuwmrast.h
Examining data/xli-1.17.0+20061110/copyright.h
Examining data/xli-1.17.0+20061110/ddxli.c
Examining data/xli-1.17.0+20061110/dither.c
Examining data/xli-1.17.0+20061110/faces.c
Examining data/xli-1.17.0+20061110/fbm.c
Examining data/xli-1.17.0+20061110/fbm.h
Examining data/xli-1.17.0+20061110/fill.c
Examining data/xli-1.17.0+20061110/g3.c
Examining data/xli-1.17.0+20061110/g3.h
Examining data/xli-1.17.0+20061110/gif.c
Examining data/xli-1.17.0+20061110/gif.h
Examining data/xli-1.17.0+20061110/halftone.c
Examining data/xli-1.17.0+20061110/image.h
Examining data/xli-1.17.0+20061110/imagetypes.c
Examining data/xli-1.17.0+20061110/imagetypes.h
Examining data/xli-1.17.0+20061110/img.c
Examining data/xli-1.17.0+20061110/img.h
Examining data/xli-1.17.0+20061110/kljcpyrght.h
Examining data/xli-1.17.0+20061110/mac.c
Examining data/xli-1.17.0+20061110/mac.h
Examining data/xli-1.17.0+20061110/mc_tables.c
Examining data/xli-1.17.0+20061110/mcidas.c
Examining data/xli-1.17.0+20061110/mcidas.h
Examining data/xli-1.17.0+20061110/merge.c
Examining data/xli-1.17.0+20061110/mrmcpyrght.h
Examining data/xli-1.17.0+20061110/new.c
Examining data/xli-1.17.0+20061110/path.c
Examining data/xli-1.17.0+20061110/pbm.h
Examining data/xli-1.17.0+20061110/pcd.c
Examining data/xli-1.17.0+20061110/pcd.h
Examining data/xli-1.17.0+20061110/png.c
Examining data/xli-1.17.0+20061110/rgbtab.h
Examining data/xli-1.17.0+20061110/rle.c
Examining data/xli-1.17.0+20061110/rle.h
Examining data/xli-1.17.0+20061110/rlelib.c
Examining data/xli-1.17.0+20061110/rotate.c
Examining data/xli-1.17.0+20061110/send.c
Examining data/xli-1.17.0+20061110/smooth.c
Examining data/xli-1.17.0+20061110/sunraster.c
Examining data/xli-1.17.0+20061110/sunraster.h
Examining data/xli-1.17.0+20061110/tga.c
Examining data/xli-1.17.0+20061110/tga.h
Examining data/xli-1.17.0+20061110/tgncpyrght.h
Examining data/xli-1.17.0+20061110/value.c
Examining data/xli-1.17.0+20061110/xbitmap.c
Examining data/xli-1.17.0+20061110/xlito.c
Examining data/xli-1.17.0+20061110/xlito.h
Examining data/xli-1.17.0+20061110/xwd.c
Examining data/xli-1.17.0+20061110/xwd.h
Examining data/xli-1.17.0+20061110/zio.c
Examining data/xli-1.17.0+20061110/zoom.c
Examining data/xli-1.17.0+20061110/reduce.c
Examining data/xli-1.17.0+20061110/pbm.c
Examining data/xli-1.17.0+20061110/ddxli.h
Examining data/xli-1.17.0+20061110/options.h
Examining data/xli-1.17.0+20061110/xpixmap.c
Examining data/xli-1.17.0+20061110/window.c
Examining data/xli-1.17.0+20061110/misc.c
Examining data/xli-1.17.0+20061110/xli.c
Examining data/xli-1.17.0+20061110/xli.h
Examining data/xli-1.17.0+20061110/root.c
Examining data/xli-1.17.0+20061110/jpeg.c
Examining data/xli-1.17.0+20061110/compress.c
Examining data/xli-1.17.0+20061110/options.c
Examining data/xli-1.17.0+20061110/pcx.c

FINAL RESULTS:

data/xli-1.17.0+20061110/path.c:144:3:  [5] (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. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
		strncat(buf, "/.xlirc", BUFSIZ);
data/xli-1.17.0+20061110/dither.c:78:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(image->title, "%s (dithered)", cimage->title);
data/xli-1.17.0+20061110/faces.c:59:7:  [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(fname, buf + 11);
data/xli-1.17.0+20061110/faces.c:61:7:  [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(lname, buf + 10);
data/xli-1.17.0+20061110/halftone.c:190:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(image->title, "%s (halftoned)", cimage->title);
data/xli-1.17.0+20061110/imagetypes.c:67: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(image_ops->fullname, fullname);
data/xli-1.17.0+20061110/new.c:72: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(d, s);
data/xli-1.17.0+20061110/path.c:50:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	while (fscanf(f, fmt, tokenbuf) > 0) {
data/xli-1.17.0+20061110/path.c:70:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			if (sscanf(tokenbuf + strlen(PathToken), "%s", buf)
data/xli-1.17.0+20061110/path.c:75:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			if (sscanf(tokenbuf + strlen(ExtToken), "%s", buf) != 1)
data/xli-1.17.0+20061110/path.c:78:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(buf, tokenbuf);
data/xli-1.17.0+20061110/path.c:146:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (!access(buf, R_OK)) {
data/xli-1.17.0+20061110/path.c:169:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	return (access(fullname, R_OK));
data/xli-1.17.0+20061110/path.c:181: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(fullname, name);
data/xli-1.17.0+20061110/path.c:195:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(fullname, "%s/%s", Paths[p], name);
data/xli-1.17.0+20061110/path.c:204:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(fullname, "%s/%s%s", Paths[p], name, Exts[e]);
data/xli-1.17.0+20061110/path.c:216:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(fullname, "%s%s", name, Exts[e]);
data/xli-1.17.0+20061110/path.c:245:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "ls %s", Paths[a]);
data/xli-1.17.0+20061110/path.c:246:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		if (system(buf) < 0) {
data/xli-1.17.0+20061110/path.c:300:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(buf1, getenv("HOME"));
data/xli-1.17.0+20061110/path.c:307:5:  [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(buf1, getenv(buf2));
data/xli-1.17.0+20061110/path.c:333: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(ptr, buf1);
data/xli-1.17.0+20061110/rlelib.c:21:20:  [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.
# define debug(xx)	fprintf(stderr,xx)
data/xli-1.17.0+20061110/rotate.c:172:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(dimage->title, "%s (rotated by %d degrees)", iimage->title, rot);
data/xli-1.17.0+20061110/smooth.c:33:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(dest->title, "%s (smoothed)", src->title);
data/xli-1.17.0+20061110/xbitmap.c:82:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (sscanf(line,"#define %s %d", name_and_type, &value) == 2) {
data/xli-1.17.0+20061110/xbitmap.c:97:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (sscanf(line, "static short %s = {", name_and_type) == 1) {
data/xli-1.17.0+20061110/xbitmap.c:101:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if ((sscanf(line,"static unsigned char %s = {", name_and_type) == 1) ||
data/xli-1.17.0+20061110/xbitmap.c:102:3:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	(sscanf(line, "static char %s = {", name_and_type) == 1)) {
data/xli-1.17.0+20061110/xlito.c:35:20:  [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.
# define debug(xx)	fprintf(stderr,xx)
data/xli-1.17.0+20061110/xpixmap.c:118:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			if (sscanf(buf, "#define %s %d", what, &value) != 2) {
data/xli-1.17.0+20061110/xpixmap.c:152:15:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		} else if ((sscanf(buf, "static char * %s", what) == 1) &&
data/xli-1.17.0+20061110/xpixmap.c:156:15:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		} else if ((sscanf(buf, "/* %s C */", what) == 1) &&
data/xli-1.17.0+20061110/xpixmap.c:160:15:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		} else if ((sscanf(buf, "/* %s */", what) == 1) &&
data/xli-1.17.0+20061110/xpixmap.c:179:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			if (sscanf(buf, "static char * %s", what) == 1) {
data/xli-1.17.0+20061110/xpixmap.c:320:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
				if ((sscanf(buf, "static char * %s", what) == 1) &&
data/xli-1.17.0+20061110/zio.c:31:7:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
FILE *popen(const char *, const char *);
data/xli-1.17.0+20061110/zio.c:403:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(buf, cmd);
data/xli-1.17.0+20061110/zio.c:418:17:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			zf->stream = popen(buf, "r");
data/xli-1.17.0+20061110/zio.c:448:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
				if ((sscanf(uuibuf, "begin %o%[ ]%s", &uumode, uudummy, uudest)) != 3) {
data/xli-1.17.0+20061110/zoom.c:79: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(buf,oimage->title);
data/xli-1.17.0+20061110/path.c:132:12:  [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.
	homedir = getenv("HOME");
data/xli-1.17.0+20061110/path.c:284:8:  [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.
	char *getenv(const char *);
data/xli-1.17.0+20061110/path.c:300: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.
			strcat(buf1, getenv("HOME"));
data/xli-1.17.0+20061110/path.c:307:18:  [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.
				strcat(buf1, getenv(buf2));
data/xli-1.17.0+20061110/window.c:597:10:  [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.
				atoi(getenv("WINDOWID")));
data/xli-1.17.0+20061110/xli.c:147:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ((gstr = getenv("DISPLAY_GAMMA")) != NULL) {
data/xli-1.17.0+20061110/xli.h:171:7:  [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.
char *getenv(const char *);
data/xli-1.17.0+20061110/bmp.c:24: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[WIN_INFOHEADER_LEN];	/* largest we'll need */
data/xli-1.17.0+20061110/clip.c:233:7:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      bcopy(sp,dp,simage->pixlen * dclipw);
data/xli-1.17.0+20061110/compress.c:15: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 *used, fast[32][32][32];
data/xli-1.17.0+20061110/ddxli.c:58:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errortext[BUFSIZ];
data/xli-1.17.0+20061110/ddxli.h:42:9:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#ifndef bcopy
data/xli-1.17.0+20061110/ddxli.h:43:9:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define bcopy(S,D,N) memcpy((char *)(D),(char *)(S),(N))
data/xli-1.17.0+20061110/ddxli.h:43:22:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define bcopy(S,D,N) memcpy((char *)(D),(char *)(S),(N))
data/xli-1.17.0+20061110/faces.c:50: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          buf[BUFSIZ];
data/xli-1.17.0+20061110/faces.c:88: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          fname[BUFSIZ];
data/xli-1.17.0+20061110/faces.c:89: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          lname[BUFSIZ];
data/xli-1.17.0+20061110/faces.c:172: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          fname[BUFSIZ];
data/xli-1.17.0+20061110/faces.c:173: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          lname[BUFSIZ];
data/xli-1.17.0+20061110/fbm.c:93:24:  [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).
  fbmin_img_width    = atoi(phdr.cols);
data/xli-1.17.0+20061110/fbm.c:94:24:  [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).
  fbmin_img_height   = atoi(phdr.rows);
data/xli-1.17.0+20061110/fbm.c:95:24:  [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).
  fbmin_img_depth    = atoi(phdr.planes);
data/xli-1.17.0+20061110/fbm.c:96:24:  [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).
  fbmin_img_bits     = atoi(phdr.bits);
data/xli-1.17.0+20061110/fbm.c:97:24:  [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).
  fbmin_img_rowlen   = atoi(phdr.rowlen);
data/xli-1.17.0+20061110/fbm.c:98:24:  [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).
  fbmin_img_plnlen   = atoi(phdr.plnlen);
data/xli-1.17.0+20061110/fbm.c:99:24:  [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).
  fbmin_img_clrlen   = atoi(phdr.clrlen);
data/xli-1.17.0+20061110/fbm.c:101:24:  [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).
  fbmin_img_physbits = atoi(phdr.physbits);
data/xli-1.17.0+20061110/fbm.h:66:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	magic[8];		/* 2 bytes FBM_MAGIC number */
data/xli-1.17.0+20061110/fbm.h:67: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	cols[8];		/* Width in pixels */
data/xli-1.17.0+20061110/fbm.h:68: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	rows[8];		/* Height in pixels */
data/xli-1.17.0+20061110/fbm.h:69: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	planes[8];		/* Depth (1 for B+W, 3 for RGB) */
data/xli-1.17.0+20061110/fbm.h:70: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	bits[8];		/* Bits per pixel */
data/xli-1.17.0+20061110/fbm.h:71: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	physbits[8];		/* Bits to store each pixel */
data/xli-1.17.0+20061110/fbm.h:72: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	rowlen[12];		/* Length of a row in bytes */
data/xli-1.17.0+20061110/fbm.h:73: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	plnlen[12];		/* Length of a plane in bytes */
data/xli-1.17.0+20061110/fbm.h:74: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	clrlen[12];		/* Length of colormap in bytes */
data/xli-1.17.0+20061110/fbm.h:75: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	aspect[12];		/* ratio of Y to X of one pixel */
data/xli-1.17.0+20061110/fbm.h:76: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	title[FBM_MAX_TITLE];	/* Null terminated title */
data/xli-1.17.0+20061110/fbm.h:77: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	credits[FBM_MAX_TITLE];	/* Null terminated credits */
data/xli-1.17.0+20061110/imagetypes.c:52: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 fullname[BUFSIZ];
data/xli-1.17.0+20061110/imagetypes.c:95: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 fullname[BUFSIZ];
data/xli-1.17.0+20061110/img.c:73: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 inbuf[MAX_LITERAL], ichr;	/* Input buffer/char */
data/xli-1.17.0+20061110/img.c:187: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 junkbuffer[MAX_SCANLINE];	/* scrap buffer */
data/xli-1.17.0+20061110/mcidas.h:34: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.
/* 25 */ char	comments[COMMENTLEN] ;
data/xli-1.17.0+20061110/mcidas.h:49: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.
/* 52 */ char	stype[TYPELEN] ;
data/xli-1.17.0+20061110/mcidas.h:50: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.
/* 53 */ char	ctype[TYPELEN] ;
data/xli-1.17.0+20061110/mcidas.h:59: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.
/*   1 */ char	type[TYPELEN] ;
data/xli-1.17.0+20061110/mcidas.h:66: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.
/* 121 */ char	memo[COMMENTLEN] ;
data/xli-1.17.0+20061110/misc.c:19: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 buf[32];
data/xli-1.17.0+20061110/misc.c:31: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(buf, "Signal %d", sig);
data/xli-1.17.0+20061110/options.c:283:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUFSIZ];
data/xli-1.17.0+20061110/options.c:370: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).
		    image_ops->delay = atoi(argv[a]);
data/xli-1.17.0+20061110/options.c:546:24:  [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).
			image_ops->bright = atoi(argv[a]);
data/xli-1.17.0+20061110/options.c:591: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).
		image_ops->colors = atoi(argv[a]);
data/xli-1.17.0+20061110/options.c:629: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).
		image_ops->delay = atoi(argv[a]);
data/xli-1.17.0+20061110/options.c:647:25:  [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).
				image_ops->iscale = atoi(argv[a]);
data/xli-1.17.0+20061110/options.c:686: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).
		image_ops->rotate = atoi(argv[a]);
data/xli-1.17.0+20061110/options.c:716:8:  [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(argv[a]) < 0) {
data/xli-1.17.0+20061110/options.c:720: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).
			image_ops->xzoom = atoi(argv[a]);
data/xli-1.17.0+20061110/options.c:728:8:  [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(argv[a]) < 0) {
data/xli-1.17.0+20061110/options.c:732: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).
			image_ops->yzoom = atoi(argv[a]);
data/xli-1.17.0+20061110/options.c:743: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(argv[a]) < 0) {
data/xli-1.17.0+20061110/options.c:747: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).
				image_ops->xzoom = image_ops->yzoom = atoi(argv[a]);
data/xli-1.17.0+20061110/options.c:779: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 *pp, sc, buf[TOBUFSZ];
data/xli-1.17.0+20061110/options.c:802:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(pp, buf, nib);
data/xli-1.17.0+20061110/options.c:811:10:  [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).
		tlen = atoi(&buf[klen]);
data/xli-1.17.0+20061110/options.c:822: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).
		if (tlen != atoi(&buf[ti + 1]))
data/xli-1.17.0+20061110/options.c:825:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(&buf[klen + 5], args, tlen);
data/xli-1.17.0+20061110/path.c:26: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 *Paths[BUFSIZ];
data/xli-1.17.0+20061110/path.c:27: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 *Exts[BUFSIZ];
data/xli-1.17.0+20061110/path.c:38: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 tokenbuf[BUFSIZ];
data/xli-1.17.0+20061110/path.c:39:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUFSIZ];
data/xli-1.17.0+20061110/path.c:40: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 fmt[32];
data/xli-1.17.0+20061110/path.c:44:12:  [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 (!(f = fopen(name, "r")))
data/xli-1.17.0+20061110/path.c:49:2:  [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(fmt, "%%%ds", BUFSIZ - 1);
data/xli-1.17.0+20061110/path.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 buf[BUFSIZ];
data/xli-1.17.0+20061110/path.c:189:2:  [2] (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 string.
	strcat(fullname, ".Z");
data/xli-1.17.0+20061110/path.c:199:3:  [2] (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 string.
		strcat(fullname, ".Z");
data/xli-1.17.0+20061110/path.c:208:4:  [2] (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 string.
			strcat(fullname, ".Z");
data/xli-1.17.0+20061110/path.c:220:3:  [2] (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 string.
		strcat(fullname, ".Z");
data/xli-1.17.0+20061110/path.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 buf[BUFSIZ];
data/xli-1.17.0+20061110/path.c:280: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 buf1[BUFSIZ], buf2[BUFSIZ];
data/xli-1.17.0+20061110/pbm.h:10: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 width[2];
data/xli-1.17.0+20061110/pbm.h:11: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 height[2];
data/xli-1.17.0+20061110/pcd.c:130:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(&hp->buf[0x0800 & PCDBMASK], hp->magic, 7);
data/xli-1.17.0+20061110/pcd.c:136:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(&hp->buf[0x0816 & PCDBMASK], hp->source, 88);
data/xli-1.17.0+20061110/pcd.c:140:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(&hp->buf[0x0870 & PCDBMASK], hp->owner, 20);
data/xli-1.17.0+20061110/pcd.c:808:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					bcopy((byte *) hufftab, ((byte *) hufftab) + sz, sz);
data/xli-1.17.0+20061110/pcd.h:37:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char magic[8];		/* image format ident string (?) */
data/xli-1.17.0+20061110/pcd.h:38: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 source[89];	/* source (?) */
data/xli-1.17.0+20061110/pcd.h:39:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char owner[21];		/* owner (?) */
data/xli-1.17.0+20061110/pcx.c:59: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 pcxhd[128];
data/xli-1.17.0+20061110/pcx.c:102: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 pcxhd[128];
data/xli-1.17.0+20061110/png.c:18: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[8];
data/xli-1.17.0+20061110/reduce.c:120: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/xli-1.17.0+20061110/rle.h:102: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    sv_bits[256/8];
data/xli-1.17.0+20061110/rlelib.c:440: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.
	    lfree((char *)cmap[i]);	/* free all its elements */
data/xli-1.17.0+20061110/rlelib.c:839: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.
	    bfill( (char *)scanline[-1], globals->sv_xmax + 1, 0 );
data/xli-1.17.0+20061110/rlelib.c:842: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.
		bfill( (char *)scanline[nc], globals->sv_xmax+1,
data/xli-1.17.0+20061110/send.c:26: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[MAXERRORLEN+1];
data/xli-1.17.0+20061110/send.c:594: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(dst, src, rowbytes);
data/xli-1.17.0+20061110/sunraster.h:15: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 magic[4];   /* magic number */
data/xli-1.17.0+20061110/sunraster.h:16: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 width[4];   /* width of image in pixels */
data/xli-1.17.0+20061110/sunraster.h:17: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 height[4];  /* height of image in pixels */
data/xli-1.17.0+20061110/sunraster.h:18: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 depth[4];   /* depth of each pixel */
data/xli-1.17.0+20061110/sunraster.h:19: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 length[4];  /* length of the image in bytes */
data/xli-1.17.0+20061110/sunraster.h:20: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 type[4];    /* format of file */
data/xli-1.17.0+20061110/sunraster.h:21: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 maptype[4]; /* type of colormap */
data/xli-1.17.0+20061110/sunraster.h:22: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 maplen[4];  /* length of colormap in bytes */
data/xli-1.17.0+20061110/tga.c:24: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[18];
data/xli-1.17.0+20061110/tga.c:116: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 colors[40];
data/xli-1.17.0+20061110/tga.c:119: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(colors," with %d colors",hp->Length);
data/xli-1.17.0+20061110/window.c:247: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 buf[BUFSIZ];
data/xli-1.17.0+20061110/window.c:597:5:  [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(getenv("WINDOWID")));
data/xli-1.17.0+20061110/window.c:798: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[128];
data/xli-1.17.0+20061110/xbitmap.c:62: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          line[MAX_SIZE];
data/xli-1.17.0+20061110/xbitmap.c:63: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_and_type[MAX_SIZE];
data/xli-1.17.0+20061110/xli.h:168:5:  [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).
int atoi(const char *);
data/xli-1.17.0+20061110/xli.h:169:6:  [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).
long atol(const char *);
data/xli-1.17.0+20061110/xlito.c:95:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				file = open(fname,O_RDONLY);
data/xli-1.17.0+20061110/xlito.c:110:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				file = open(fname,O_RDONLY);
data/xli-1.17.0+20061110/xlito.c:134:11:  [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).
			file = open(fname,O_RDONLY);
data/xli-1.17.0+20061110/xlito.c:157:11:  [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).
			file = open(fname,O_RDWR);
data/xli-1.17.0+20061110/xlito.c:182: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 padding[PADSIZE];
data/xli-1.17.0+20061110/xlito.c:184: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 tt[6];
data/xli-1.17.0+20061110/xlito.c:195:11:  [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).
			file = open(fname,O_RDWR);
data/xli-1.17.0+20061110/xlito.c:211: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(tt+1,"%04d",tlen);
data/xli-1.17.0+20061110/xlito.c:241: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 buf1[TOBUFSZ];
data/xli-1.17.0+20061110/xlito.c:242: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 buf[TOBUFSZ];
data/xli-1.17.0+20061110/xlito.c:302: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).
	tlen = atoi(&buf[1]);
data/xli-1.17.0+20061110/xlito.c:329: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).
	if (tlen != atoi(&buf[klen]))
data/xli-1.17.0+20061110/xpixmap.c:67: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 *xpmkeys[6] =
data/xli-1.17.0+20061110/xpixmap.c:96: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/xli-1.17.0+20061110/xpixmap.c:97: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 what[BUFSIZ];
data/xli-1.17.0+20061110/xpixmap.c:234: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/xli-1.17.0+20061110/xpixmap.c:235: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 what[BUFSIZ];
data/xli-1.17.0+20061110/zio.c:56:4:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			bcopy(zf->bufptr, buf, readlen);
data/xli-1.17.0+20061110/zio.c:158:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(cbuf, newdat->buf, len);
data/xli-1.17.0+20061110/zio.c:344: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 uuibuf[UULEN], uudest[UULEN], uudummy[UULEN];
data/xli-1.17.0+20061110/zio.c:408: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(s, "'\"'\"'");
data/xli-1.17.0+20061110/zio.c:425:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			zf->stream = fopen(name, "r", "ctx=bin", "ctx=stm",
data/xli-1.17.0+20061110/zio.c:428:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			zf->stream = fopen(name, "r");
data/xli-1.17.0+20061110/zio.c:493:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				bcopy(zf->bufptr, buf, bp - zf->bufptr);
data/xli-1.17.0+20061110/zio.c:541:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(buf, zf->bufptr, len);
data/xli-1.17.0+20061110/zio.c:547:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(buf, new + extra, len);	/* copy new aux data */
data/xli-1.17.0+20061110/zio.c:549:4:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			bcopy(zf->bufptr, new + extra + len, noinaxb);
data/xli-1.17.0+20061110/zio.c:665:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(zf->uunext, buf, cl);
data/xli-1.17.0+20061110/zoom.c:31: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          buf[BUFSIZ];
data/xli-1.17.0+20061110/ddxli.c:135: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).
	n = strlen(spec);
data/xli-1.17.0+20061110/dither.c:77:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    image->title = (char *)lmalloc(strlen(cimage->title) + 12);
data/xli-1.17.0+20061110/faces.c:126:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      fname[strlen(fname) - 1] = ' ';
data/xli-1.17.0+20061110/faces.c:129:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      lname[strlen(lname) - 1] = '\0';
data/xli-1.17.0+20061110/faces.c:131:5:  [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(fname, lname, sizeof(fname) - strlen(fname) - 1);
data/xli-1.17.0+20061110/faces.c:131:43:  [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(fname, lname, sizeof(fname) - strlen(fname) - 1);
data/xli-1.17.0+20061110/halftone.c:189:35:  [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).
		image->title = (char *) lmalloc(strlen(cimage->title) + 13);
data/xli-1.17.0+20061110/imagetypes.c:66: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).
	image_ops->fullname = lmalloc(strlen(fullname) + 1);
data/xli-1.17.0+20061110/misc.c:288: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).
	for (n = strlen(s2), p = s1;; p++) {
data/xli-1.17.0+20061110/new.c:71: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).
	d = (char *) lmalloc(strlen(s) + 1);
data/xli-1.17.0+20061110/options.c:227: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).
		if (!strncmp(arg + 1, Options[a].name, strlen(arg) - 1)) {
data/xli-1.17.0+20061110/options.c:229:44:  [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 (!strncmp(arg + 1, Options[b].name, strlen(arg) - 1))
data/xli-1.17.0+20061110/options.c:245: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).
		width += strlen(Options[a].name) + 2;
data/xli-1.17.0+20061110/options.c:248: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).
			width = strlen(Options[a].name) + 2;
data/xli-1.17.0+20061110/options.c:262:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!strncmp(Options[a].name, option, strlen(option))) {
data/xli-1.17.0+20061110/options.c:308:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		while (buf[strlen(buf) - 1] == '\n')
data/xli-1.17.0+20061110/options.c:309: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).
			buf[strlen(buf) - 1] = '\0';
data/xli-1.17.0+20061110/options.c:787: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).
		klen = strlen(key);
data/xli-1.17.0+20061110/path.c:52: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).
		l = strlen(tokenbuf);
data/xli-1.17.0+20061110/path.c:62:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				while (((c = fgetc(f)) != '\n') && (c != EOF))
data/xli-1.17.0+20061110/path.c:68:37:  [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 (!strncmp(tokenbuf, PathToken, strlen(PathToken))) {
data/xli-1.17.0+20061110/path.c:70:26:  [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 (sscanf(tokenbuf + strlen(PathToken), "%s", buf)
data/xli-1.17.0+20061110/path.c:73:43:  [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).
		} else if (!strncmp(tokenbuf, ExtToken, strlen(ExtToken))) {
data/xli-1.17.0+20061110/path.c:75:26:  [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 (sscanf(tokenbuf + strlen(ExtToken), "%s", buf) != 1)
data/xli-1.17.0+20061110/path.c:143:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buf, homedir, BUFSIZ);
data/xli-1.17.0+20061110/path.c:301: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).
			b1 = strlen(buf1);
data/xli-1.17.0+20061110/path.c:308: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).
				b1 = strlen(buf1);
data/xli-1.17.0+20061110/path.c:331: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).
	if ((b2 = strlen(buf1)) > 0) {
data/xli-1.17.0+20061110/rotate.c:171:35:  [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).
	dimage->title = (char *) lmalloc(strlen(iimage->title) + 40);
data/xli-1.17.0+20061110/smooth.c:32: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).
  dest->title= (char *)lmalloc(strlen(src->title) + 12);
data/xli-1.17.0+20061110/window.c:253:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, s, BUFSIZ - 1);
data/xli-1.17.0+20061110/xbitmap.c:75: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(line) == MAX_SIZE-1) {
data/xli-1.17.0+20061110/xlito.c:54: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).
	klen = strlen(key);
data/xli-1.17.0+20061110/xlito.c:188: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).
			tlen = strlen(text);
data/xli-1.17.0+20061110/xlito.c:257: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).
	klen = strlen(key);
data/xli-1.17.0+20061110/xlito.c:265:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((count = read(file, buf1, sk)) != sk)
data/xli-1.17.0+20061110/xlito.c:289:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	count = read(file, buf,5);
data/xli-1.17.0+20061110/xlito.c:311:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	count = read(file, buf,(tlen + klen + 5));
data/xli-1.17.0+20061110/xpixmap.c:154: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).
			zunread(zf, buf, strlen(buf));	/* stuff it back so we can read it again */
data/xli-1.17.0+20061110/xpixmap.c:180: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(what) >= (unsigned) 2 && what[strlen(what) - 2] == '['
data/xli-1.17.0+20061110/xpixmap.c:180: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).
				if (strlen(what) >= (unsigned) 2 && what[strlen(what) - 2] == '['
data/xli-1.17.0+20061110/xpixmap.c:181: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).
				    && what[strlen(what) - 1] == ']')
data/xli-1.17.0+20061110/xpixmap.c:182: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).
					what[strlen(what) - 2] = '\000';	/* remove "[]" */
data/xli-1.17.0+20061110/xpixmap.c:183: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(what) > (unsigned) 0)	/* if not titleless */
data/xli-1.17.0+20061110/zio.c:373:5:  [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(name) > 3 &&
data/xli-1.17.0+20061110/zio.c:374:30:  [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).
			!strcasecmp(".gz", name + strlen(name) - 3)) ||
data/xli-1.17.0+20061110/zio.c:375:5:  [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(name) > 2 &&
data/xli-1.17.0+20061110/zio.c:376: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).
			!strcasecmp(".Z", name + strlen(name) - 2))
data/xli-1.17.0+20061110/zio.c:382: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(name) > (unsigned) 2) &&
data/xli-1.17.0+20061110/zio.c:383: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).
				!strcmp(".Z", name + (strlen(name) - 2))) {
data/xli-1.17.0+20061110/zio.c:388: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(name) > 4 &&
data/xli-1.17.0+20061110/zio.c:389: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).
				!strcasecmp(".bz2", name + strlen(name) - 4)) {
data/xli-1.17.0+20061110/zio.c:402:5:  [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(cmd) + 1 + 5 * strlen(name) + 1 + 1);
data/xli-1.17.0+20061110/zio.c:402: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).
				strlen(cmd) + 1 + 5 * strlen(name) + 1 + 1);
data/xli-1.17.0+20061110/zio.c:404:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			s = buf + strlen(buf);
data/xli-1.17.0+20061110/zio.c:409: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).
					s += strlen(s);
data/xli-1.17.0+20061110/zio.c:694: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).
		len = strlen((char *) ibuf) - 2;
data/xli-1.17.0+20061110/zio.c:728: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).
			len = strlen((char *) ibuf) - 2;
data/xli-1.17.0+20061110/zio.c:754: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).
		len = strlen((char *) ibuf) - 2;

ANALYSIS SUMMARY:

Hits = 248
Lines analyzed = 22005 in approximately 0.64 seconds (34136 lines/second)
Physical Source Lines of Code (SLOC) = 16613
Hits@level = [0] 458 [1]  59 [2] 141 [3]   7 [4]  40 [5]   1
Hits@level+ = [0+] 706 [1+] 248 [2+] 189 [3+]  48 [4+]  41 [5+]   1
Hits/KSLOC@level+ = [0+] 42.4968 [1+] 14.9281 [2+] 11.3766 [3+] 2.8893 [4+] 2.46795 [5+] 0.0601938
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.