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/xorgproto-2020.1/include/GL/internal/glcore.h
Examining data/xorgproto-2020.1/include/GL/glxint.h
Examining data/xorgproto-2020.1/include/GL/glxmd.h
Examining data/xorgproto-2020.1/include/GL/glxproto.h
Examining data/xorgproto-2020.1/include/GL/glxtokens.h
Examining data/xorgproto-2020.1/include/X11/dri/xf86dri.h
Examining data/xorgproto-2020.1/include/X11/dri/xf86dristr.h
Examining data/xorgproto-2020.1/include/X11/dri/xf86driproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/xcalibrateproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/xcalibratewire.h
Examining data/xorgproto-2020.1/include/X11/extensions/applewmconst.h
Examining data/xorgproto-2020.1/include/X11/extensions/applewmproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/bigreqsproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/bigreqstr.h
Examining data/xorgproto-2020.1/include/X11/extensions/shapestr.h
Examining data/xorgproto-2020.1/include/X11/extensions/shmstr.h
Examining data/xorgproto-2020.1/include/X11/extensions/syncstr.h
Examining data/xorgproto-2020.1/include/X11/extensions/composite.h
Examining data/xorgproto-2020.1/include/X11/extensions/compositeproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/damageproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/damagewire.h
Examining data/xorgproto-2020.1/include/X11/extensions/dmx.h
Examining data/xorgproto-2020.1/include/X11/extensions/dmxproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/dri2proto.h
Examining data/xorgproto-2020.1/include/X11/extensions/dri2tokens.h
Examining data/xorgproto-2020.1/include/X11/extensions/dri3proto.h
Examining data/xorgproto-2020.1/include/X11/extensions/evieproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/Xeviestr.h
Examining data/xorgproto-2020.1/include/X11/extensions/xfixesproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/xfixeswire.h
Examining data/xorgproto-2020.1/include/X11/extensions/fontcache.h
Examining data/xorgproto-2020.1/include/X11/extensions/fontcacheP.h
Examining data/xorgproto-2020.1/include/X11/extensions/fontcachstr.h
Examining data/xorgproto-2020.1/include/X11/extensions/XI.h
Examining data/xorgproto-2020.1/include/X11/extensions/XIproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/XI2.h
Examining data/xorgproto-2020.1/include/X11/extensions/XI2proto.h
Examining data/xorgproto-2020.1/include/X11/extensions/XKB.h
Examining data/xorgproto-2020.1/include/X11/extensions/XKBproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/XKBsrv.h
Examining data/xorgproto-2020.1/include/X11/extensions/XKBstr.h
Examining data/xorgproto-2020.1/include/X11/extensions/XKBgeom.h
Examining data/xorgproto-2020.1/include/X11/extensions/lgewire.h
Examining data/xorgproto-2020.1/include/X11/extensions/presentproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/presenttokens.h
Examining data/xorgproto-2020.1/include/X11/extensions/Print.h
Examining data/xorgproto-2020.1/include/X11/extensions/Printstr.h
Examining data/xorgproto-2020.1/include/X11/extensions/randr.h
Examining data/xorgproto-2020.1/include/X11/extensions/randrproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/recordconst.h
Examining data/xorgproto-2020.1/include/X11/extensions/recordproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/recordstr.h
Examining data/xorgproto-2020.1/include/X11/extensions/render.h
Examining data/xorgproto-2020.1/include/X11/extensions/renderproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/XResproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/saver.h
Examining data/xorgproto-2020.1/include/X11/extensions/saverproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/xtrapbits.h
Examining data/xorgproto-2020.1/include/X11/extensions/xtrapddmi.h
Examining data/xorgproto-2020.1/include/X11/extensions/xtrapdi.h
Examining data/xorgproto-2020.1/include/X11/extensions/xtrapemacros.h
Examining data/xorgproto-2020.1/include/X11/extensions/xtraplib.h
Examining data/xorgproto-2020.1/include/X11/extensions/xtraplibp.h
Examining data/xorgproto-2020.1/include/X11/extensions/xtrapproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/Xv.h
Examining data/xorgproto-2020.1/include/X11/extensions/XvMC.h
Examining data/xorgproto-2020.1/include/X11/extensions/XvMCproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/Xvproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/vldXvMC.h
Examining data/xorgproto-2020.1/include/X11/extensions/windowswm.h
Examining data/xorgproto-2020.1/include/X11/extensions/windowswmstr.h
Examining data/xorgproto-2020.1/include/X11/extensions/xcmiscproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/xcmiscstr.h
Examining data/xorgproto-2020.1/include/X11/extensions/dpmsconst.h
Examining data/xorgproto-2020.1/include/X11/extensions/dpmsproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/ge.h
Examining data/xorgproto-2020.1/include/X11/extensions/geproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/lbx.h
Examining data/xorgproto-2020.1/include/X11/extensions/lbxproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/mitmiscconst.h
Examining data/xorgproto-2020.1/include/X11/extensions/mitmiscproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/multibufconst.h
Examining data/xorgproto-2020.1/include/X11/extensions/multibufproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/secur.h
Examining data/xorgproto-2020.1/include/X11/extensions/securproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/shapeconst.h
Examining data/xorgproto-2020.1/include/X11/extensions/shapeproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/shm.h
Examining data/xorgproto-2020.1/include/X11/extensions/shmproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/syncconst.h
Examining data/xorgproto-2020.1/include/X11/extensions/syncproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/ag.h
Examining data/xorgproto-2020.1/include/X11/extensions/agproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/cup.h
Examining data/xorgproto-2020.1/include/X11/extensions/cupproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/dbe.h
Examining data/xorgproto-2020.1/include/X11/extensions/dbeproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/EVI.h
Examining data/xorgproto-2020.1/include/X11/extensions/EVIproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/xtestext1proto.h
Examining data/xorgproto-2020.1/include/X11/extensions/xtestext1const.h
Examining data/xorgproto-2020.1/include/X11/extensions/xtestconst.h
Examining data/xorgproto-2020.1/include/X11/extensions/xtestproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/xf86bigfont.h
Examining data/xorgproto-2020.1/include/X11/extensions/xf86bigfproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/xf86bigfstr.h
Examining data/xorgproto-2020.1/include/X11/extensions/xf86dga.h
Examining data/xorgproto-2020.1/include/X11/extensions/xf86dga1const.h
Examining data/xorgproto-2020.1/include/X11/extensions/xf86dga1str.h
Examining data/xorgproto-2020.1/include/X11/extensions/xf86dga1proto.h
Examining data/xorgproto-2020.1/include/X11/extensions/xf86dgaconst.h
Examining data/xorgproto-2020.1/include/X11/extensions/xf86dgaproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/xf86dgastr.h
Examining data/xorgproto-2020.1/include/X11/extensions/xf86misc.h
Examining data/xorgproto-2020.1/include/X11/extensions/xf86mscstr.h
Examining data/xorgproto-2020.1/include/X11/extensions/xf86rush.h
Examining data/xorgproto-2020.1/include/X11/extensions/xf86rushstr.h
Examining data/xorgproto-2020.1/include/X11/extensions/xf86vm.h
Examining data/xorgproto-2020.1/include/X11/extensions/xf86vmproto.h
Examining data/xorgproto-2020.1/include/X11/extensions/xf86vmstr.h
Examining data/xorgproto-2020.1/include/X11/extensions/panoramiXproto.h
Examining data/xorgproto-2020.1/include/X11/fonts/font.h
Examining data/xorgproto-2020.1/include/X11/fonts/fontproto.h
Examining data/xorgproto-2020.1/include/X11/fonts/fontstruct.h
Examining data/xorgproto-2020.1/include/X11/fonts/FS.h
Examining data/xorgproto-2020.1/include/X11/fonts/fsmasks.h
Examining data/xorgproto-2020.1/include/X11/fonts/FSproto.h
Examining data/xorgproto-2020.1/include/X11/PM/PM.h
Examining data/xorgproto-2020.1/include/X11/PM/PMproto.h
Examining data/xorgproto-2020.1/include/X11/ap_keysym.h
Examining data/xorgproto-2020.1/include/X11/DECkeysym.h
Examining data/xorgproto-2020.1/include/X11/HPkeysym.h
Examining data/xorgproto-2020.1/include/X11/keysymdef.h
Examining data/xorgproto-2020.1/include/X11/keysym.h
Examining data/xorgproto-2020.1/include/X11/Sunkeysym.h
Examining data/xorgproto-2020.1/include/X11/Xalloca.h
Examining data/xorgproto-2020.1/include/X11/Xarch.h
Examining data/xorgproto-2020.1/include/X11/Xatom.h
Examining data/xorgproto-2020.1/include/X11/Xdefs.h
Examining data/xorgproto-2020.1/include/X11/XF86keysym.h
Examining data/xorgproto-2020.1/include/X11/Xfuncproto.h
Examining data/xorgproto-2020.1/include/X11/Xfuncs.h
Examining data/xorgproto-2020.1/include/X11/X.h
Examining data/xorgproto-2020.1/include/X11/Xmd.h
Examining data/xorgproto-2020.1/include/X11/Xosdefs.h
Examining data/xorgproto-2020.1/include/X11/Xos.h
Examining data/xorgproto-2020.1/include/X11/Xos_r.h
Examining data/xorgproto-2020.1/include/X11/Xproto.h
Examining data/xorgproto-2020.1/include/X11/Xprotostr.h
Examining data/xorgproto-2020.1/include/X11/Xthreads.h
Examining data/xorgproto-2020.1/include/X11/Xw32defs.h
Examining data/xorgproto-2020.1/include/X11/XWDFile.h
Examining data/xorgproto-2020.1/include/X11/Xwindows.h
Examining data/xorgproto-2020.1/include/X11/Xwinsock.h

FINAL RESULTS:

data/xorgproto-2020.1/include/X11/Xw32defs.h:16:11:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
#  define chmod	   _chmod
data/xorgproto-2020.1/include/X11/Xos_r.h:258:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy((p).pws.pw_name, (p).pwp->pw_name);
data/xorgproto-2020.1/include/X11/Xos_r.h:262:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy((p).pws.pw_passwd,(p).pwp->pw_passwd);
data/xorgproto-2020.1/include/X11/Xos_r.h:266:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy((p).pws.pw_class, (p).pwp->pw_class);
data/xorgproto-2020.1/include/X11/Xos_r.h:270:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy((p).pws.pw_gecos, (p).pwp->pw_gecos);
data/xorgproto-2020.1/include/X11/Xos_r.h:274:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy((p).pws.pw_dir, (p).pwp->pw_dir);
data/xorgproto-2020.1/include/X11/Xos_r.h:278:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy((p).pws.pw_shell, (p).pwp->pw_shell);
data/xorgproto-2020.1/include/X11/Xos_r.h:288: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((p).pws.pw_name, (p).pwp->pw_name), \
data/xorgproto-2020.1/include/X11/Xos_r.h:291: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((p).pws.pw_passwd,(p).pwp->pw_passwd), \
data/xorgproto-2020.1/include/X11/Xos_r.h:294: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((p).pws.pw_age, (p).pwp->pw_age), \
data/xorgproto-2020.1/include/X11/Xos_r.h:297: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((p).pws.pw_comment, (p).pwp->pw_comment), \
data/xorgproto-2020.1/include/X11/Xos_r.h:300: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((p).pws.pw_gecos, (p).pwp->pw_gecos), \
data/xorgproto-2020.1/include/X11/Xos_r.h:303: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((p).pws.pw_dir, (p).pwp->pw_dir), \
data/xorgproto-2020.1/include/X11/Xos_r.h:306: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((p).pws.pw_shell, (p).pwp->pw_shell), \
data/xorgproto-2020.1/include/X11/Xos_r.h:426: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((hp).h_name, (hp).hptr->h_name), \
data/xorgproto-2020.1/include/X11/Xos_r.h:432: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((sp).s_name, (sp).sptr->s_name), \
data/xorgproto-2020.1/include/X11/Xos_r.h:434: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((sp).s_proto, (sp).sptr->s_proto), \
data/xorgproto-2020.1/include/X11/Xos_r.h:654:24:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
# define _XGetlogin(p)	getlogin()
data/xorgproto-2020.1/include/X11/Xos_r.h:684:19:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
   (((p).result = getlogin()) ? \
data/xorgproto-2020.1/include/X11/Xos_r.h:1018:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy((p).grp.gr_name, (p).pgrp->gr_name), \
data/xorgproto-2020.1/include/X11/Xos_r.h:1026:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy((p).grp.gr_name, (p).pgrp->gr_name), \
data/xorgproto-2020.1/include/X11/Xw32defs.h:13:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#  define access	   _access
data/xorgproto-2020.1/include/X11/Xw32defs.h:22:11:  [4] (shell) execl:
  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.
#  define execl	 _execl
data/xorgproto-2020.1/include/X11/Xw32defs.h:23:11:  [4] (shell) execle:
  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.
#  define execle	 _execle
data/xorgproto-2020.1/include/X11/Xw32defs.h:24:11:  [4] (shell) execlp:
  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.
#  define execlp	 _execlp
data/xorgproto-2020.1/include/X11/Xw32defs.h:26:11:  [4] (shell) execv:
  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.
#  define execv	 _execv
data/xorgproto-2020.1/include/X11/Xw32defs.h:28:11:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
#  define execvp	 _execvp
data/xorgproto-2020.1/include/X11/Xw32defs.h:40:11:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
#  define mktemp	   _mktemp
data/xorgproto-2020.1/include/X11/Xthreads.h:124:28:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
#    define xmutex_init(m) InitializeCriticalSection(m)
data/xorgproto-2020.1/include/X11/Xthreads.h:127:28:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
#    define xmutex_lock(m) EnterCriticalSection(m)
data/xorgproto-2020.1/include/X11/Xthreads.h:130:5:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
    InitializeCriticalSection(&(cv)->cs); \
data/xorgproto-2020.1/include/X11/Xthreads.h:137:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&(cv)->cs); \
data/xorgproto-2020.1/include/X11/Xthreads.h:143:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(m); \
data/xorgproto-2020.1/include/X11/Xthreads.h:146:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&(cv)->cs); \
data/xorgproto-2020.1/include/X11/Xthreads.h:155:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&(cv)->cs); \
data/xorgproto-2020.1/include/X11/Xw32defs.h:52:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#  define random   rand
data/xorgproto-2020.1/include/X11/Xw32defs.h:53:11:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#  define srandom  srand
data/xorgproto-2020.1/include/X11/Xw32defs.h:53:20:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#  define srandom  srand
data/xorgproto-2020.1/include/X11/Xfuncs.h:36:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
void bcopy();
data/xorgproto-2020.1/include/X11/Xfuncs.h:42:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
void bcopy();
data/xorgproto-2020.1/include/X11/Xfuncs.h:64:12:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#   define bcopy(b1,b2,len) memmove(b2, b1, (size_t)(len))
data/xorgproto-2020.1/include/X11/Xos_r.h:240: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   pwbuf[1024];
data/xorgproto-2020.1/include/X11/Xos_r.h:254:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(&(p).pws, (p).pwp, sizeof(struct passwd));
data/xorgproto-2020.1/include/X11/Xos_r.h:285: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(&(p).pws, (p).pwp, sizeof(struct passwd)), \
data/xorgproto-2020.1/include/X11/Xos_r.h:325: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 pwbuf[X_LINE_MAX];
data/xorgproto-2020.1/include/X11/Xos_r.h:343: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 pwbuf[X_LINE_MAX];
data/xorgproto-2020.1/include/X11/Xos_r.h:412: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           h_name[MAXHOSTNAMELEN];
data/xorgproto-2020.1/include/X11/Xos_r.h:417: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           s_name[255];
data/xorgproto-2020.1/include/X11/Xos_r.h:418: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		 s_proto[255];
data/xorgproto-2020.1/include/X11/Xos_r.h:425: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(&(hp).hent, (hp).hptr, sizeof(struct hostent)), \
data/xorgproto-2020.1/include/X11/Xos_r.h:431: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(&(sp).sent, (sp).sptr, sizeof(struct servent)), \
data/xorgproto-2020.1/include/X11/Xos_r.h:472: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                hbuf[X_LINE_MAX];
data/xorgproto-2020.1/include/X11/Xos_r.h:477: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                sbuf[X_LINE_MAX];
data/xorgproto-2020.1/include/X11/Xos_r.h:565:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[_POSIX_PATH_MAX];
data/xorgproto-2020.1/include/X11/Xos_r.h:567:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[NAME_MAX];
data/xorgproto-2020.1/include/X11/Xos_r.h:569:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[255];
data/xorgproto-2020.1/include/X11/Xos_r.h:576:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (memcpy(&((p).dir_entry), (p).result, (p).result->d_reclen), \
data/xorgproto-2020.1/include/X11/Xos_r.h:587:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[_POSIX_PATH_MAX];
data/xorgproto-2020.1/include/X11/Xos_r.h:589:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[NAME_MAX];
data/xorgproto-2020.1/include/X11/Xos_r.h:591:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[255];
data/xorgproto-2020.1/include/X11/Xos_r.h:611: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(&((p).dir_entry), (p).result, (p).result->d_reclen),	\
data/xorgproto-2020.1/include/X11/Xos_r.h:662:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[MAXLOGNAME];
data/xorgproto-2020.1/include/X11/Xos_r.h:664:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[LOGIN_NAME_MAX];
data/xorgproto-2020.1/include/X11/Xos_r.h:666:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[64];
data/xorgproto-2020.1/include/X11/Xos_r.h:672:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[TTY_NAME_MAX];
data/xorgproto-2020.1/include/X11/Xos_r.h:674:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[_POSIX_TTY_NAME_MAX];
data/xorgproto-2020.1/include/X11/Xos_r.h:676:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[_POSIX_PATH_MAX];
data/xorgproto-2020.1/include/X11/Xos_r.h:678:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[256];
data/xorgproto-2020.1/include/X11/Xos_r.h:707:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[MAXLOGNAME];
data/xorgproto-2020.1/include/X11/Xos_r.h:709:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[LOGIN_NAME_MAX];
data/xorgproto-2020.1/include/X11/Xos_r.h:711:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[64];
data/xorgproto-2020.1/include/X11/Xos_r.h:716:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[TTY_NAME_MAX];
data/xorgproto-2020.1/include/X11/Xos_r.h:718:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[_POSIX_TTY_NAME_MAX];
data/xorgproto-2020.1/include/X11/Xos_r.h:720:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[_POSIX_PATH_MAX];
data/xorgproto-2020.1/include/X11/Xos_r.h:722:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[256];
data/xorgproto-2020.1/include/X11/Xos_r.h:738:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[MAXLOGNAME];
data/xorgproto-2020.1/include/X11/Xos_r.h:740:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[LOGIN_NAME_MAX];
data/xorgproto-2020.1/include/X11/Xos_r.h:742:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[64];
data/xorgproto-2020.1/include/X11/Xos_r.h:747:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[TTY_NAME_MAX];
data/xorgproto-2020.1/include/X11/Xos_r.h:749:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[_POSIX_TTY_NAME_MAX];
data/xorgproto-2020.1/include/X11/Xos_r.h:751:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[_POSIX_PATH_MAX];
data/xorgproto-2020.1/include/X11/Xos_r.h:753:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[256];
data/xorgproto-2020.1/include/X11/Xos_r.h:857:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[TIMELEN];
data/xorgproto-2020.1/include/X11/Xos_r.h:859:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[26];
data/xorgproto-2020.1/include/X11/Xos_r.h:884:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (memcpy(&(p).buf, (p).result, sizeof((p).buf)), (p).result = &(p).buf) : \
data/xorgproto-2020.1/include/X11/Xos_r.h:891:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (memcpy(&(p).buf, (p).result, sizeof((p).buf)), (p).result = &(p).buf) : \
data/xorgproto-2020.1/include/X11/Xos_r.h:905: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.
typedef char _Xatimeparams[TIMELEN];
data/xorgproto-2020.1/include/X11/Xos_r.h:906: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.
typedef char _Xctimeparams[TIMELEN];
data/xorgproto-2020.1/include/X11/Xos_r.h:908: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.
typedef char _Xatimeparams[26];
data/xorgproto-2020.1/include/X11/Xos_r.h:909: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.
typedef char _Xctimeparams[26];
data/xorgproto-2020.1/include/X11/Xos_r.h:927: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.
typedef char _Xatimeparams[TIMELEN];
data/xorgproto-2020.1/include/X11/Xos_r.h:928: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.
typedef char _Xctimeparams[TIMELEN];
data/xorgproto-2020.1/include/X11/Xos_r.h:930: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.
typedef char _Xatimeparams[26];
data/xorgproto-2020.1/include/X11/Xos_r.h:931: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.
typedef char _Xctimeparams[26];
data/xorgproto-2020.1/include/X11/Xos_r.h:948: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.
typedef char _Xatimeparams[TIMELEN];
data/xorgproto-2020.1/include/X11/Xos_r.h:949: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.
typedef char _Xctimeparams[TIMELEN];
data/xorgproto-2020.1/include/X11/Xos_r.h:951: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.
typedef char _Xatimeparams[26];
data/xorgproto-2020.1/include/X11/Xos_r.h:952: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.
typedef char _Xctimeparams[26];
data/xorgproto-2020.1/include/X11/Xos_r.h:1008:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[X_LINE_MAX];	/* Should be sysconf(_SC_GETGR_R_SIZE_MAX)? */
data/xorgproto-2020.1/include/X11/Xos_r.h:1015:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
 ( memcpy(&(p).grp, (p).pgrp, sizeof(struct group)), \
data/xorgproto-2020.1/include/X11/Xos_r.h:1024:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
 ( memcpy(&(p).grp, (p).pgrp, sizeof(struct group)), \
data/xorgproto-2020.1/include/X11/Xos_r.h:1049:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[X_LINE_MAX];	/* Should be sysconf(_SC_GETGR_R_SIZE_MAX)? */
data/xorgproto-2020.1/include/X11/Xos_r.h:1061:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[X_LINE_MAX];	/* Should be sysconf(_SC_GETGR_R_SIZE_MAX)? */
data/xorgproto-2020.1/include/X11/Xos_r.h:1076:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[X_LINE_MAX];	/* Should be sysconf(_SC_GETGR_R_SIZE_MAX)? */
data/xorgproto-2020.1/include/X11/Xw32defs.h:41:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#  define open	   _open
data/xorgproto-2020.1/include/X11/extensions/XKBsrv.h:1115:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *		pattern[_XkbListNumComponents];
data/xorgproto-2020.1/include/X11/extensions/XKBstr.h:117:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	data[XkbAnyActionDataSize];
data/xorgproto-2020.1/include/X11/extensions/XKBstr.h:209:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	message[6];
data/xorgproto-2020.1/include/X11/extensions/XKBstr.h:290:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	per_key_repeat[XkbPerKeyBitArraySize];
data/xorgproto-2020.1/include/X11/extensions/XKBstr.h:314:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char		 vmods[XkbNumVirtualMods];
data/xorgproto-2020.1/include/X11/extensions/XKBstr.h:325:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	 kt_index[XkbNumKbdGroups];
data/xorgproto-2020.1/include/X11/extensions/XKBstr.h:404:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	name[XkbKeyNameLength];
data/xorgproto-2020.1/include/X11/extensions/XKBstr.h:408:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	real[XkbKeyNameLength];
data/xorgproto-2020.1/include/X11/extensions/XKBstr.h:409:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	alias[XkbKeyNameLength];
data/xorgproto-2020.1/include/X11/extensions/XvMC.h:106: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 component_order[4];
data/xorgproto-2020.1/include/X11/extensions/vldXvMC.h:141: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 intra_quantiser_matrix[64];
data/xorgproto-2020.1/include/X11/extensions/vldXvMC.h:142: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 non_intra_quantiser_matrix[64];
data/xorgproto-2020.1/include/X11/extensions/vldXvMC.h:143: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 chroma_intra_quantiser_matrix[64];
data/xorgproto-2020.1/include/X11/extensions/vldXvMC.h:144: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 chroma_non_intra_quantiser_matrix[64];
data/xorgproto-2020.1/include/X11/extensions/xtrapemacros.h:70: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((tcv)->v.flags.e, (a), sizeof((tcv)->v.flags.e))
data/xorgproto-2020.1/include/X11/extensions/xtrapemacros.h:110: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((a), (avail)->valid, sizeof((avail)->valid))
data/xorgproto-2020.1/include/X11/extensions/xtrapemacros.h:142: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((a), (cfg)->flags.e, sizeof((cfg)->flags.e))
data/xorgproto-2020.1/include/X11/extensions/xtrapemacros.h:178: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((a), (cur)->state_flags, sizeof((cur)->state_flags))
data/xorgproto-2020.1/include/X11/extensions/xtrapemacros.h:229: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((a), (tc)->values.tc_flags, sizeof((tc)->values.tc_flags))
data/xorgproto-2020.1/include/X11/extensions/xtrapemacros.h:278:34:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define XETrapGetValues(tc)      memcpy((x),(tc)->values,sizeof((tc)->values))
data/xorgproto-2020.1/include/X11/extensions/xtraplib.h:104: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 data[sz_EventData];
data/xorgproto-2020.1/include/X11/Xos_r.h:257: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).
   (p).len = strlen((p).pwp->pw_name);
data/xorgproto-2020.1/include/X11/Xos_r.h:261: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).
   (p).len = strlen((p).pwp->pw_passwd);
data/xorgproto-2020.1/include/X11/Xos_r.h:265: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).
   (p).len = strlen((p).pwp->pw_class);
data/xorgproto-2020.1/include/X11/Xos_r.h:269: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).
   (p).len = strlen((p).pwp->pw_gecos);
data/xorgproto-2020.1/include/X11/Xos_r.h:273: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).
   (p).len = strlen((p).pwp->pw_dir);
data/xorgproto-2020.1/include/X11/Xos_r.h:277: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).
   (p).len = strlen((p).pwp->pw_shell);
data/xorgproto-2020.1/include/X11/Xos_r.h:287:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ((p).len = strlen((p).pwp->pw_name)), \
data/xorgproto-2020.1/include/X11/Xos_r.h:290:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ((p).len = strlen((p).pwp->pw_passwd)), \
data/xorgproto-2020.1/include/X11/Xos_r.h:293:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ((p).len = strlen((p).pwp->pw_age)), \
data/xorgproto-2020.1/include/X11/Xos_r.h:296:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ((p).len = strlen((p).pwp->pw_comment)), \
data/xorgproto-2020.1/include/X11/Xos_r.h:299:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ((p).len = strlen((p).pwp->pw_gecos)), \
data/xorgproto-2020.1/include/X11/Xos_r.h:302:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ((p).len = strlen((p).pwp->pw_dir)), \
data/xorgproto-2020.1/include/X11/Xos_r.h:305:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ((p).len = strlen((p).pwp->pw_shell)), \
data/xorgproto-2020.1/include/X11/Xos_r.h:685:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (strncpy((p).buf, (p).result, sizeof((p).buf)), \
data/xorgproto-2020.1/include/X11/Xos_r.h:693:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (strncpy((p).buf, (p).result, sizeof((p).buf)), \
data/xorgproto-2020.1/include/X11/Xos_r.h:870:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (strncpy((p).buf, (p).result, sizeof((p).buf)), (p).result = &(p).buf) : \
data/xorgproto-2020.1/include/X11/Xos_r.h:877:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (strncpy((p).buf, (p).result, sizeof((p).buf)), (p).result = &(p).buf) : \
data/xorgproto-2020.1/include/X11/Xos_r.h:1017: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).
   ((p).len = strlen((p).pgrp->gr_name)), \
data/xorgproto-2020.1/include/X11/Xw32defs.h:43:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#  define read	   _read
data/xorgproto-2020.1/include/X11/Xw32defs.h:49:11:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
#  define umask	   _umask
data/xorgproto-2020.1/include/X11/extensions/xtrapemacros.h:50:21:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#define msleep(m)   usleep((m)*1000)

ANALYSIS SUMMARY:

Hits = 147
Lines analyzed = 41301 in approximately 0.94 seconds (43723 lines/second)
Physical Source Lines of Code (SLOC) = 29026
Hits@level = [0]   0 [1]  21 [2]  88 [3]  10 [4]  27 [5]   1
Hits@level+ = [0+] 147 [1+] 147 [2+] 126 [3+]  38 [4+]  28 [5+]   1
Hits/KSLOC@level+ = [0+] 5.06442 [1+] 5.06442 [2+] 4.34094 [3+] 1.30917 [4+] 0.964652 [5+] 0.0344519
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.