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/x11-utils-7.7+5/appres/appres.c
Examining data/x11-utils-7.7+5/editres/actions.c
Examining data/x11-utils-7.7+5/editres/comm.c
Examining data/x11-utils-7.7+5/editres/editres.c
Examining data/x11-utils-7.7+5/editres/editresP.h
Examining data/x11-utils-7.7+5/editres/geometry.c
Examining data/x11-utils-7.7+5/editres/handler.c
Examining data/x11-utils-7.7+5/editres/setvalues.c
Examining data/x11-utils-7.7+5/editres/svpopup.c
Examining data/x11-utils-7.7+5/editres/utils.c
Examining data/x11-utils-7.7+5/editres/widgets.c
Examining data/x11-utils-7.7+5/editres/wtree.c
Examining data/x11-utils-7.7+5/listres/listres.c
Examining data/x11-utils-7.7+5/luit/charset.c
Examining data/x11-utils-7.7+5/luit/charset.h
Examining data/x11-utils-7.7+5/luit/iso2022.c
Examining data/x11-utils-7.7+5/luit/iso2022.h
Examining data/x11-utils-7.7+5/luit/locale.c
Examining data/x11-utils-7.7+5/luit/luit.c
Examining data/x11-utils-7.7+5/luit/luit.h
Examining data/x11-utils-7.7+5/luit/other.c
Examining data/x11-utils-7.7+5/luit/other.h
Examining data/x11-utils-7.7+5/luit/parser.c
Examining data/x11-utils-7.7+5/luit/parser.h
Examining data/x11-utils-7.7+5/luit/sys.c
Examining data/x11-utils-7.7+5/luit/sys.h
Examining data/x11-utils-7.7+5/viewres/viewres.c
Examining data/x11-utils-7.7+5/xdpyinfo/xdpyinfo.c
Examining data/x11-utils-7.7+5/xdriinfo/xdriinfo.c
Examining data/x11-utils-7.7+5/xev/xev.c
Examining data/x11-utils-7.7+5/xfd/grid.c
Examining data/x11-utils-7.7+5/xfd/grid.h
Examining data/x11-utils-7.7+5/xfd/gridP.h
Examining data/x11-utils-7.7+5/xfd/xfd.c
Examining data/x11-utils-7.7+5/xfontsel/ULabel.c
Examining data/x11-utils-7.7+5/xfontsel/ULabel.h
Examining data/x11-utils-7.7+5/xfontsel/ULabelP.h
Examining data/x11-utils-7.7+5/xfontsel/xfontsel.c
Examining data/x11-utils-7.7+5/xkill/xkill.c
Examining data/x11-utils-7.7+5/xlsatoms/xlsatoms.c
Examining data/x11-utils-7.7+5/xlsclients/strnlen.c
Examining data/x11-utils-7.7+5/xlsclients/strnlen.h
Examining data/x11-utils-7.7+5/xlsclients/xlsclients.c
Examining data/x11-utils-7.7+5/xlsfonts/dsimple.c
Examining data/x11-utils-7.7+5/xlsfonts/dsimple.h
Examining data/x11-utils-7.7+5/xlsfonts/xlsfonts.c
Examining data/x11-utils-7.7+5/xmessage/makeform.c
Examining data/x11-utils-7.7+5/xmessage/readfile.c
Examining data/x11-utils-7.7+5/xmessage/readfile.h
Examining data/x11-utils-7.7+5/xmessage/xmessage.c
Examining data/x11-utils-7.7+5/xmessage/xmessage.h
Examining data/x11-utils-7.7+5/xprop/clientwin.c
Examining data/x11-utils-7.7+5/xprop/clientwin.h
Examining data/x11-utils-7.7+5/xprop/dsimple.c
Examining data/x11-utils-7.7+5/xprop/dsimple.h
Examining data/x11-utils-7.7+5/xprop/xprop.c
Examining data/x11-utils-7.7+5/xvinfo/xvinfo.c
Examining data/x11-utils-7.7+5/xwininfo/clientwin.c
Examining data/x11-utils-7.7+5/xwininfo/clientwin.h
Examining data/x11-utils-7.7+5/xwininfo/dsimple.c
Examining data/x11-utils-7.7+5/xwininfo/dsimple.h
Examining data/x11-utils-7.7+5/xwininfo/strnlen.c
Examining data/x11-utils-7.7+5/xwininfo/strnlen.h
Examining data/x11-utils-7.7+5/xwininfo/xwininfo.c

FINAL RESULTS:

data/x11-utils-7.7+5/luit/sys.c:304:7:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	rc = chown(line, getuid(), getgid());
data/x11-utils-7.7+5/luit/sys.c:313:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	rc = chmod(line, S_IRUSR | S_IWUSR | S_IWGRP);
data/x11-utils-7.7+5/editres/actions.c:191:2:  [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.
	snprintf(buf, sizeof(buf), res_labels[2], "PopdownFileDialog");
data/x11-utils-7.7+5/editres/actions.c:204:2:  [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.
	snprintf(buf, sizeof(buf), res_labels[1], "PopdownFileDialog");
data/x11-utils-7.7+5/editres/actions.c:285:2:  [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.
	snprintf(buf, sizeof(buf), res_labels[2], action_name);
data/x11-utils-7.7+5/editres/actions.c:297: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.
    snprintf(buf, sizeof(buf), res_labels[3], action_name);
data/x11-utils-7.7+5/editres/actions.c:300: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(buf, table[i++].name);
data/x11-utils-7.7+5/editres/comm.c:93:3:  [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.
  snprintf(msg, sizeof(msg), res_labels[4], "the Editres Protocol.");
data/x11-utils-7.7+5/editres/comm.c:281: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.
    snprintf(msg, sizeof(msg), res_labels[8], str);
data/x11-utils-7.7+5/editres/comm.c:439:2:  [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.
	snprintf(msg, sizeof(msg), res_labels[11], (int) error_code);
data/x11-utils-7.7+5/editres/comm.c:451:2:  [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.
	snprintf(msg, sizeof(msg), res_labels[12], top->name, top->class);
data/x11-utils-7.7+5/editres/geometry.c:66: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.
    snprintf(msg, sizeof(msg), res_labels[14]);
data/x11-utils-7.7+5/editres/geometry.c:106:2:  [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.
	snprintf(msg, sizeof(msg), res_labels[13]);
data/x11-utils-7.7+5/editres/geometry.c:115: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.
    snprintf(msg, sizeof(msg), res_labels[12], node->name, node->class);
data/x11-utils-7.7+5/editres/handler.c:452: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(buf, temp);
data/x11-utils-7.7+5/editres/handler.c:457:6:  [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(buf, temp);
data/x11-utils-7.7+5/editres/handler.c:462:3:  [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(buf, temp);
data/x11-utils-7.7+5/editres/handler.c:466: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(buf, GetResourceName(res_box));
data/x11-utils-7.7+5/editres/handler.c:480: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(malloc_string, buf);
data/x11-utils-7.7+5/editres/handler.c:483: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(malloc_string, temp);
data/x11-utils-7.7+5/editres/svpopup.c:112: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(msg,
data/x11-utils-7.7+5/editres/svpopup.c:130:2:  [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.
	snprintf(msg, sizeof(msg), res_labels[22]);
data/x11-utils-7.7+5/editres/utils.c:101:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(ptr, in);
data/x11-utils-7.7+5/editres/utils.c:145:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(ptr, add);
data/x11-utils-7.7+5/editres/utils.c:274:2:  [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.
	snprintf(buf, sizeof(buf), res_labels[24], (char *)filename);
data/x11-utils-7.7+5/editres/utils.c:521:6:  [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.
	    snprintf(buf, sizeof(buf), res_labels[16]);
data/x11-utils-7.7+5/editres/utils.c:866: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.
    snprintf(buf, sizeof(buf), res_labels[36],
data/x11-utils-7.7+5/editres/wtree.c:87: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.
    snprintf(msg, sizeof(msg), res_labels[11], top->name, top->class);
data/x11-utils-7.7+5/editres/wtree.c:110:6:  [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.
	    snprintf(msg, sizeof(msg), res_labels[28],
data/x11-utils-7.7+5/editres/wtree.c:123:2:  [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.
	snprintf(msg, sizeof(msg), res_labels[29], top->name);
data/x11-utils-7.7+5/listres/listres.c:176:2:  [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 (format, showvar ? (*wn)->label : XmuWnClassname(*wn),
data/x11-utils-7.7+5/listres/listres.c:181:2:  [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 (format, "----", "----", "----", "----");
data/x11-utils-7.7+5/listres/listres.c:188:2:  [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 (format, showvar ? (*wn)->label : XmuWnClassname(*wn),
data/x11-utils-7.7+5/listres/listres.c:209:2:  [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 (format, showvar ? "Variable" : "WidgetClass",
data/x11-utils-7.7+5/listres/listres.c:212:2:  [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 (format, showvar ? "--------" : "-----------",
data/x11-utils-7.7+5/luit/luit.c:74: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(stderr, f, args);
data/x11-utils-7.7+5/luit/luit.c:83: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(stderr, f, args);
data/x11-utils-7.7+5/luit/luit.c:645:5:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    execvp(path, argv);
data/x11-utils-7.7+5/luit/parser.c:156: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(first, keyword);
data/x11-utils-7.7+5/luit/parser.c:162: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(second, keyword);
data/x11-utils-7.7+5/luit/sys.c:544:6:  [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(result, value);
data/x11-utils-7.7+5/xdpyinfo/xdpyinfo.c:588:6:  [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+len, etp->name);
data/x11-utils-7.7+5/xdpyinfo/xdpyinfo.c:644: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 (MULTIBUF_FMT, mono_info[j].visualid,
data/x11-utils-7.7+5/xdpyinfo/xdpyinfo.c:649: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 (MULTIBUF_FMT, stereo_info[j].visualid,
data/x11-utils-7.7+5/xfd/xfd.c:322: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.
    snprintf (buf, sizeof(buf), xfd_resources.range_format,
data/x11-utils-7.7+5/xfd/xfd.c:370:6:  [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.
	    snprintf (buf, sizeof(buf), xfd_resources.metrics_format,
data/x11-utils-7.7+5/xfd/xfd.c:395:6:  [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.
	    snprintf (buf, sizeof(buf), xfd_resources.metrics_format,
data/x11-utils-7.7+5/xfd/xfd.c:404:2:  [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.
	snprintf (buf, sizeof(buf), xfd_resources.select_format,
data/x11-utils-7.7+5/xfd/xfd.c:411:2:  [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.
	snprintf (buf, sizeof(buf), xfd_resources.nochar_format,
data/x11-utils-7.7+5/xfd/xfd.c:458:2:  [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.
	snprintf (buf, sizeof(buf), xfd_resources.start_format,
data/x11-utils-7.7+5/xfontsel/xfontsel.c:327:6:  [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(currentFontNameString, AppRes.pattern);
data/x11-utils-7.7+5/xfontsel/xfontsel.c:1095:6:  [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( &currentFontNameString[pos], str );
data/x11-utils-7.7+5/xlsatoms/xlsatoms.c:150:2:  [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 (format, (unsigned long) a->atom, name);
data/x11-utils-7.7+5/xlsatoms/xlsatoms.c:257: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 (format, i + low, atom_name);
data/x11-utils-7.7+5/xlsfonts/dsimple.c:155: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, msg, args);
data/x11-utils-7.7+5/xmessage/makeform.c:122: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 (copy, buttonlist);
data/x11-utils-7.7+5/xmessage/xmessage.c:343:6:  [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(cp, argv[i]);
data/x11-utils-7.7+5/xprop/dsimple.c:343: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, msg, args);
data/x11-utils-7.7+5/xprop/xprop.c:640:6:  [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(_formatting_buffer, Format_Unsigned(bit));
data/x11-utils-7.7+5/xprop/xprop.c:829:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    tail += sprintf (tail, "%s", palette[idx]);
data/x11-utils-7.7+5/xprop/xprop.c:1011: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(_formatting_buffer, data);
data/x11-utils-7.7+5/xwininfo/dsimple.c:434: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 (stderr, msg, args);
data/x11-utils-7.7+5/xwininfo/xwininfo.c:269: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 (dst + sd, src);
data/x11-utils-7.7+5/luit/luit.c:325: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.
	shell = getenv("SHELL");
data/x11-utils-7.7+5/luit/luit.c:398: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.
	locale_name = getenv("LC_ALL");
data/x11-utils-7.7+5/luit/luit.c:400:20:  [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.
	    locale_name = getenv("LC_CTYPE");
data/x11-utils-7.7+5/luit/luit.c:402: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.
		locale_name = getenv("LANG");
data/x11-utils-7.7+5/xfd/xfd.c:203:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((domaindir = getenv ("TEXTDOMAINDIR")) == NULL) {
data/x11-utils-7.7+5/xlsatoms/xlsatoms.c:125:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		DisplayString = getenv("DISPLAY");
data/x11-utils-7.7+5/xlsclients/xlsclients.c:205:13:  [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.
	    name = getenv("DISPLAY");
data/x11-utils-7.7+5/xprop/xprop.c:1910: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 ((name = getenv("XPROPFORMATS"))) {
data/x11-utils-7.7+5/xwininfo/dsimple.c:92:9:  [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.
	name = getenv ("DISPLAY");
data/x11-utils-7.7+5/editres/actions.c:187: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[BUFSIZ];
data/x11-utils-7.7+5/editres/actions.c:281: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[BUFSIZ];
data/x11-utils-7.7+5/editres/actions.c:303:6:  [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(buf, ", or ");
data/x11-utils-7.7+5/editres/actions.c:305:6:  [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(buf, ", ");
data/x11-utils-7.7+5/editres/comm.c:86: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 msg[BUFSIZ];
data/x11-utils-7.7+5/editres/comm.c:228: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 error_buf[BUFSIZ] =
data/x11-utils-7.7+5/editres/comm.c:257: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 msg[BUFSIZ], *str;
data/x11-utils-7.7+5/editres/comm.c:893: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 msg[BUFSIZ];
data/x11-utils-7.7+5/editres/geometry.c:61: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 msg[BUFSIZ];
data/x11-utils-7.7+5/editres/geometry.c:100: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 msg[BUFSIZ];
data/x11-utils-7.7+5/editres/geometry.c:190: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[BUFSIZ];
data/x11-utils-7.7+5/editres/geometry.c:241: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/x11-utils-7.7+5/editres/geometry.c:265: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/x11-utils-7.7+5/editres/geometry.c:275: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/x11-utils-7.7+5/editres/handler.c:431: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 * temp, buf[BUFSIZ * 10];	/* here's hoping it's big enough. */
data/x11-utils-7.7+5/editres/handler.c:553: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[BUFSIZ], * resource_string, *filename = (char *) filename_ptr;
data/x11-utils-7.7+5/editres/handler.c:566: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).
    if ((fp = fopen(global_resources.save_resources_file, "a+")) == NULL) {
data/x11-utils-7.7+5/editres/setvalues.c:56: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[BUFSIZ];
data/x11-utils-7.7+5/editres/svpopup.c:109: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 msg[BUFSIZ];
data/x11-utils-7.7+5/editres/utils.c:271:16:  [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((char *)filename, "w")) == NULL ) {
data/x11-utils-7.7+5/editres/utils.c:272: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/x11-utils-7.7+5/editres/utils.c:511: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[BUFSIZ], * errors = NULL;
data/x11-utils-7.7+5/editres/utils.c:631: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/x11-utils-7.7+5/editres/utils.c:854: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[BUFSIZ];
data/x11-utils-7.7+5/editres/wtree.c:60: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 msg[BUFSIZ];
data/x11-utils-7.7+5/editres/wtree.c:106: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 msg[BUFSIZ];
data/x11-utils-7.7+5/editres/wtree.c:403: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[30];
data/x11-utils-7.7+5/editres/wtree.c:419: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(buf, "unrealized widget");
data/x11-utils-7.7+5/editres/wtree.c:421: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(buf, "non windowed object");
data/x11-utils-7.7+5/luit/iso2022.c:41: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.
static unsigned char buffered_input[BUFFERED_INPUT_SIZE];
data/x11-utils-7.7+5/luit/iso2022.c:144: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(is->outbuf + is->outbuf_count, is->buffered, is->buffered_count);
data/x11-utils-7.7+5/luit/iso2022.c:408:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    unsigned char obuf[4];
data/x11-utils-7.7+5/luit/luit.c:279:13:  [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).
	    ilog = open(argv[i + 1], O_WRONLY | O_CREAT | O_TRUNC, 0777);
data/x11-utils-7.7+5/luit/luit.c:288:13:  [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).
	    olog = open(argv[i + 1], O_WRONLY | O_CREAT | O_TRUNC, 0777);
data/x11-utils-7.7+5/luit/luit.c:355: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(child_argv + 1, argv + 1, (unsigned) (argc - 1) * sizeof(char *));
data/x11-utils-7.7+5/luit/luit.c:439: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[BUFFER_SIZE];
data/x11-utils-7.7+5/luit/luit.c:544: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 tmp[10];
data/x11-utils-7.7+5/luit/luit.c:653: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[BUFFER_SIZE];
data/x11-utils-7.7+5/luit/other.c:418: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 bytes[4];
data/x11-utils-7.7+5/luit/other.h:43: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[4];
data/x11-utils-7.7+5/luit/parser.c:35: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 keyword[MAX_KEYWORD_LENGTH];
data/x11-utils-7.7+5/luit/parser.c:177: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 first[MAX_KEYWORD_LENGTH], second[MAX_KEYWORD_LENGTH];
data/x11-utils-7.7+5/luit/parser.c:182: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(locale_alias, "r");
data/x11-utils-7.7+5/luit/sys.c:327: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 name[12], *line = NULL;
data/x11-utils-7.7+5/luit/sys.c:330: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[80];
data/x11-utils-7.7+5/luit/sys.c:331: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.
    char *name2 = strcpy(buffer, "0123456789abcdefghijklmnopqrstuv");
data/x11-utils-7.7+5/luit/sys.c:341: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).
    pty = open("/dev/ptmx", O_RDWR);
data/x11-utils-7.7+5/luit/sys.c:373: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 ttydev[80];		/* OpenBSD says at least 16 bytes */
data/x11-utils-7.7+5/luit/sys.c:395:5:  [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(name, "/dev/pty??");
data/x11-utils-7.7+5/luit/sys.c:400: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).
	    pty = open(name, O_RDWR);
data/x11-utils-7.7+5/luit/sys.c:434: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).
    tty = open(line, O_RDWR
data/x11-utils-7.7+5/xdpyinfo/xdpyinfo.c:227: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 dummybuf[40];
data/x11-utils-7.7+5/xdpyinfo/xdpyinfo.c:412: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 errorbuf[40];			/* for sprintfing into */
data/x11-utils-7.7+5/xdpyinfo/xdpyinfo.c:453: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 eventbuf[80];			/* want 79 chars per line + nul */
data/x11-utils-7.7+5/xev/xev.c:117: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 str[256 + 1];
data/x11-utils-7.7+5/xev/xev.c:225: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 dmode[10], ddetail[10];
data/x11-utils-7.7+5/xev/xev.c:295: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 dmode[10], ddetail[10];
data/x11-utils-7.7+5/xev/xev.c:385: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 mdummy[10];
data/x11-utils-7.7+5/xev/xev.c:410: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 mdummy[10];
data/x11-utils-7.7+5/xev/xev.c:434: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 vdummy[10];
data/x11-utils-7.7+5/xev/xev.c:527: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 ddummy[10];
data/x11-utils-7.7+5/xev/xev.c:579: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 pdummy[10];
data/x11-utils-7.7+5/xev/xev.c:602: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 pdummy[10];
data/x11-utils-7.7+5/xev/xev.c:627: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 sdummy[10];
data/x11-utils-7.7+5/xev/xev.c:703: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 sdummy[10];
data/x11-utils-7.7+5/xev/xev.c:755: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 rdummy[10];
data/x11-utils-7.7+5/xev/xev.c:1207:35:  [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).
                    borderwidth = atoi(argv[i]);
data/x11-utils-7.7+5/xfd/xfd.c:177: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[256];
data/x11-utils-7.7+5/xfd/xfd.c:353: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[256];
data/x11-utils-7.7+5/xfd/xfd.c:434: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[256];
data/x11-utils-7.7+5/xfontsel/xfontsel.c:306: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[10];
data/x11-utils-7.7+5/xfontsel/xfontsel.c:568: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.
			XtRealloc( (char *) fieldValues[f],
data/x11-utils-7.7+5/xfontsel/xfontsel.c:685:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		XtRealloc( (char *) fieldValues[f],
data/x11-utils-7.7+5/xfontsel/xfontsel.c:806: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).
    return atoi(fval1->string) - atoi(fval2->string);
data/x11-utils-7.7+5/xfontsel/xfontsel.c:806:34:  [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).
    return atoi(fval1->string) - atoi(fval2->string);
data/x11-utils-7.7+5/xfontsel/xfontsel.c:1005: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 label[80];
data/x11-utils-7.7+5/xfontsel/xfontsel.c:1008:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy( label, "1 name matches" );
data/x11-utils-7.7+5/xfontsel/xfontsel.c:1012:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy( label, "no names match" );
data/x11-utils-7.7+5/xfontsel/xfontsel.c:1020: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 label[80];
data/x11-utils-7.7+5/xfontsel/xfontsel.c:1023:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy( label, "1 name to parse" );
data/x11-utils-7.7+5/xkill/xkill.c:184:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    unsigned char pointer_map[256];	 /* 8 bits of pointer num */
data/x11-utils-7.7+5/xkill/xkill.c:257: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).
    *buttonp = atoi (s);
data/x11-utils-7.7+5/xkill/xkill.c:371: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 pointer_map[256];
data/x11-utils-7.7+5/xlsatoms/xlsatoms.c:240: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 atom_name[1024];
data/x11-utils-7.7+5/xlsclients/xlsclients.c:173: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).
		maxcmdlen = atoi (argv[i]);
data/x11-utils-7.7+5/xlsfonts/xlsfonts.c:142:45:  [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_output_line_width = atoi(argv[0]);
data/x11-utils-7.7+5/xlsfonts/xlsfonts.c:147:31:  [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).
                    columns = atoi(argv[0]);
data/x11-utils-7.7+5/xlsfonts/xlsfonts.c:317: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  min[ BUFSIZ ],
data/x11-utils-7.7+5/xlsfonts/xlsfonts.c:322:17:  [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(pmin, "     min(l,r,w,a,d) = (");
data/x11-utils-7.7+5/xlsfonts/xlsfonts.c:323:17:  [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(pmax, "     max(l,r,w,a,d) = (");
data/x11-utils-7.7+5/xlsfonts/xlsfonts.c:417: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(p1, "%d", n1);
data/x11-utils-7.7+5/xlsfonts/xlsfonts.c:418: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(p2, "%d", n2);
data/x11-utils-7.7+5/xlsfonts/xlsfonts.c:420: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(p1, "%*d", w, n1);
data/x11-utils-7.7+5/xlsfonts/xlsfonts.c:421: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(p2, "%*d", w, n2);
data/x11-utils-7.7+5/xlsfonts/xlsfonts.c:489: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 nosuch[40];
data/x11-utils-7.7+5/xlsfonts/xlsfonts.c:497:15:  [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.
        (void)sprintf (atom, "No such atom = %ld", prop->name);
data/x11-utils-7.7+5/xmessage/makeform.c:156: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).
	    exitcode = atoi (colon+1);
data/x11-utils-7.7+5/xmessage/readfile.c:63: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).
    fp = fopen (filename, "r");
data/x11-utils-7.7+5/xmessage/xmessage.c:141: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).
	exit_status = atoi(params[0]);
data/x11-utils-7.7+5/xprop/xprop.c:139: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 _large_buffer[MAXSTR+10];
data/x11-utils-7.7+5/xprop/xprop.c:202:14:  [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).
    *value = atol(string);
data/x11-utils-7.7+5/xprop/xprop.c:532: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 format_buffer[100];
data/x11-utils-7.7+5/xprop/xprop.c:533: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 name[1000];
data/x11-utils-7.7+5/xprop/xprop.c:570: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 _formatting_buffer[MAXSTR+100];
data/x11-utils-7.7+5/xprop/xprop.c:571: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 _formatting_buffer2[21];
data/x11-utils-7.7+5/xprop/xprop.c:620: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(_formatting_buffer, name, namelen);
data/x11-utils-7.7+5/xprop/xprop.c:633:5:  [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(_formatting_buffer, "{MASK: ");
data/x11-utils-7.7+5/xprop/xprop.c:637: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(_formatting_buffer, ", ");
data/x11-utils-7.7+5/xprop/xprop.c:730: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(data, string, len);
data/x11-utils-7.7+5/xprop/xprop.c:786:10:  [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.
	tail += sprintf (tail, "\tIcon (%lu x %lu):\n", width, height);
data/x11-utils-7.7+5/xprop/xprop.c:790:14:  [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.
	    tail += sprintf (tail, "\t(not shown)");
data/x11-utils-7.7+5/xprop/xprop.c:876: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(_buf_ptr, string, n);
data/x11-utils-7.7+5/xprop/xprop.c:1010: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(_formatting_buffer, error, strlen(error)+1);
data/x11-utils-7.7+5/xprop/xprop.c:1646: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.
	static unsigned char data8[MAXELEMENTS];
data/x11-utils-7.7+5/xprop/xprop.c:1686: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.
	static unsigned char data8[MAXELEMENTS];
data/x11-utils-7.7+5/xprop/xprop.c:1911:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(stream = fopen(name, "r")))
data/x11-utils-7.7+5/xprop/xprop.c:1935: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).
	    max_len = atoi(argv[0]);
data/x11-utils-7.7+5/xprop/xprop.c:1940: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).
	    if (!(stream = fopen(argv[0], "r")))
data/x11-utils-7.7+5/xvinfo/xvinfo.c:237:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 imageName[5];
data/x11-utils-7.7+5/xwininfo/clientwin.c:166:13:  [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 (prop_ret, xcb_get_property_value(prop_reply), length);
data/x11-utils-7.7+5/xwininfo/dsimple.c:449: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[256] = "";
data/x11-utils-7.7+5/xwininfo/dsimple.c:643: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 (name, xcb_get_atom_name_name (reply), len);
data/x11-utils-7.7+5/xwininfo/xwininfo.c:404: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 xbuf[BUFSIZ];
data/x11-utils-7.7+5/xwininfo/xwininfo.c:411: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 ybuf[BUFSIZ];
data/x11-utils-7.7+5/xwininfo/xwininfo.c:418: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 bbuf[BUFSIZ];
data/x11-utils-7.7+5/xwininfo/xwininfo.c:428: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.
    static char str[20];
data/x11-utils-7.7+5/xwininfo/xwininfo.c:732: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 (hints_return, xcb_get_property_value (prop), length);
data/x11-utils-7.7+5/xwininfo/xwininfo.c:755: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(w->normal_hints, &hints, sizeof(xcb_size_hints_t));
data/x11-utils-7.7+5/xwininfo/xwininfo.c:759: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(hints_return, w->normal_hints, sizeof(xcb_size_hints_t));
data/x11-utils-7.7+5/xwininfo/xwininfo.c:767: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 _lookup_buffer[100];
data/x11-utils-7.7+5/xwininfo/xwininfo.c:1635: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 (hints_return, xcb_get_property_value (prop), length);
data/x11-utils-7.7+5/xwininfo/xwininfo.c:1915: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 convbuf[BUFSIZ];
data/x11-utils-7.7+5/editres/handler.c:460:3:  [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(buf, "!");
data/x11-utils-7.7+5/editres/handler.c:467: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).
    len = strlen(buf) + 2; /* Leave space for ':' and '\0' */
data/x11-utils-7.7+5/editres/handler.c:472: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).
    len += strlen(temp);
data/x11-utils-7.7+5/editres/handler.c:481:5:  [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(malloc_string, ":");
data/x11-utils-7.7+5/editres/utils.c:97: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).
    size = (sizeof(char *) * *num) + (sizeof(char) * (strlen(in) + 1));
data/x11-utils-7.7+5/editres/utils.c:140:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len_str = ((*str) ? strlen(*str) : 0);
data/x11-utils-7.7+5/editres/utils.c:141: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).
    len_add = strlen(add);
data/x11-utils-7.7+5/listres/listres.c:155: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).
	int l = strlen (wn->label);
data/x11-utils-7.7+5/listres/listres.c:257: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).
	int len = strlen (argv[0]);
data/x11-utils-7.7+5/luit/luit.c:184: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).
	    if (strlen(argv[i + 1]) != 2 ||
data/x11-utils-7.7+5/luit/luit.c:200: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).
	    if (strlen(argv[i + 1]) != 2 ||
data/x11-utils-7.7+5/luit/luit.c:237: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).
	    if (strlen(argv[i + 1]) != 2 ||
data/x11-utils-7.7+5/luit/luit.c:253: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).
	    if (strlen(argv[i + 1]) != 2 ||
data/x11-utils-7.7+5/luit/luit.c:448:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	i = (int) read(ifd, buf, (size_t) BUFFER_SIZE);
data/x11-utils-7.7+5/luit/luit.c:545:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    IGNORE_RC(read(fds[0], tmp, (size_t) 1));
data/x11-utils-7.7+5/luit/luit.c:684:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = (int) read(pty, buf, (size_t) BUFFER_SIZE);
data/x11-utils-7.7+5/luit/luit.c:691:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = (int) read(0, buf, (size_t) BUFFER_SIZE);
data/x11-utils-7.7+5/luit/parser.c:41:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getc(f);
data/x11-utils-7.7+5/luit/parser.c:47:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    c = getc(f);
data/x11-utils-7.7+5/luit/parser.c:54:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getc(f);
data/x11-utils-7.7+5/luit/parser.c:63:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getc(f);
data/x11-utils-7.7+5/luit/parser.c:75:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    c = getc(f);
data/x11-utils-7.7+5/luit/parser.c:80:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    c = getc(f);
data/x11-utils-7.7+5/luit/parser.c:87:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getc(f);
data/x11-utils-7.7+5/luit/parser.c:121:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    c = getc(f);
data/x11-utils-7.7+5/luit/parser.c:128:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getc(f);
data/x11-utils-7.7+5/luit/parser.c:153: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).
	size_t len = strlen(keyword);
data/x11-utils-7.7+5/luit/sys.c:542: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).
	result = malloc(strlen(value) + 1);
data/x11-utils-7.7+5/xdpyinfo/xdpyinfo.c:195: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).
						     strlen(extlist[i]),
data/x11-utils-7.7+5/xdpyinfo/xdpyinfo.c:886:2:  [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(mouseinfo.device) == 0 ? "None": mouseinfo.device);
data/x11-utils-7.7+5/xdpyinfo/xdpyinfo.c:1383: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).
	int extlen = strlen(known_extensions[i].extname) + 1;
data/x11-utils-7.7+5/xdpyinfo/xdpyinfo.c:1463: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).
	size_t len = strlen(arg);
data/x11-utils-7.7+5/xev/xev.c:1073: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).
    size_t len = strlen(s);
data/x11-utils-7.7+5/xfontsel/ULabel.c:304:51:  [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 width = XmbTextEscapement(fset, label, strlen(label));
data/x11-utils-7.7+5/xfontsel/ULabel.c:310: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).
	  lw->label.label_len = strlen(lw->label.label);
data/x11-utils-7.7+5/xfontsel/ULabel.c:346: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).
		    width = XTextWidth16(fs, (XChar2b *)label, (int)strlen(label)/2);
data/x11-utils-7.7+5/xfontsel/ULabel.c:348:40:  [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 = XTextWidthUCS(fs, label, strlen(label));
data/x11-utils-7.7+5/xfontsel/ULabel.c:350: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).
		    width = XTextWidth(fs, label, strlen(label));
data/x11-utils-7.7+5/xfontsel/ULabel.c:355: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).
	    lw->label.label_len = strlen(lw->label.label);
data/x11-utils-7.7+5/xfontsel/ULabel.c:550:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	        len = strlen(label);
data/x11-utils-7.7+5/xfontsel/ULabel.c:575:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	        len = strlen(label);
data/x11-utils-7.7+5/xfontsel/xfontsel.c:324: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).
	    currentFontNameSize = strlen(AppRes.pattern);
data/x11-utils-7.7+5/xfontsel/xfontsel.c:578:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    strncpy( v->string, fieldP, len );
data/x11-utils-7.7+5/xfontsel/xfontsel.c:1080: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).
		    len = strlen(str);
data/x11-utils-7.7+5/xfontsel/xfontsel.c:1411: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).
	*length = strlen(*value);
data/x11-utils-7.7+5/xlsatoms/xlsatoms.c:147: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).
	xcb_intern_atom_unchecked(c, 1, strlen(name), name), NULL);
data/x11-utils-7.7+5/xlsclients/xlsclients.c:142:40:  [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).
    as->cookie = xcb_intern_atom(c, 0, strlen("WM_STATE"), "WM_STATE");
data/x11-utils-7.7+5/xlsclients/xlsclients.c:510: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).
		class_len = strlen(res_class);
data/x11-utils-7.7+5/xlsfonts/xlsfonts.c:324:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                pmin += strlen(pmin);
data/x11-utils-7.7+5/xlsfonts/xlsfonts.c:325:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                pmax += strlen(pmax);
data/x11-utils-7.7+5/xlsfonts/xlsfonts.c:363: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).
            width = strlen(font_list[i].name);
data/x11-utils-7.7+5/xlsfonts/xlsfonts.c:419: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).
    w = MAX(strlen(p1), strlen(p2));
data/x11-utils-7.7+5/xlsfonts/xlsfonts.c:419:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    w = MAX(strlen(p1), strlen(p2));
data/x11-utils-7.7+5/xlsfonts/xlsfonts.c:422: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).
    p1 += strlen(p1);
data/x11-utils-7.7+5/xlsfonts/xlsfonts.c:423: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).
    p2 += strlen(p2);
data/x11-utils-7.7+5/xlsfonts/xlsfonts.c:503: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).
    for (i = strlen(atom); i < 21; i++) putchar (' ');
data/x11-utils-7.7+5/xmessage/xmessage.c:334: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).
	    len += strlen(argv[i]);
data/x11-utils-7.7+5/xmessage/xmessage.c:344: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).
	    cp += strlen(argv[i]);
data/x11-utils-7.7+5/xprop/xprop.c:124:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    c = getc(stream);
data/x11-utils-7.7+5/xprop/xprop.c:135:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(stream)) == ' ' || c == '\n' || c == '\t');
data/x11-utils-7.7+5/xprop/xprop.c:538:21:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    while ((count = fscanf(stream," %990s %90s ",name,format_buffer)) != EOF) {
data/x11-utils-7.7+5/xprop/xprop.c:549:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getc(stream);
data/x11-utils-7.7+5/xprop/xprop.c:618:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int namelen = strlen(name);
data/x11-utils-7.7+5/xprop/xprop.c:643:5:  [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(_formatting_buffer, "}");
data/x11-utils-7.7+5/xprop/xprop.c:797:14:  [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.
	    tail += sprintf (tail, "\t");
data/x11-utils-7.7+5/xprop/xprop.c:843:14:  [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.
	    tail += sprintf (tail, "\n");
data/x11-utils-7.7+5/xprop/xprop.c:846:10:  [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.
	tail += sprintf (tail, "\n");
data/x11-utils-7.7+5/xprop/xprop.c:870: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).
	    len = strlen(string);
data/x11-utils-7.7+5/xprop/xprop.c:1010: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).
	memcpy(_formatting_buffer, error, strlen(error)+1);
data/x11-utils-7.7+5/xprop/xprop.c:1057: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).
    if (i >= (int)strlen(format))
data/x11-utils-7.7+5/xprop/xprop.c:1058: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).
	i = strlen(format)-1;
data/x11-utils-7.7+5/xprop/xprop.c:1109: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).
    for (j = 0; j  < (int)strlen(format); j++)
data/x11-utils-7.7+5/xprop/xprop.c:1621: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).
	nelements = strlen(value);
data/x11-utils-7.7+5/xprop/xprop.c:1628: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).
	nelements = strlen(value);
data/x11-utils-7.7+5/xwininfo/dsimple.c:161: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).
	xcb_open_font (dpy, cursor_font, strlen ("cursor"), "cursor");
data/x11-utils-7.7+5/xwininfo/dsimple.c:420:65:  [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).
    return recursive_Window_With_Name(dpy, top, &cookies, name, strlen(name));
data/x11-utils-7.7+5/xwininfo/dsimple.c:590:48:  [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).
	a->intern_atom = xcb_intern_atom (dpy, False, strlen (name), (name));
data/x11-utils-7.7+5/xwininfo/xwininfo.c:264: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).
    size_t sd = strlen (dst);
data/x11-utils-7.7+5/xwininfo/xwininfo.c:265: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).
    size_t ss = strlen (src);
data/x11-utils-7.7+5/xwininfo/xwininfo.c:271:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (dst + sd, src, dstsize-sd-1);
data/x11-utils-7.7+5/xwininfo/xwininfo.c:367: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).
		s = strlen (nbuf);
data/x11-utils-7.7+5/xwininfo/xwininfo.c:377: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).
		s = strlen (nbuf);
data/x11-utils-7.7+5/xwininfo/xwininfo.c:387: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).
		s = strlen (nbuf);
data/x11-utils-7.7+5/xwininfo/xwininfo.c:395: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).
		s = strlen (nbuf);
data/x11-utils-7.7+5/xwininfo/xwininfo.c:1365: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).
		instance_name_len = strlen(instance_name);
data/x11-utils-7.7+5/xwininfo/xwininfo.c:1366:20:  [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).
		class_name_len = strlen(class_name);
data/x11-utils-7.7+5/xwininfo/xwininfo.c:1958:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t prefix_len = strlen (prefix);

ANALYSIS SUMMARY:

Hits = 291
Lines analyzed = 28862 in approximately 0.80 seconds (36154 lines/second)
Physical Source Lines of Code (SLOC) = 20881
Hits@level = [0] 817 [1]  87 [2] 132 [3]   9 [4]  61 [5]   2
Hits@level+ = [0+] 1108 [1+] 291 [2+] 204 [3+]  72 [4+]  63 [5+]   2
Hits/KSLOC@level+ = [0+] 53.0626 [1+] 13.9361 [2+] 9.76965 [3+] 3.44811 [4+] 3.0171 [5+] 0.0957809
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.