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-xserver-utils-7.7+8/iceauth/iceauth.c
Examining data/x11-xserver-utils-7.7+8/iceauth/iceauth.h
Examining data/x11-xserver-utils-7.7+8/iceauth/process.c
Examining data/x11-xserver-utils-7.7+8/rgb/rgb.c
Examining data/x11-xserver-utils-7.7+8/rgb/showrgb.c
Examining data/x11-xserver-utils-7.7+8/sessreg/man/filenames.sed.c
Examining data/x11-xserver-utils-7.7+8/sessreg/sessreg.c
Examining data/x11-xserver-utils-7.7+8/sessreg/sessreg.h
Examining data/x11-xserver-utils-7.7+8/xcmsdb/SCCDFile.h
Examining data/x11-xserver-utils-7.7+8/xcmsdb/loadData.c
Examining data/x11-xserver-utils-7.7+8/xcmsdb/xcmsdb.c
Examining data/x11-xserver-utils-7.7+8/xgamma/xgamma.c
Examining data/x11-xserver-utils-7.7+8/xhost/xhost.c
Examining data/x11-xserver-utils-7.7+8/xmodmap/exec.c
Examining data/x11-xserver-utils-7.7+8/xmodmap/handle.c
Examining data/x11-xserver-utils-7.7+8/xmodmap/pf.c
Examining data/x11-xserver-utils-7.7+8/xmodmap/wq.h
Examining data/x11-xserver-utils-7.7+8/xmodmap/xmodmap.c
Examining data/x11-xserver-utils-7.7+8/xmodmap/xmodmap.h
Examining data/x11-xserver-utils-7.7+8/xrandr/xrandr.c
Examining data/x11-xserver-utils-7.7+8/xrdb/xrdb.c
Examining data/x11-xserver-utils-7.7+8/xrefresh/xrefresh.c
Examining data/x11-xserver-utils-7.7+8/xset/xset.c
Examining data/x11-xserver-utils-7.7+8/xsetmode/xsetmode.c
Examining data/x11-xserver-utils-7.7+8/xsetpointer/xsetpointer.c
Examining data/x11-xserver-utils-7.7+8/xsetroot/xsetroot.c
Examining data/x11-xserver-utils-7.7+8/xstdcmap/xstdcmap.c
Examining data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c

FINAL RESULTS:

data/x11-xserver-utils-7.7+8/iceauth/process.c:578:15:  [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.
    exists = (access (authfilename, F_OK) == 0);
data/x11-xserver-utils-7.7+8/iceauth/process.c:579:19:  [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 (exists && access (authfilename, W_OK) != 0) {
data/x11-xserver-utils-7.7+8/iceauth/process.c:593:6:  [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 (authfilename, F_OK) == 0) {	 /* then file does exist! */
data/x11-xserver-utils-7.7+8/iceauth/process.c:633: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 (tmp_nam, iceauth_filename);
data/x11-xserver-utils-7.7+8/iceauth/process.c:1329: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 (authdata, authdata_hex);
data/x11-xserver-utils-7.7+8/rgb/showrgb.c:134: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(path, filename);
data/x11-xserver-utils-7.7+8/xcmsdb/loadData.c:341:14:  [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 ((ntok = sscanf(buf, "%s %s", keyword, token)) > 0) {
data/x11-xserver-utils-7.7+8/xcmsdb/loadData.c:1271: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(delims, DATA_DELIMS);
data/x11-xserver-utils-7.7+8/xmodmap/handle.c:114:38:  [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 badmsg0(what) { badheader(); fprintf (stderr, what); \
data/x11-xserver-utils-7.7+8/xmodmap/handle.c:117:41:  [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 badmsg(what,arg) { badheader(); fprintf (stderr, what, arg); \
data/x11-xserver-utils-7.7+8/xmodmap/handle.c:295:13:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
    return (sscanf (str, fmt, val) == 1);
data/x11-xserver-utils-7.7+8/xmodmap/handle.c:346:6:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
	if (sscanf (line, fmt, &dummy) != 1 || dummy == 0) {
data/x11-xserver-utils-7.7+8/xmodmap/xmodmap.c:75:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    len = vsnprintf(buf, sizeof(buf), format, ap);
data/x11-xserver-utils-7.7+8/xmodmap/xmodmap.c:91:12:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	    len = vsnprintf(*ret, len + 1, format, ap);
data/x11-xserver-utils-7.7+8/xrandr/xrandr.c:170: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, format, ap);
data/x11-xserver-utils-7.7+8/xrandr/xrandr.c:183: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, format, ap);
data/x11-xserver-utils-7.7+8/xrandr/xrandr.c:194: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, format, ap);
data/x11-xserver-utils-7.7+8/xrandr/xrandr.c:2486: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("%02" PRIx8, prop[k]);
data/x11-xserver-utils-7.7+8/xrandr/xrandr.c:2501: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("%02" PRIX8, prop[k]);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:161:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    len = vsnprintf(buf, sizeof(buf), format, ap);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:174:19:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
            len = vsnprintf(*ret, len + 1, format, ap);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:426:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(p - 1, p + 2);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:608:9:  [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(server, client);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:842:9:  [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(arg->val, s);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:844:9:  [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(arg->val, s);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:920:17:  [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(dup, X_OK) == 0) {
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1090:16:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
        (void) mktemp(tmpname2);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1110:16:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
        (void) mktemp(tmpname);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1289:16:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
        (void) mktemp(template);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1348:20:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
            (void) mktemp(tmpname3);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1352:17:  [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(cmd) < 0)
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1367:27:  [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.
            if (!(input = popen(cmd, "r")))
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1380:24:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
                (void) mktemp(tmpname3);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1385:21:  [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(cmd) < 0)
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1395:31:  [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.
                if (!(input = popen(cmd, "r")))
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1522: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-xserver-utils-7.7+8/xset/xset.c:1585:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/x11-xserver-utils-7.7+8/iceauth/process.c:348: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 (*filenamep, mode);
data/x11-xserver-utils-7.7+8/iceauth/process.c:588:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    authfp = fopen (authfilename, "rb");
data/x11-xserver-utils-7.7+8/iceauth/process.c:634:5:  [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 (tmp_nam, "-n");		/* for new */
data/x11-xserver-utils-7.7+8/iceauth/process.c:636: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 (tmp_nam, "wb");		/* umask is still set to 0077 */
data/x11-xserver-utils-7.7+8/iceauth/process.c:652: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_name[1024];			/* large filename size */
data/x11-xserver-utils-7.7+8/iceauth/process.c:1532: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-xserver-utils-7.7+8/rgb/rgb.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 line[512];
data/x11-xserver-utils-7.7+8/rgb/rgb.c:65: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[512];
data/x11-xserver-utils-7.7+8/rgb/rgb.c:84:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open (name, O_WRONLY|O_CREAT, 0666);
data/x11-xserver-utils-7.7+8/rgb/rgb.c:94:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open (name, O_WRONLY|O_CREAT, 0666);
data/x11-xserver-utils-7.7+8/rgb/showrgb.c:97:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( (char *)&rgb, value.dptr, sizeof rgb);
data/x11-xserver-utils-7.7+8/rgb/showrgb.c:122: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 line[BUFSIZ];
data/x11-xserver-utils-7.7+8/rgb/showrgb.c:123: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[BUFSIZ];
data/x11-xserver-utils-7.7+8/rgb/showrgb.c:135:5:  [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(path, ".txt");
data/x11-xserver-utils-7.7+8/rgb/showrgb.c:138: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 (!(rgb = fopen(path, "r")) && !(rgb = fopen(filename, "r"))) {
data/x11-xserver-utils-7.7+8/rgb/showrgb.c:138:46:  [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 (!(rgb = fopen(path, "r")) && !(rgb = fopen(filename, "r"))) {
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:252:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			slot_number = atoi (getstring (&argv, &sflag));
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:367:10:  [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).
		utmp = open (utmp_file, O_RDWR);
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:385:10:  [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).
		wtmp = open (wtmp_file, O_WRONLY|O_APPEND);
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:399:10:  [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).
		llog = open (llog_file, O_RDWR);
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:514:11:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			(void) strcpy(u->ut_line, "console");
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:605: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	servers_line[1024];
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:606: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	disp_name[512];
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:619:30:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	sysnerr ((int)(long)(ttys = fopen (ttys_file, "r")), ttys_file);
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:629:33:  [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).
	sysnerr ((int)(long)(servers = fopen (servers_file, "r")), servers_file);
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:665:16:  [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).
	syserr(utmp = open (utmp_file, O_RDONLY), "open utmp");
data/x11-xserver-utils-7.7+8/xcmsdb/loadData.c:325: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-xserver-utils-7.7+8/xcmsdb/loadData.c:326: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 keyword[BUFSIZ];
data/x11-xserver-utils-7.7+8/xcmsdb/loadData.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 token[BUFSIZ], *ptoken;
data/x11-xserver-utils-7.7+8/xcmsdb/loadData.c:517: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-xserver-utils-7.7+8/xcmsdb/loadData.c:1269: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 delims[8];
data/x11-xserver-utils-7.7+8/xcmsdb/loadData.c:1396: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((char*)&pCorrection->visual_info, (char*)vinfo,
data/x11-xserver-utils-7.7+8/xcmsdb/loadData.c:1431: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-xserver-utils-7.7+8/xcmsdb/loadData.c:1458:26:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    } else if ((stream = fopen(filename, "r")) == NULL) {
data/x11-xserver-utils-7.7+8/xcmsdb/loadData.c:1514: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).
		    screenNumber = atoi(token2);
data/x11-xserver-utils-7.7+8/xcmsdb/xcmsdb.c:140:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		targetFormat = atoi(argv[i]);
data/x11-xserver-utils-7.7+8/xgamma/xgamma.c:126:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		screen = atoi(argv[i]);
data/x11-xserver-utils-7.7+8/xhost/xhost.c:469: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 username[MAXNETNAMELEN];
data/x11-xserver-utils-7.7+8/xhost/xhost.c:473: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.
	    static char domainname[128];
data/x11-xserver-utils-7.7+8/xhost/xhost.c:554: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 ad[INET6_ADDRSTRLEN];
data/x11-xserver-utils-7.7+8/xhost/xhost.c:655: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 kname_out[255];
data/x11-xserver-utils-7.7+8/xhost/xhost.c:665: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 inetname[NI_MAXHOST];
data/x11-xserver-utils-7.7+8/xhost/xhost.c:739: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 netname[512];
data/x11-xserver-utils-7.7+8/xhost/xhost.c:799:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(cp, sip->type, sip->typelength);
data/x11-xserver-utils-7.7+8/xhost/xhost.c:802:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(cp, sip->value, sip->valuelength);
data/x11-xserver-utils-7.7+8/xmodmap/exec.c:75: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 keymap[32];
data/x11-xserver-utils-7.7+8/xmodmap/exec.c:315: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 pmap[256];		/* there are 8 bits of buttons */
data/x11-xserver-utils-7.7+8/xmodmap/exec.c:340: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 defmap[MAXBUTTONCODES];
data/x11-xserver-utils-7.7+8/xmodmap/handle.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.
    unsigned char buttons[MAXBUTTONCODES];
data/x11-xserver-utils-7.7+8/xmodmap/pf.c:47:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[BUFSIZ];
data/x11-xserver-utils-7.7+8/xmodmap/pf.c:55:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen (filename, "r");
data/x11-xserver-utils-7.7+8/xmodmap/wq.h:115: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 button_codes[MAXBUTTONCODES];
data/x11-xserver-utils-7.7+8/xmodmap/xmodmap.c:70: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-xserver-utils-7.7+8/xmodmap/xmodmap.c:317: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 cmd[11] = "clear modX";
data/x11-xserver-utils-7.7+8/xrandr/xrandr.c:58: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.
static const char *direction[5] = {
data/x11-xserver-utils-7.7+8/xrandr/xrandr.c:65: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.
static const char *reflections[5] = {
data/x11-xserver-utils-7.7+8/xrandr/xrandr.c:73: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.
static const char *order[6] = {
data/x11-xserver-utils-7.7+8/xrandr/xrandr.c:422: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.
static const char *connection[3] = {
data/x11-xserver-utils-7.7+8/xrandr/xrandr.c:727: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 (dest->params, params, nparams * sizeof (XFixed));
data/x11-xserver-utils-7.7+8/xrandr/xrandr.c:1436: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 (output->crtc_info->panning_info, &output->panning, sizeof(XRRPanning));
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:115: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 tmpname[32];
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:119: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 tmpname2[32];
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:122: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 tmpname3[32];
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:133: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 *cmd_defines[MAX_CMD_DEFINES];
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:156: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-xserver-utils-7.7+8/xrdb/xrdb.c:414: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 + 1];
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:491: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 num[20];
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:500: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[512];
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:510: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[512];
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:586: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 client[MAXHOSTNAMELEN], server[MAXHOSTNAMELEN], *colon;
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:645: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[50];
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:733: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 buff[BUFSIZ];
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:851: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 copy[512], *c;
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:873: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 copy[512], *c;
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1068:17:  [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).
    while ((i = open("/dev/null", O_RDONLY)) < 3)
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1085:9:  [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(tmpname2, "xrdbD_XXXXXX");
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1086:9:  [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(tmpname3, "\\temp\\xrdbD_XXXXXX");
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1088:9:  [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(tmpname2, "/tmp/xrdbD_XXXXXX");
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1102:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char inputbuf[1024];
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1105:9:  [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(tmpname, "\\temp\\xrdb_XXXXXX");
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1107:9:  [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(tmpname, "/tmp/xrdb_XXXXXX");
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1112:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen(filename, "w");
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1115:22:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
            int fd = mkstemp(tmpname);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1284:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char template[100], old[100];
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1286: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).
        input = fopen(editFile, "r");
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1290:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        output = fopen(template, "w");
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1293:22:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
            int fd = mkstemp(template);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1308:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[BUFSIZ];
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1311:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            output = fopen(template, "r");
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1343:27:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if (!(input = fopen(tmpname2, "w")))
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1355:27:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if (!(input = fopen(tmpname3, "r")))
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1388:31:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                if (!(input = fopen(tmpname3, "r")))
data/x11-xserver-utils-7.7+8/xset/xset.c:233:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		percent = atoi(arg);		/* Set to spec. volume */
data/x11-xserver-utils-7.7+8/xset/xset.c:258:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		percent = atoi(arg);   	       	/* set bell appropriately. */
data/x11-xserver-utils-7.7+8/xset/xset.c:264:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		    set_bell_pitch(dpy, atoi(arg));	/* set the bell.  */
data/x11-xserver-utils-7.7+8/xset/xset.c:269: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).
			set_bell_dur(dpy, atoi(arg));	/*  set the bell.  */
data/x11-xserver-utils-7.7+8/xset/xset.c:313: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).
		    himark = atoi(arg);
data/x11-xserver-utils-7.7+8/xset/xset.c:325: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).
			lowmark = atoi(arg);
data/x11-xserver-utils-7.7+8/xset/xset.c:339:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			    balance = atoi(arg);
data/x11-xserver-utils-7.7+8/xset/xset.c:415:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    if (is_number(arg, 32) && atoi(arg) > 0) {
data/x11-xserver-utils-7.7+8/xset/xset.c:416: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).
		values.led = atoi(arg);
data/x11-xserver-utils-7.7+8/xset/xset.c:443:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    } else if (is_number(arg, 32) && atoi(arg) > 0) {
data/x11-xserver-utils-7.7+8/xset/xset.c:444: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).
		values.led = atoi(arg);
data/x11-xserver-utils-7.7+8/xset/xset.c:471:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		    threshold = atoi(arg); /* Set threshold as user specified. */
data/x11-xserver-utils-7.7+8/xset/xset.c:639:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		set_saver(dpy, TIMEOUT, atoi(arg));
data/x11-xserver-utils-7.7+8/xset/xset.c:645:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		    set_saver(dpy, INTERVAL, atoi(arg));
data/x11-xserver-utils-7.7+8/xset/xset.c:656:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		    key = atoi(arg);
data/x11-xserver-utils-7.7+8/xset/xset.c:706:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			if (is_number(arg, 10000) && atoi(arg) > 0) {
data/x11-xserver-utils-7.7+8/xset/xset.c:707: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).
			    delay = atoi(arg);
data/x11-xserver-utils-7.7+8/xset/xset.c:711:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				if (is_number(arg, 255) && atoi(arg) > 0) {
data/x11-xserver-utils-7.7+8/xset/xset.c:712: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).
				    rate = atoi(arg);
data/x11-xserver-utils-7.7+8/xset/xset.c:734:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		    key = atoi(arg);
data/x11-xserver-utils-7.7+8/xset/xset.c:779: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 (*p || atoi(arg) > maximum)
data/x11-xserver-utils-7.7+8/xset/xset.c:1286: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[20];		       /* big enough for 16 bit number */
data/x11-xserver-utils-7.7+8/xset/xset.c:1305: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 *iatomnames[XkbNumIndicators];
data/x11-xserver-utils-7.7+8/xsetroot/xsetroot.c:171: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).
	    xcf_size = atoi(argv[i]);
data/x11-xserver-utils-7.7+8/xsetroot/xsetroot.c:206: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).
	    mod_x = atoi(argv[i]);
data/x11-xserver-utils-7.7+8/xsetroot/xsetroot.c:209: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).
	    mod_y = atoi(argv[i]);
data/x11-xserver-utils-7.7+8/xsetroot/xsetroot.c:470: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 modula_data[16*16/8];
data/x11-xserver-utils-7.7+8/xstdcmap/xstdcmap.c:122: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		option[512];
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:148: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 modebuf[160];
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:359:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[10];
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.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 tmpbuf[16];
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:549:35:  [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.
    if (mode_flags & V_PHSYNC)    strcat(modebuf, " +hsync");
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:550:35:  [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.
    if (mode_flags & V_NHSYNC)    strcat(modebuf, " -hsync");
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:551:35:  [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.
    if (mode_flags & V_PVSYNC)    strcat(modebuf, " +vsync");
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:552:35:  [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.
    if (mode_flags & V_NVSYNC)    strcat(modebuf, " -vsync");
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:553:35:  [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.
    if (mode_flags & V_INTERLACE) strcat(modebuf, " interlace");
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:554:35:  [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.
    if (mode_flags & V_CSYNC)     strcat(modebuf, " composite");
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:555:35:  [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.
    if (mode_flags & V_PCSYNC)    strcat(modebuf, " +csync");
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:556:35:  [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.
    if (mode_flags & V_NCSYNC)    strcat(modebuf, " -csync");
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:557:35:  [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.
    if (mode_flags & V_DBLSCAN)   strcat(modebuf, " doublescan");
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:691: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).
	lower = atoi (AppRes.field[HDisplay].string);
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:692: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).
	upper = atoi (AppRes.field[HSyncEnd].string);
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:696: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).
	lower = atoi (AppRes.field[HSyncStart].string);
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:697: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).
	upper = atoi (AppRes.field[HTotal].string);
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:701: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).
	lower = atoi (AppRes.field[HSyncEnd].string);
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:702: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).
	upper = atoi (AppRes.field[HDisplay].string) + 
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:707: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).
	lower = atoi (AppRes.field[VDisplay].string);
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:708: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).
	upper = atoi (AppRes.field[VSyncEnd].string);
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:712: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).
	lower = atoi (AppRes.field[VSyncStart].string);
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:713: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).
	upper = atoi (AppRes.field[VTotal].string);
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:717: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).
	lower = atoi (AppRes.field[VSyncEnd].string);
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:718: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).
	upper = atoi (AppRes.field[VDisplay].string) + 
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:722: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).
    current = atoi (sdp->string);
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:725: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 tmp[6];
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:740: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).
    base = atoi (AppRes.field[sdp->use].string);
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:757: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[5];
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:780: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[2], old;
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:825: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[2];
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:907: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[6];
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:965: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[10];
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:1082: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 buf1[5] = {'\0',};
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:1129: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[5];
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:1551:44:  [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).
            TestTimeout = ((unsigned long) atol( argv[2] )) * 1000L;
data/x11-xserver-utils-7.7+8/iceauth/process.c:455: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).
    n = strlen (cmd);
data/x11-xserver-utils-7.7+8/iceauth/process.c:478: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).
#define WRITES(fd, S) (void)write((fd), (S), strlen((S)))
data/x11-xserver-utils-7.7+8/iceauth/process.c:586:22:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    original_umask = umask (0077);	/* disallow non-owner access */
data/x11-xserver-utils-7.7+8/iceauth/process.c:627: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(iceauth_filename) + 3) > tmp_nam_len) {
data/x11-xserver-utils-7.7+8/iceauth/process.c:628:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(tmp_nam, "filename too long", tmp_nam_len);
data/x11-xserver-utils-7.7+8/iceauth/process.c:709:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    (void) umask (original_umask);
data/x11-xserver-utils-7.7+8/iceauth/process.c:1031: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 (cmd);
data/x11-xserver-utils-7.7+8/iceauth/process.c:1286: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).
    protodata_len = strlen (protodata_hex);
data/x11-xserver-utils-7.7+8/iceauth/process.c:1294:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (protodata, protodata_hex + 1, protodata_len - 2);
data/x11-xserver-utils-7.7+8/iceauth/process.c:1313: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).
    authdata_len = strlen (authdata_hex);
data/x11-xserver-utils-7.7+8/iceauth/process.c:1319:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy (authdata, authdata_hex + 1, authdata_len - 2);
data/x11-xserver-utils-7.7+8/iceauth/process.c:1565:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (buf);
data/x11-xserver-utils-7.7+8/rgb/rgb.c:132: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 (name);
data/x11-xserver-utils-7.7+8/rgb/showrgb.c:133: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).
    path = (char *)malloc(strlen(filename) + 5);
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:409:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			 (void) strncpy (ll.ll_line, line, sizeof (ll.ll_line));
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:411:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			 (void) strncpy (ll.ll_host, host_name, sizeof (ll.ll_host));
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:432:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy (u->ut_line, line, sizeof (u->ut_line));
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:436:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy (u->ut_name, user, sizeof (u->ut_name));
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:449: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).
		i = strlen (line);
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:454:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy (u->ut_id, line + i, sizeof (u->ut_id));
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:472:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy (u->ut_host, host, sizeof (u->ut_host));
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:516:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			(void) strncpy (u->ut_line, line, sizeof (u->ut_line));
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:518:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(u->ut_host, line, sizeof(u->ut_host));
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:520: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).
		u->ut_syslen = strlen(line);
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:526:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy (u->ut_user, user, sizeof (u->ut_user));
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:539: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).
		i = strlen (line);
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:544:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy (u->ut_id, line + i, sizeof (u->ut_id));
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:565:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(u->ut_id, tmpu->ut_id,
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:612:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(disp_name, host_name ? host_name : tty_line, sizeof(disp_name)-1);
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:620:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc (ttys)) != EOF)
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:631:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (disp_name);
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:641: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).
		if (servers_line[strlen(servers_line)-1] != '\n')
data/x11-xserver-utils-7.7+8/sessreg/sessreg.c:676:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (read (utmp, (char *) &entry, sizeof (entry)) == sizeof (entry)) {
data/x11-xserver-utils-7.7+8/xcmsdb/loadData.c:1272: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(delims, ":");
data/x11-xserver-utils-7.7+8/xcmsdb/xcmsdb.c:98: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 ((arglen = strlen(arg)) >= (int)strlen(opt) || arglen < minlen) {
data/x11-xserver-utils-7.7+8/xcmsdb/xcmsdb.c:98: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).
    if ((arglen = strlen(arg)) >= (int)strlen(opt) || arglen < minlen) {
data/x11-xserver-utils-7.7+8/xgamma/xgamma.c:85: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).
    arglen = strlen (arg);
data/x11-xserver-utils-7.7+8/xgamma/xgamma.c:86: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).
    slen = strlen (s);
data/x11-xserver-utils-7.7+8/xhost/xhost.c:314: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).
    namelen = strlen(name);
data/x11-xserver-utils-7.7+8/xhost/xhost.c:411: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).
	siaddr.valuelength = strlen(cp);
data/x11-xserver-utils-7.7+8/xhost/xhost.c:490: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).
	ha.length = strlen(netname);
data/x11-xserver-utils-7.7+8/xhost/xhost.c:772:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(kname_out, kname, sizeof (kname_out));
data/x11-xserver-utils-7.7+8/xmodmap/handle.c:101:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (buf, s, len);
data/x11-xserver-utils-7.7+8/xmodmap/pf.c:93: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(line);
data/x11-xserver-utils-7.7+8/xrandr/xrandr.c:3110: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).
	    m->mode.nameLength = strlen (argv[i]);
data/x11-xserver-utils-7.7+8/xrandr/xrandr.c:3444: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).
		    nelements = strlen (prop->value);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:230:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(b->buff + b->used, str, len);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:300: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).
    AppendToBuffer(b, entry->tag, strlen(entry->tag));
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:302: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).
    AppendToBuffer(b, entry->value, strlen(entry->value));
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:382:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(entry.tag, str, length);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:391:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(entry.value, colon, length);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:406: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).
        buff.used = strlen(str);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:513:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(name, value, sizeof(name) - 1);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:591:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(server, XDisplayName(host), sizeof(server));
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:745:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            AppendToBuffer(&b, buff, strlen(buff));
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:814: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).
    arglen = strlen(arg);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:815: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).
    slen = strlen(s);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:832:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (arg->used + strlen(s) + 1 >= arg->room) {
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:845: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).
    arg->used += strlen(s);
data/x11-xserver-utils-7.7+8/xrdb/xrdb.c:1418: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 (tmpname3[strlen(tmpname3) - 1] != 'X')
data/x11-xserver-utils-7.7+8/xrefresh/xrefresh.c:155: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).
    arglen = strlen (arg);
data/x11-xserver-utils-7.7+8/xrefresh/xrefresh.c:156: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).
    slen = strlen (s);
data/x11-xserver-utils-7.7+8/xset/xset.c:561:21:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
# define Usleep(us) usleep((us))
data/x11-xserver-utils-7.7+8/xset/xset.c:1325:24:  [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 = (int) strlen(iatomnames[i]);
data/x11-xserver-utils-7.7+8/xset/xset.c:1351: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) strlen(iatomnames[i]);
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:522: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).
        *length = strlen(*value);
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:681: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 (sdp->string);
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:735: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).
	text.length = strlen (tmp);
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:755: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 (string);
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:760:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy (buf, string, 4);
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:785: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 (string);
data/x11-xserver-utils-7.7+8/xvidtune/xvidtune.c:788:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(buf, "0");

ANALYSIS SUMMARY:

Hits = 264
Lines analyzed = 20034 in approximately 0.55 seconds (36596 lines/second)
Physical Source Lines of Code (SLOC) = 15896
Hits@level = [0] 849 [1]  72 [2] 155 [3]   0 [4]  37 [5]   0
Hits@level+ = [0+] 1113 [1+] 264 [2+] 192 [3+]  37 [4+]  37 [5+]   0
Hits/KSLOC@level+ = [0+] 70.0176 [1+] 16.608 [2+] 12.0785 [3+] 2.32763 [4+] 2.32763 [5+]   0
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.