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-xkb-utils-7.7+5/setxkbmap/setxkbmap.c
Examining data/x11-xkb-utils-7.7+5/xkbcomp/action.c
Examining data/x11-xkb-utils-7.7+5/xkbcomp/action.h
Examining data/x11-xkb-utils-7.7+5/xkbcomp/alias.c
Examining data/x11-xkb-utils-7.7+5/xkbcomp/alias.h
Examining data/x11-xkb-utils-7.7+5/xkbcomp/compat.c
Examining data/x11-xkb-utils-7.7+5/xkbcomp/compat.h
Examining data/x11-xkb-utils-7.7+5/xkbcomp/expr.c
Examining data/x11-xkb-utils-7.7+5/xkbcomp/expr.h
Examining data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c
Examining data/x11-xkb-utils-7.7+5/xkbcomp/indicators.c
Examining data/x11-xkb-utils-7.7+5/xkbcomp/indicators.h
Examining data/x11-xkb-utils-7.7+5/xkbcomp/keycodes.c
Examining data/x11-xkb-utils-7.7+5/xkbcomp/keycodes.h
Examining data/x11-xkb-utils-7.7+5/xkbcomp/keymap.c
Examining data/x11-xkb-utils-7.7+5/xkbcomp/keytypes.c
Examining data/x11-xkb-utils-7.7+5/xkbcomp/listing.c
Examining data/x11-xkb-utils-7.7+5/xkbcomp/misc.c
Examining data/x11-xkb-utils-7.7+5/xkbcomp/misc.h
Examining data/x11-xkb-utils-7.7+5/xkbcomp/parseutils.c
Examining data/x11-xkb-utils-7.7+5/xkbcomp/parseutils.h
Examining data/x11-xkb-utils-7.7+5/xkbcomp/symbols.c
Examining data/x11-xkb-utils-7.7+5/xkbcomp/tokens.h
Examining data/x11-xkb-utils-7.7+5/xkbcomp/utils.c
Examining data/x11-xkb-utils-7.7+5/xkbcomp/utils.h
Examining data/x11-xkb-utils-7.7+5/xkbcomp/vmod.c
Examining data/x11-xkb-utils-7.7+5/xkbcomp/vmod.h
Examining data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c
Examining data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.h
Examining data/x11-xkb-utils-7.7+5/xkbcomp/xkbparse.c
Examining data/x11-xkb-utils-7.7+5/xkbcomp/xkbpath.c
Examining data/x11-xkb-utils-7.7+5/xkbcomp/xkbpath.h
Examining data/x11-xkb-utils-7.7+5/xkbcomp/xkbscan.c
Examining data/x11-xkb-utils-7.7+5/xkbevd/cfgparse.c
Examining data/x11-xkb-utils-7.7+5/xkbevd/cfgscan.c
Examining data/x11-xkb-utils-7.7+5/xkbevd/evargs.c
Examining data/x11-xkb-utils-7.7+5/xkbevd/printev.c
Examining data/x11-xkb-utils-7.7+5/xkbevd/tokens.h
Examining data/x11-xkb-utils-7.7+5/xkbevd/utils.c
Examining data/x11-xkb-utils-7.7+5/xkbevd/utils.h
Examining data/x11-xkb-utils-7.7+5/xkbevd/xkbevd.c
Examining data/x11-xkb-utils-7.7+5/xkbevd/xkbevd.h
Examining data/x11-xkb-utils-7.7+5/xkbprint/isokeys.h
Examining data/x11-xkb-utils-7.7+5/xkbprint/psgeom.c
Examining data/x11-xkb-utils-7.7+5/xkbprint/utils.c
Examining data/x11-xkb-utils-7.7+5/xkbprint/utils.h
Examining data/x11-xkb-utils-7.7+5/xkbprint/xkbprint.c
Examining data/x11-xkb-utils-7.7+5/xkbprint/xkbprint.h
Examining data/x11-xkb-utils-7.7+5/xkbutils/LED.c
Examining data/x11-xkb-utils-7.7+5/xkbutils/LED.h
Examining data/x11-xkb-utils-7.7+5/xkbutils/LEDP.h
Examining data/x11-xkb-utils-7.7+5/xkbutils/utils.c
Examining data/x11-xkb-utils-7.7+5/xkbutils/utils.h
Examining data/x11-xkb-utils-7.7+5/xkbutils/xkbbell.c
Examining data/x11-xkb-utils-7.7+5/xkbutils/xkbvleds.c
Examining data/x11-xkb-utils-7.7+5/xkbutils/xkbwatch.c

FINAL RESULTS:

data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:160:25:  [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.
#define MSG(s)          printf(s)
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:161:25:  [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.
#define MSG1(s,a)       printf(s,a)
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:162:25:  [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.
#define MSG2(s,a,b)     printf(s,a,b)
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:163:25:  [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.
#define MSG3(s,a,b,c)   printf(s,a,b,c)
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:165:43:  [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.
#define VMSG(l,s)        if (verbose>(l)) printf(s)
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:166:43:  [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.
#define VMSG1(l,s,a)     if (verbose>(l)) printf(s,a)
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:167:43:  [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.
#define VMSG2(l,s,a,b)   if (verbose>(l)) printf(s,a,b)
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:168:43:  [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.
#define VMSG3(l,s,a,b,c) if (verbose>(l)) printf(s,a,b,c)
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:170:25:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define ERR(s)          fprintf(stderr,s)
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:171:25:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define ERR1(s,a)       fprintf(stderr,s,a)
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:172:25:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define ERR2(s,a,b)     fprintf(stderr,s,a,b)
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:173:25:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define ERR3(s,a,b,c)   fprintf(stderr,s,a,b,c)
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:727:13:  [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(orig, newOpts->item[i]);
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:730:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(orig, newOpts->item[i]);
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:3299:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(rtrn, totalSize, FONT_TEMPLATE, font, weight, slant,
data/x11-xkb-utils-7.7+5/xkbcomp/listing.c:210:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(outFile, (flags & XkbLC_Hidden) ? "h" : "-");
data/x11-xkb-utils-7.7+5/xkbcomp/listing.c:211:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(outFile, (flags & XkbLC_Default) ? "d" : "-");
data/x11-xkb-utils-7.7+5/xkbcomp/listing.c:212:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(outFile, (flags & XkbLC_Partial) ? "p" : "-");
data/x11-xkb-utils-7.7+5/xkbcomp/listing.c:216:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(outFile, (flags & XkbLC_AlphanumericKeys) ? "a" : "-");
data/x11-xkb-utils-7.7+5/xkbcomp/listing.c:217:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(outFile, (flags & XkbLC_ModifierKeys) ? "m" : "-");
data/x11-xkb-utils-7.7+5/xkbcomp/listing.c:218:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(outFile, (flags & XkbLC_KeypadKeys) ? "k" : "-");
data/x11-xkb-utils-7.7+5/xkbcomp/listing.c:219:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(outFile, (flags & XkbLC_FunctionKeys) ? "f" : "-");
data/x11-xkb-utils-7.7+5/xkbcomp/listing.c:220:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(outFile, (flags & XkbLC_AlternateGroup) ? "g" : "-");
data/x11-xkb-utils-7.7+5/xkbcomp/misc.c:74: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(oldFile, scanFile);
data/x11-xkb-utils-7.7+5/xkbcomp/parseutils.h:44:19:  [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 d1(str,a)	fprintf(stderr,str,a);
data/x11-xkb-utils-7.7+5/xkbcomp/parseutils.h:45:21:  [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 d2(str,a,b)	fprintf(stderr,str,a,b);
data/x11-xkb-utils-7.7+5/xkbcomp/utils.c:129: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(uDebugFile, s, args);
data/x11-xkb-utils-7.7+5/xkbcomp/utils.c:140: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(uDebugFile, s, args);
data/x11-xkb-utils-7.7+5/xkbcomp/utils.c:179: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(errorFile, s, args);
data/x11-xkb-utils-7.7+5/xkbcomp/utils.c:195: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(errorFile, s, args);
data/x11-xkb-utils-7.7+5/xkbcomp/utils.c:213: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(errorFile, s, args);
data/x11-xkb-utils-7.7+5/xkbcomp/utils.c:232: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(errorFile, s, args);
data/x11-xkb-utils-7.7+5/xkbcomp/utils.c:251: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(errorFile, s, args);
data/x11-xkb-utils-7.7+5/xkbcomp/utils.c:273: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(errorFile, s, args);
data/x11-xkb-utils-7.7+5/xkbcomp/utils.c:320: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(rtrn, str);
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:107:14:  [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	M(m)	fprintf(stderr,(m))
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:108:17:  [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	M1(m,a)	fprintf(stderr,(m),(a))
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:799:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(outputFile, base);
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:800:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(&outputFile[ext - base + 1], fileTypeExt[outputFormat]);
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:820: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(outputFile, name);
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:829: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(ch, fileTypeExt[outputFormat]);
data/x11-xkb-utils-7.7+5/xkbcomp/xkbparse.c:1067:21:  [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 YYFPRINTF fprintf
data/x11-xkb-utils-7.7+5/xkbcomp/xkbpath.c:236: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(includePath[nPathEntries++], dir);
data/x11-xkb-utils-7.7+5/xkbcomp/xkbpath.c:410:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(*pathRtrn, buf);
data/x11-xkb-utils-7.7+5/xkbevd/cfgparse.c:689:21:  [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 YYFPRINTF fprintf
data/x11-xkb-utils-7.7+5/xkbevd/evargs.c:49:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(sink, "%s", XkbAtomText(dpy, ev->bell.name, XkbMessage));
data/x11-xkb-utils-7.7+5/xkbevd/evargs.c:59:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(sink, "%s",
data/x11-xkb-utils-7.7+5/xkbevd/evargs.c:78:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(sink, "%s", ev->message.message);
data/x11-xkb-utils-7.7+5/xkbevd/evargs.c:83:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(sink, "%s", (ev->message.press ? "press" : "release"));
data/x11-xkb-utils-7.7+5/xkbevd/evargs.c:85:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(sink, "%s",
data/x11-xkb-utils-7.7+5/xkbevd/utils.c:60: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(errorFile, s, ap);
data/x11-xkb-utils-7.7+5/xkbevd/utils.c:75: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(errorFile, s, ap);
data/x11-xkb-utils-7.7+5/xkbevd/utils.c:90: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(errorFile, s, ap);
data/x11-xkb-utils-7.7+5/xkbevd/utils.c:105: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(errorFile, s, ap);
data/x11-xkb-utils-7.7+5/xkbevd/utils.c:120: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(errorFile, s, ap);
data/x11-xkb-utils-7.7+5/xkbevd/xkbevd.c:466:11:  [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.
    ok = (system(cmd) == 0);
data/x11-xkb-utils-7.7+5/xkbevd/xkbevd.c:489:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(buf, sizeof(buf), DFLT_XKBEVD_CONFIG, (home ? home : ""));
data/x11-xkb-utils-7.7+5/xkbevd/xkbevd.c:506:13:  [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), DFLT_SYS_XKBEVD_CONFIG,
data/x11-xkb-utils-7.7+5/xkbprint/psgeom.c:1711:21:  [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((char *) buf, tmp);
data/x11-xkb-utils-7.7+5/xkbprint/utils.c:65: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(errorFile, s, ap);
data/x11-xkb-utils-7.7+5/xkbprint/utils.c:80: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(errorFile, s, ap);
data/x11-xkb-utils-7.7+5/xkbprint/utils.c:95: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(errorFile, s, ap);
data/x11-xkb-utils-7.7+5/xkbprint/utils.c:110: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(errorFile, s, ap);
data/x11-xkb-utils-7.7+5/xkbprint/utils.c:125: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(errorFile, s, ap);
data/x11-xkb-utils-7.7+5/xkbprint/utils.c:142: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(errorFile, s, ap);
data/x11-xkb-utils-7.7+5/xkbprint/utils.c:159: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-xkb-utils-7.7+5/xkbprint/utils.c:175: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-xkb-utils-7.7+5/xkbprint/xkbprint.c:527:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(outputFile, base);
data/x11-xkb-utils-7.7+5/xkbprint/xkbprint.c:551: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(outputFile, name);
data/x11-xkb-utils-7.7+5/xkbutils/utils.c:62: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(errorFile, s, ap);
data/x11-xkb-utils-7.7+5/xkbutils/utils.c:77: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(errorFile, s, ap);
data/x11-xkb-utils-7.7+5/xkbutils/utils.c:92: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(errorFile, s, ap);
data/x11-xkb-utils-7.7+5/xkbutils/utils.c:107: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(errorFile, s, ap);
data/x11-xkb-utils-7.7+5/xkbutils/utils.c:122: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(errorFile, s, ap);
data/x11-xkb-utils-7.7+5/xkbutils/utils.c:139: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(errorFile, s, ap);
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:555:38:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            settings.display.value = getenv("DISPLAY");
data/x11-xkb-utils-7.7+5/xkbevd/xkbevd.c:488:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        char *home = getenv("HOME");
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:87: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 *srcName[NUM_SOURCES] = {
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:418:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                deviceSpec = atoi(argv[i]); /* only allow device IDs, not names */
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:486: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).
                verbose = atoi(argv[++i]);
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:637: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[PATH_MAX];
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:642: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(name, "r");
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:656: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(buf, "r");
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:848:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[PATH_MAX];
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:217: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 buf[32];
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:222: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(buf, "clearLocks");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:225: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(buf, "latchToLock");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:228: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(buf, "genKeyEvent");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:231: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(buf, "report");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:234: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(buf, "default");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:237: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(buf, "affect");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:240: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(buf, "increment");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:243: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(buf, "modifiers");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:246: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(buf, "group");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:255: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(buf, "accel");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:258: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(buf, "button");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:261: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(buf, "value");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:264: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(buf, "controls");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:267: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(buf, "type");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:270: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(buf, "count");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:273: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(buf, "screen");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:276: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(buf, "sameServer");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:279: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(buf, "data");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:282: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(buf, "device");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:285: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(buf, "keycode");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:288: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(buf, "clearmods");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:291: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(buf, "unknown");
data/x11-xkb-utils-7.7+5/xkbcomp/alias.c:71: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(old->real, use, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/alias.c:115: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(info->alias, def->alias, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/alias.c:116: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(info->real, def->real, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/alias.c:150:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(def.alias, tmp->alias, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/alias.c:151:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(def.real, tmp->real, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/alias.c:221:21:  [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(oldai.real, a->real, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/alias.h:33: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 alias[XkbKeyNameLength + 1];
data/x11-xkb-utils-7.7+5/xkbcomp/alias.h:34: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 real[XkbKeyNameLength + 1];
data/x11-xkb-utils-7.7+5/xkbcomp/compat.c:86: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 buf[128];
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:38: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 buf[32];
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:43: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(buf, "literal");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:46: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(buf, "identifier");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:49: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(buf, "action declaration");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:52: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(buf, "field reference");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:55: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(buf, "array reference");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:58: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(buf, "list of keysyms");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:61: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(buf, "list of actions");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:64: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(buf, "addition");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:67: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(buf, "subtraction");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:70: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(buf, "multiplication");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:73: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(buf, "division");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:76: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(buf, "assignment");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:79: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(buf, "logical not");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:82: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(buf, "arithmetic negation");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:85: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(buf, "bitwise inversion");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:88: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(buf, "plus sign");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:100: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 buf[20];
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:105: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(buf, "unknown");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:108: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(buf, "boolean");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:111: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(buf, "int");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:114: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(buf, "string");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:117: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(buf, "action");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:120: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(buf, "keyname");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:836:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(val_rtrn->keyName.name, expr->value.keyName, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:136: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[8];
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:170: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 over[XkbKeyNameLength + 1];
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:171: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 under[XkbKeyNameLength + 1];
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:252: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 buf[64];
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:256: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(buf, "default");
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:312: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(key->name, "unknown");
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:318: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(key->name, "default");
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:332: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(key->name, "default");
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:2947:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(outline->points, old_outline->points, n * sizeof(XkbPointRec));
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:3607: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(key->name.name, ki->name, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/keycodes.c:39: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[4];
data/x11-xkb-utils-7.7+5/xkbcomp/keycodes.c:81: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 has_alt_forms[XkbMaxLegalKeyCode + 1];
data/x11-xkb-utils-7.7+5/xkbcomp/keycodes.c:360:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[6];
data/x11-xkb-utils-7.7+5/xkbcomp/keycodes.c:441: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-xkb-utils-7.7+5/xkbcomp/keycodes.c:744:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[20];
data/x11-xkb-utils-7.7+5/xkbcomp/keytypes.c:167:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(info->dflt.entries, from->dflt.entries, sz);
data/x11-xkb-utils-7.7+5/xkbcomp/keytypes.c:176:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(info->dflt.lvlNames, from->dflt.lvlNames, sz);
data/x11-xkb-utils-7.7+5/xkbcomp/listing.c:433:25:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    else if ((outFile = fopen(out_name, "w")) == NULL)
data/x11-xkb-utils-7.7+5/xkbcomp/listing.c:473:25:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            inputFile = fopen(list[i].file, "r");
data/x11-xkb-utils-7.7+5/xkbcomp/misc.c:58: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 oldFile[1024] = {0};
data/x11-xkb-utils-7.7+5/xkbcomp/misc.c:287: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[5];
data/x11-xkb-utils-7.7+5/xkbcomp/misc.c:407: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 tmpname[XkbKeyNameLength + 1];
data/x11-xkb-utils-7.7+5/xkbcomp/misc.c:441:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(xkb->names->keys[i].name, name->name,
data/x11-xkb-utils-7.7+5/xkbcomp/misc.c:457:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(xkb->names->keys[i].name, tmpname,
data/x11-xkb-utils-7.7+5/xkbcomp/misc.c:470:21:  [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(xkb->names->keys[i].name, tmpname,
data/x11-xkb-utils-7.7+5/xkbcomp/misc.c:553: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 buf[XkbKeyNameLength + 1];
data/x11-xkb-utils-7.7+5/xkbcomp/misc.c:555:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(xkb->names->keys[n].name, buf, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/misc.c:569: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[XkbKeyNameLength + 1];
data/x11-xkb-utils-7.7+5/xkbcomp/parseutils.h:36: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.
extern char scanBuf[1024];
data/x11-xkb-utils-7.7+5/xkbcomp/symbols.c:85: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 dflt[4] = "*";
data/x11-xkb-utils-7.7+5/xkbcomp/symbols.c:182:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy((char *) new->syms[i], (char *) old->syms[i],
data/x11-xkb-utils-7.7+5/xkbcomp/symbols.c:193:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy((char *) new->acts[i], (char *) old->acts[i],
data/x11-xkb-utils-7.7+5/xkbcomp/symbols.c:792: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).
            included.explicit_group = atoi(stmt->modifier) - 1;
data/x11-xkb-utils-7.7+5/xkbcomp/symbols.c:833:48:  [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).
                    next_incl.explicit_group = atoi(next->modifier) - 1;
data/x11-xkb-utils-7.7+5/xkbcomp/symbols.c:1882: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((void *) key->acts[i], (void *) key->acts[0],
data/x11-xkb-utils-7.7+5/xkbcomp/symbols.c:1891: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((void *) key->syms[i], (void *) key->syms[0],
data/x11-xkb-utils-7.7+5/xkbcomp/symbols.c:2281:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char buf[5];
data/x11-xkb-utils-7.7+5/xkbcomp/symbols.c:2282:21:  [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, xkb->names->keys[i].name, 4);
data/x11-xkb-utils-7.7+5/xkbcomp/utils.c:107: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).
        uDebugFile = fopen(name, "w");
data/x11-xkb-utils-7.7+5/xkbcomp/utils.c:162: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).
        errorFile = fopen(name, "w");
data/x11-xkb-utils-7.7+5/xkbcomp/utils.c:329: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[512], buf2[512];
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:375:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            device_id = atoi(argv[i]);
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:707:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            file = fopen(inputFile, "r");
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:806: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 *ch, *name, buf[128];
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:940:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            file = fopen(inputFile, "r");
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:1105: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 buf[100];
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:1164:21:  [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).
                    open(outputFile, O_WRONLY | O_CREAT | O_EXCL,
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:1179:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                out = fopen(outputFile, "wb");
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.h:170: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 keyName[5];
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.h:195: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[5];
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.h:203: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 alias[5];
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.h:204: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 real[5];
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.h:219: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 keyName[5];
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.h:302: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 over[5];
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.h:303: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 under[5];
data/x11-xkb-utils-7.7+5/xkbcomp/xkbparse.c:1313: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/x11-xkb-utils-7.7+5/xkbcomp/xkbparse.c:1501: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 yymsgbuf[128];
data/x11-xkb-utils-7.7+5/xkbcomp/xkbpath.c:249: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 buf[32];
data/x11-xkb-utils-7.7+5/xkbcomp/xkbpath.c:254: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(buf, "semantics");
data/x11-xkb-utils-7.7+5/xkbcomp/xkbpath.c:257: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(buf, "layout");
data/x11-xkb-utils-7.7+5/xkbcomp/xkbpath.c:260: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(buf, "keymap");
data/x11-xkb-utils-7.7+5/xkbcomp/xkbpath.c:263: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(buf, "keycodes");
data/x11-xkb-utils-7.7+5/xkbcomp/xkbpath.c:266: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(buf, "types");
data/x11-xkb-utils-7.7+5/xkbcomp/xkbpath.c:269: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(buf, "symbols");
data/x11-xkb-utils-7.7+5/xkbcomp/xkbpath.c:272: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(buf, "compat");
data/x11-xkb-utils-7.7+5/xkbcomp/xkbpath.c:276: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(buf, "geometry");
data/x11-xkb-utils-7.7+5/xkbcomp/xkbpath.c:382: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[PATH_MAX], *typeDir;
data/x11-xkb-utils-7.7+5/xkbcomp/xkbpath.c:401: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).
        file = fopen(buf, "r");
data/x11-xkb-utils-7.7+5/xkbcomp/xkbscan.c:43: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 scanFileBuf[1024] = {0};
data/x11-xkb-utils-7.7+5/xkbcomp/xkbscan.c:49:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char scanBuf[1024];
data/x11-xkb-utils-7.7+5/xkbcomp/xkbscan.c:53: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 readBuf[BUFSIZE];
data/x11-xkb-utils-7.7+5/xkbcomp/xkbscan.c:63: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 buf[32];
data/x11-xkb-utils-7.7+5/xkbcomp/xkbscan.c:619: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[nMaxBuffSize];
data/x11-xkb-utils-7.7+5/xkbevd/cfgparse.c:986: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/x11-xkb-utils-7.7+5/xkbevd/cfgparse.c:1003: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 yyformat[sizeof yyunexpected
data/x11-xkb-utils-7.7+5/xkbevd/cfgparse.c:1171: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 yymsgbuf[128];
data/x11-xkb-utils-7.7+5/xkbevd/cfgscan.c:39: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 scanFileBuf[1024];
data/x11-xkb-utils-7.7+5/xkbevd/cfgscan.c:52:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char     buf[BUFSIZE];
data/x11-xkb-utils-7.7+5/xkbevd/cfgscan.c:61: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 buf[32];
data/x11-xkb-utils-7.7+5/xkbevd/evargs.c:35:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(sink, "%d", ev->bell.device);
data/x11-xkb-utils-7.7+5/xkbevd/evargs.c:37:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(sink, "%d", ev->bell.percent);
data/x11-xkb-utils-7.7+5/xkbevd/evargs.c:39:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(sink, "%d", ev->bell.pitch);
data/x11-xkb-utils-7.7+5/xkbevd/evargs.c:41:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(sink, "%d", ev->bell.duration);
data/x11-xkb-utils-7.7+5/xkbevd/evargs.c:43:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(sink, "%d", ev->bell.bell_class);
data/x11-xkb-utils-7.7+5/xkbevd/evargs.c:45:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(sink, "%d", ev->bell.bell_id);
data/x11-xkb-utils-7.7+5/xkbevd/evargs.c:47:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(sink, "0x%x", (unsigned int) ev->bell.window);
data/x11-xkb-utils-7.7+5/xkbevd/evargs.c:57:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(sink, "%d", ev->accessx.device);
data/x11-xkb-utils-7.7+5/xkbevd/evargs.c:64:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(sink, "%d", ev->accessx.keycode);
data/x11-xkb-utils-7.7+5/xkbevd/evargs.c:66:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(sink, "%d", ev->accessx.sk_delay);
data/x11-xkb-utils-7.7+5/xkbevd/evargs.c:68:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(sink, "%d", ev->accessx.debounce_delay);
data/x11-xkb-utils-7.7+5/xkbevd/evargs.c:76:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(sink, "%d", ev->message.device);
data/x11-xkb-utils-7.7+5/xkbevd/evargs.c:81:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(sink, "%d", ev->message.keycode);
data/x11-xkb-utils-7.7+5/xkbevd/evargs.c:113: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[1024];
data/x11-xkb-utils-7.7+5/xkbevd/evargs.c:156: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 buf[1024];
data/x11-xkb-utils-7.7+5/xkbevd/printev.c:38: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 name[20];
data/x11-xkb-utils-7.7+5/xkbevd/printev.c:42: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(name, "KeyPress");
data/x11-xkb-utils-7.7+5/xkbevd/printev.c:45: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(name, "KeyRelease");
data/x11-xkb-utils-7.7+5/xkbevd/printev.c:48: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(name, "unknown");
data/x11-xkb-utils-7.7+5/xkbevd/printev.c:235: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.
        static char buf[20];
data/x11-xkb-utils-7.7+5/xkbevd/utils.c:44: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).
        errorFile = fopen(name, "w");
data/x11-xkb-utils-7.7+5/xkbevd/utils.c:132: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[512], buf2[512];
data/x11-xkb-utils-7.7+5/xkbevd/xkbevd.c:405: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[1024], *cmd;
data/x11-xkb-utils-7.7+5/xkbevd/xkbevd.c:476: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 buf[1024];
data/x11-xkb-utils-7.7+5/xkbevd/xkbevd.c:499: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).
        file = fopen(cfgFileName, "r");
data/x11-xkb-utils-7.7+5/xkbevd/xkbevd.c:508:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            file = fopen(cfgFileName, "r");
data/x11-xkb-utils-7.7+5/xkbprint/psgeom.c:111: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[NLABELS][LABEL_LEN];
data/x11-xkb-utils-7.7+5/xkbprint/psgeom.c:853: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[40], *lbuf;
data/x11-xkb-utils-7.7+5/xkbprint/psgeom.c:935: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[40];
data/x11-xkb-utils-7.7+5/xkbprint/psgeom.c:1605:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static unsigned char buf[30];
data/x11-xkb-utils-7.7+5/xkbprint/psgeom.c:1887: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 keycode[10];
data/x11-xkb-utils-7.7+5/xkbprint/psgeom.c:1989: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 *name, *name2, buf[30], buf2[30];
data/x11-xkb-utils-7.7+5/xkbprint/utils.c:49: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).
        errorFile = fopen(name, "w");
data/x11-xkb-utils-7.7+5/xkbprint/utils.c:154: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-xkb-utils-7.7+5/xkbprint/xkbprint.c:430:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            file = fopen(outputFile, "w");
data/x11-xkb-utils-7.7+5/xkbprint/xkbprint.c:467:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            file = fopen(inputFile, "r");
data/x11-xkb-utils-7.7+5/xkbprint/xkbprint.c:529: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(&outputFile[ext - base + 1], "eps");
data/x11-xkb-utils-7.7+5/xkbprint/xkbprint.c:531: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(&outputFile[ext - base + 1], "ps");
data/x11-xkb-utils-7.7+5/xkbprint/xkbprint.c:536: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 *ch, *name, buf[128];
data/x11-xkb-utils-7.7+5/xkbprint/xkbprint.c:560:13:  [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(ch, "eps");
data/x11-xkb-utils-7.7+5/xkbprint/xkbprint.c:562:13:  [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(ch, "ps");
data/x11-xkb-utils-7.7+5/xkbprint/xkbprint.c:642:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            file = fopen(inputFile, "r");
data/x11-xkb-utils-7.7+5/xkbprint/xkbprint.c:754:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                out = fopen(outputFile, "w");
data/x11-xkb-utils-7.7+5/xkbutils/utils.c:46: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).
        errorFile = fopen(name, "w");
data/x11-xkb-utils-7.7+5/xkbutils/utils.c:151: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[512], buf2[512];
data/x11-xkb-utils-7.7+5/xkbutils/xkbvleds.c:345: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[12];
data/x11-xkb-utils-7.7+5/xkbutils/xkbvleds.c:348:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(buf, "led%d", i + 1);
data/x11-xkb-utils-7.7+5/xkbutils/xkbwatch.c:139:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[30];
data/x11-xkb-utils-7.7+5/xkbutils/xkbwatch.c:141:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "base%d", i);
data/x11-xkb-utils-7.7+5/xkbutils/xkbwatch.c:147:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "latched%d", i);
data/x11-xkb-utils-7.7+5/xkbutils/xkbwatch.c:154:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "locked%d", i);
data/x11-xkb-utils-7.7+5/xkbutils/xkbwatch.c:161:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "effective%d", i);
data/x11-xkb-utils-7.7+5/xkbutils/xkbwatch.c:168:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "compat%d", i);
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:158: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).
#define strpfx(s1,s2)   (strncmp(s1,s2,strlen(s2))==0)
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:698: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 = strlen(orig) + 1;
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:704: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).
            len += strlen(newOpts->item[i]) + 1;
data/x11-xkb-utils-7.7+5/setxkbmap/setxkbmap.c:726:13:  [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(orig, ",");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:249:9:  [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, "x");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:252:9:  [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, "y");
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:1019: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).
                int len = strlen(rtrn.str);
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:1025:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy((char *) act->message, rtrn.str, 6);
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:1228: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).
                int len = strlen(rtrn.str);
data/x11-xkb-utils-7.7+5/xkbcomp/action.c:1235:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy((char *) action->data, rtrn.str, 7);
data/x11-xkb-utils-7.7+5/xkbcomp/alias.c:85:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(info->alias, alias, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/alias.c:86:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(info->real, real, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/alias.c:272:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(a->alias, info->alias, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/alias.c:273:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(a->real, info->real, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:197: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).
            str += strlen("group");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:199: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).
            str += strlen("radiogroup");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:201: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).
            str += strlen("rg");
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:491: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).
            if ((str != NULL) && (strlen(str) == 1))
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:605: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).
                switch (strlen(str))
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:766: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).
            len = strlen(leftRtrn.str) + strlen(rightRtrn.str) + 1;
data/x11-xkb-utils-7.7+5/xkbcomp/expr.c:766:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen(leftRtrn.str) + strlen(rightRtrn.str) + 1;
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:2112:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(key->name, tmp.keyName.name, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:2580:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(key->over, keyDef->over, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:2581:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(key->under, keyDef->under, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:2698: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).
                int len = strlen(keyDef->name);
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:2707:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(key.name, keyDef->name, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:2821: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).
    if ((str == NULL) || (strlen(str) < 1))
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:3294: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).
        strlen(FONT_TEMPLATE) + strlen(font) + strlen(weight) + strlen(slant);
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:3294:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strlen(FONT_TEMPLATE) + strlen(font) + strlen(weight) + strlen(slant);
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:3294: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).
        strlen(FONT_TEMPLATE) + strlen(font) + strlen(weight) + strlen(slant);
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:3294: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).
        strlen(FONT_TEMPLATE) + strlen(font) + strlen(weight) + strlen(slant);
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:3295: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).
    totalSize += strlen(setWidth) + strlen(variant) + strlen(encoding);
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:3295: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).
    totalSize += strlen(setWidth) + strlen(variant) + strlen(encoding);
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:3295: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).
    totalSize += strlen(setWidth) + strlen(variant) + strlen(encoding);
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:3544:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(key->over.name, ki->over, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/geometry.c:3545:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(key->under.name, ki->under, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/listing.c:313: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).
        tmpsize = (head ? strlen(head) : 0) + strlen(filename) + 2;
data/x11-xkb-utils-7.7+5/xkbcomp/listing.c:313:47:  [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).
        tmpsize = (head ? strlen(head) : 0) + strlen(filename) + 2;
data/x11-xkb-utils-7.7+5/xkbcomp/parseutils.c:134:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(def->name, name, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/parseutils.c:156:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(def->alias, alias, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/parseutils.c:158:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(def->real, real, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/parseutils.c:279:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(def->keyName, keyName, 4);
data/x11-xkb-utils-7.7+5/xkbcomp/parseutils.c:556:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(key->over, over, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/parseutils.c:557:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(key->under, under, XkbKeyNameLength);
data/x11-xkb-utils-7.7+5/xkbcomp/parseutils.c:648:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(str) > 2 && str[0] == '0' && str[1] == 'x') {
data/x11-xkb-utils-7.7+5/xkbcomp/utils.c:319: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).
    rtrn = (char *) uAlloc(strlen(str) + 1);
data/x11-xkb-utils-7.7+5/xkbcomp/utils.h:196:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define	uStringPrefix(p,s)	(strncmp(p,s,strlen(p))==0)
data/x11-xkb-utils-7.7+5/xkbcomp/utils.h:203: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	uStrCasePrefix(p,s)	(strncasecmp(p,s,strlen(p))==0)
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:219: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).
    i = strlen(argv[0]);
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:220: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).
    tmp = strlen("xkblist");
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:662: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).
    else if ((strchr(inputFile, ':') == NULL) || (strlen(inputFile) > 2 &&
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:670: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 = strlen(inputFile);
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:760: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).
        int len = strlen("stdin") + strlen(fileTypeExt[outputFormat]) + 2;
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:760: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).
        int len = strlen("stdin") + strlen(fileTypeExt[outputFormat]) + 2;
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:786: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 = strlen(base) + strlen(fileTypeExt[outputFormat]) + 2;
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:786:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(base) + strlen(fileTypeExt[outputFormat]) + 2;
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:812: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 = strlen(name) + strlen(fileTypeExt[outputFormat]) + 2;
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:812:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(name) + strlen(fileTypeExt[outputFormat]) + 2;
data/x11-xkb-utils-7.7+5/xkbcomp/xkbcomp.c:832: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).
    else if (strlen(outputFile) > 2 &&
data/x11-xkb-utils-7.7+5/xkbcomp/xkbparse.c:1213: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).
#   define yystrlen strlen
data/x11-xkb-utils-7.7+5/xkbcomp/xkbparse.c:2797:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			    strncpy(expr->value.keyName,(yyvsp[0].str),4);
data/x11-xkb-utils-7.7+5/xkbcomp/xkbpath.c:212: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(dir);
data/x11-xkb-utils-7.7+5/xkbcomp/xkbpath.c:230: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).
        (char *) calloc(strlen(dir) + 1, sizeof(char));
data/x11-xkb-utils-7.7+5/xkbcomp/xkbpath.c:279:9:  [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, "");
data/x11-xkb-utils-7.7+5/xkbcomp/xkbpath.c:385: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-xkb-utils-7.7+5/xkbcomp/xkbpath.c:386: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).
    typeLen = strlen(typeDir);
data/x11-xkb-utils-7.7+5/xkbcomp/xkbpath.c:389: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).
        pathLen = strlen(includePath[i]);
data/x11-xkb-utils-7.7+5/xkbcomp/xkbpath.c:408: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).
        *pathRtrn = (char *) calloc(strlen(buf) + 1, sizeof(char));
data/x11-xkb-utils-7.7+5/xkbcomp/xkbscan.c:311:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(scanFile, file, 1024);
data/x11-xkb-utils-7.7+5/xkbevd/cfgparse.c:867: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).
#   define yystrlen strlen
data/x11-xkb-utils-7.7+5/xkbevd/cfgscan.c:177:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(scanFile, file, 1024);
data/x11-xkb-utils-7.7+5/xkbevd/cfgscan.c:189:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (((ch = getc(yyin)) != EOF) && (ch != '"')) {
data/x11-xkb-utils-7.7+5/xkbevd/cfgscan.c:191:23:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if ((ch = getc(yyin)) != EOF) {
data/x11-xkb-utils-7.7+5/xkbevd/cfgscan.c:210:33:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if (((tmp = getc(yyin)) != EOF) && (isdigit(tmp)) &&
data/x11-xkb-utils-7.7+5/xkbevd/cfgscan.c:218:44:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if ((!stop) && ((tmp = getc(yyin)) != EOF) && (isdigit(tmp))
data/x11-xkb-utils-7.7+5/xkbevd/cfgscan.c:226:44:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if ((!stop) && ((tmp = getc(yyin)) != EOF) && (isdigit(tmp))
data/x11-xkb-utils-7.7+5/xkbevd/cfgscan.c:260:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (((ch = getc(yyin)) != EOF) && (ch != '>')) {
data/x11-xkb-utils-7.7+5/xkbevd/cfgscan.c:262:23:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if ((ch = getc(yyin)) != EOF) {
data/x11-xkb-utils-7.7+5/xkbevd/cfgscan.c:281:33:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if (((tmp = getc(yyin)) != EOF) && (isdigit(tmp)) &&
data/x11-xkb-utils-7.7+5/xkbevd/cfgscan.c:289:44:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if ((!stop) && ((tmp = getc(yyin)) != EOF) && (isdigit(tmp))
data/x11-xkb-utils-7.7+5/xkbevd/cfgscan.c:297:44:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if ((!stop) && ((tmp = getc(yyin)) != EOF) && (isdigit(tmp))
data/x11-xkb-utils-7.7+5/xkbevd/cfgscan.c:350:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (((ch = getc(yyin)) != EOF) && (isalnum(ch) || (ch == '_'))) {
data/x11-xkb-utils-7.7+5/xkbevd/cfgscan.c:386:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (((ch = getc(yyin)) != EOF) &&
data/x11-xkb-utils-7.7+5/xkbevd/cfgscan.c:393:23:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (((ch = getc(yyin)) != EOF) && (isxdigit(ch))) {
data/x11-xkb-utils-7.7+5/xkbevd/cfgscan.c:422:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ch = getc(yyin);
data/x11-xkb-utils-7.7+5/xkbevd/cfgscan.c:427:25:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            int newch = getc(yyin);
data/x11-xkb-utils-7.7+5/xkbevd/cfgscan.c:431:26:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    ch = getc(yyin);
data/x11-xkb-utils-7.7+5/xkbevd/evargs.c:106: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).
    sink += strlen(sink);
data/x11-xkb-utils-7.7+5/xkbevd/utils.h:94:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define	uStringPrefix(p,s)	(strncmp(p,s,strlen(p))==0)
data/x11-xkb-utils-7.7+5/xkbprint/psgeom.c:1715:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen((char *) buf) < 9)
data/x11-xkb-utils-7.7+5/xkbprint/psgeom.c:1721:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(top->label[(g * 2) + l], (char *) buf, LABEL_LEN - 1);
data/x11-xkb-utils-7.7+5/xkbprint/psgeom.c:1818:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if ((strlen(top->label[G1L1]) > 1) &&
data/x11-xkb-utils-7.7+5/xkbprint/psgeom.c:1821:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if ((strlen(top->label[G1L2]) > 1) &&
data/x11-xkb-utils-7.7+5/xkbprint/psgeom.c:1858:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                size_t len = strlen(top->label[i]);
data/x11-xkb-utils-7.7+5/xkbprint/psgeom.c:2030:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(top.label[G1L1], name, LABEL_LEN - 1);
data/x11-xkb-utils-7.7+5/xkbprint/psgeom.c:2032:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(top.label[G1L2], name2, LABEL_LEN - 1);
data/x11-xkb-utils-7.7+5/xkbprint/psgeom.c:2037:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(top.label[CENTER], name, LABEL_LEN - 1);
data/x11-xkb-utils-7.7+5/xkbprint/utils.h:91:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define	uStringPrefix(p,s)	(strncmp(p,s,strlen(p))==0)
data/x11-xkb-utils-7.7+5/xkbprint/xkbprint.c:459:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t len = strlen(inputFile);
data/x11-xkb-utils-7.7+5/xkbprint/xkbprint.c:488: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 = strlen("stdin.eps") + 2;
data/x11-xkb-utils-7.7+5/xkbprint/xkbprint.c:511: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 = strlen(base) + strlen("eps") + 2;
data/x11-xkb-utils-7.7+5/xkbprint/xkbprint.c:511:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(base) + strlen("eps") + 2;
data/x11-xkb-utils-7.7+5/xkbprint/xkbprint.c:543: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 = strlen(name) + strlen("eps") + 2;
data/x11-xkb-utils-7.7+5/xkbprint/xkbprint.c:543:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(name) + strlen("eps") + 2;
data/x11-xkb-utils-7.7+5/xkbutils/utils.h:73: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	uStrCasePrefix(p,s)	(strncasecmp(p,s,strlen(p))==0)

ANALYSIS SUMMARY:

Hits = 378
Lines analyzed = 33264 in approximately 0.92 seconds (36186 lines/second)
Physical Source Lines of Code (SLOC) = 28173
Hits@level = [0] 502 [1] 105 [2] 196 [3]   2 [4]  75 [5]   0
Hits@level+ = [0+] 880 [1+] 378 [2+] 273 [3+]  77 [4+]  75 [5+]   0
Hits/KSLOC@level+ = [0+] 31.2356 [1+] 13.4171 [2+] 9.69013 [3+] 2.73311 [4+] 2.66212 [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.