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/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_drmi.c
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/wsbm_util.h
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_saa.c
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_driver.c
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_dri2.c
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/svga3d_reg.h
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_rr_inlines.h
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_saa.h
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_drmi.h
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_hosted.h
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_ctrl.c
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_dri3.c
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_driver.h
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_hosted.c
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_xa_composite.c
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_overlay.c
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_layout.c
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_output.c
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_xa_surface.c
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_saa_priv.h
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_ctrl.h
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_drm.h
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_crtc.c
Examining data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_tex_video.c
Examining data/xserver-xorg-video-vmware-13.3.0/src/includeCheck.h
Examining data/xserver-xorg-video-vmware-13.3.0/src/svga_overlay.h
Examining data/xserver-xorg-video-vmware-13.3.0/src/vmwarexinerama.c
Examining data/xserver-xorg-video-vmware-13.3.0/src/svga_escape.h
Examining data/xserver-xorg-video-vmware-13.3.0/src/bits2pixels.c
Examining data/xserver-xorg-video-vmware-13.3.0/src/svga_limits.h
Examining data/xserver-xorg-video-vmware-13.3.0/src/bits2pixels.h
Examining data/xserver-xorg-video-vmware-13.3.0/src/svga_struct.h
Examining data/xserver-xorg-video-vmware-13.3.0/src/vmwaremodes.c
Examining data/xserver-xorg-video-vmware-13.3.0/src/vmware_bootstrap.h
Examining data/xserver-xorg-video-vmware-13.3.0/src/guest_os.h
Examining data/xserver-xorg-video-vmware-13.3.0/src/vmware_common.c
Examining data/xserver-xorg-video-vmware-13.3.0/src/vmwarectrl.h
Examining data/xserver-xorg-video-vmware-13.3.0/src/svga_modes.h
Examining data/xserver-xorg-video-vmware-13.3.0/src/vmwarecurs.c
Examining data/xserver-xorg-video-vmware-13.3.0/src/vmware_common.h
Examining data/xserver-xorg-video-vmware-13.3.0/src/vmwarevideo.c
Examining data/xserver-xorg-video-vmware-13.3.0/src/vmware.h
Examining data/xserver-xorg-video-vmware-13.3.0/src/vm_device_version.h
Examining data/xserver-xorg-video-vmware-13.3.0/src/vmwarectrl.c
Examining data/xserver-xorg-video-vmware-13.3.0/src/vmwarectrlproto.h
Examining data/xserver-xorg-video-vmware-13.3.0/src/svga_reg.h
Examining data/xserver-xorg-video-vmware-13.3.0/src/compat-api.h
Examining data/xserver-xorg-video-vmware-13.3.0/src/vmware_bootstrap.c
Examining data/xserver-xorg-video-vmware-13.3.0/src/vm_basic_types.h
Examining data/xserver-xorg-video-vmware-13.3.0/src/vmware.c
Examining data/xserver-xorg-video-vmware-13.3.0/src/common_compat.h
Examining data/xserver-xorg-video-vmware-13.3.0/saa/saa_priv.h
Examining data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c
Examining data/xserver-xorg-video-vmware-13.3.0/saa/saa.c
Examining data/xserver-xorg-video-vmware-13.3.0/saa/saa_pixmap.c
Examining data/xserver-xorg-video-vmware-13.3.0/saa/saa_accel.c
Examining data/xserver-xorg-video-vmware-13.3.0/saa/saa_render.c
Examining data/xserver-xorg-video-vmware-13.3.0/saa/saa.h
Examining data/xserver-xorg-video-vmware-13.3.0/vmwarectrl/libvmwarectrl.c
Examining data/xserver-xorg-video-vmware-13.3.0/vmwarectrl/libvmwarectrl.h
Examining data/xserver-xorg-video-vmware-13.3.0/vmwarectrl/vmwarectrl.c

FINAL RESULTS:

data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_dri2.c:440:15:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    numChar = readlink(fdPath, ms->dri2_device_name, VMWGFX_DRI_DEVICE_LEN);
data/xserver-xorg-video-vmware-13.3.0/saa/saa.c:132:55:  [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.
saa_prepare_access_pixmap(PixmapPtr pix, saa_access_t access,
data/xserver-xorg-video-vmware-13.3.0/saa/saa.c:150:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if ((access & SAA_ACCESS_R) != 0 && spix->read_access++ == 0)
data/xserver-xorg-video-vmware-13.3.0/saa/saa.c:152:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if ((access & SAA_ACCESS_W) != 0 && spix->write_access++ == 0)
data/xserver-xorg-video-vmware-13.3.0/saa/saa.c:169:54:  [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.
saa_finish_access_pixmap(PixmapPtr pix, saa_access_t access)
data/xserver-xorg-video-vmware-13.3.0/saa/saa.c:176:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if ((access & SAA_ACCESS_R) != 0 && --spix->read_access == 0)
data/xserver-xorg-video-vmware-13.3.0/saa/saa.c:178:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if ((access & SAA_ACCESS_W) != 0 && --spix->write_access == 0)
data/xserver-xorg-video-vmware-13.3.0/saa/saa.c:303:23:  [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.
	      saa_access_t * access)
data/xserver-xorg-video-vmware-13.3.0/saa/saa.c:318:44:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	return saa_prepare_access_pixmap(pixmap, *access, NULL);
data/xserver-xorg-video-vmware-13.3.0/saa/saa.c:320:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    *access |= SAA_ACCESS_R;
data/xserver-xorg-video-vmware-13.3.0/saa/saa.c:326:47:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    return saa_prepare_access_pixmap(pixmap, *access,
data/xserver-xorg-video-vmware-13.3.0/saa/saa.c:337:46:  [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.
saa_fad_write(DrawablePtr draw, saa_access_t access)
data/xserver-xorg-video-vmware-13.3.0/saa/saa.c:342:35:  [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.
    saa_finish_access_pixmap(pix, access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa.h:94:23:  [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.
			      saa_access_t access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa.h:96:20:  [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.
			   saa_access_t access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa.h:98:18:  [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.
		  saa_access_t access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa.h:100:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		   saa_access_t access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa.h:143:55:  [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.
saa_prepare_access_pixmap(PixmapPtr pix, saa_access_t access,
data/xserver-xorg-video-vmware-13.3.0/saa/saa.h:154:23:  [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.
	      saa_access_t * access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa.h:157:54:  [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.
saa_finish_access_pixmap(PixmapPtr pix, saa_access_t access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa.h:163:46:  [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.
saa_fad_write(DrawablePtr draw, saa_access_t access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_render.c:110:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	saa_access_t access;
data/xserver-xorg-video-vmware-13.3.0/saa/saa_render.c:126:55:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (saa_pad_write(pPicture->pDrawable, NULL, FALSE, &access)) {
data/xserver-xorg-video-vmware-13.3.0/saa/saa_render.c:130:41:  [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.
	    saa_fad_write(pPicture->pDrawable, access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_render.c:172:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	saa_access_t access;
data/xserver-xorg-video-vmware-13.3.0/saa/saa_render.c:188:55:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (saa_pad_write(pPicture->pDrawable, NULL, FALSE, &access)) {
data/xserver-xorg-video-vmware-13.3.0/saa/saa_render.c:190:41:  [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.
	    saa_fad_write(pPicture->pDrawable, access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:74:18:  [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.
    saa_access_t access;
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:79:48:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (saa_pad_write(pDrawable, NULL, FALSE, &access)) {
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:86:27:  [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.
	saa_fad_write(pDrawable, access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:97:18:  [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.
    saa_access_t access
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:101:48:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (saa_pad_write(pDrawable, NULL, FALSE, &access)) {
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:105:27:  [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.
	saa_fad_write(pDrawable, access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:117:18:  [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.
    saa_access_t access;
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:121:46:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (saa_pad_write(pDrawable, pGC, TRUE, &access)) {
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:126:27:  [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.
	saa_fad_write(pDrawable, access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:199:48:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!saa_prepare_access_pixmap(dst_pixmap, access, readback))
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:212:42:  [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.
    saa_finish_access_pixmap(dst_pixmap, access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:227:18:  [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.
    saa_access_t access;
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:235:42:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!saa_pad_write(pDst, pGC, TRUE, &access))
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:242:25:  [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.
    saa_fad_write(pDst, access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:258:18:  [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.
    saa_access_t access;
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:266:42:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!saa_pad_write(pDst, pGC, TRUE, &access))
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:274:25:  [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.
    saa_fad_write(pDst, access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:288:18:  [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.
    saa_access_t access;
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:293:49:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!saa_pad_write(pDrawable, NULL, FALSE, &access))
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:298:30:  [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.
    saa_fad_write(pDrawable, access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:309:18:  [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.
    saa_access_t access;
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:317:49:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!saa_pad_write(pDrawable, NULL, FALSE, &access))
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:326:30:  [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.
    saa_fad_write(pDrawable, access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:336:18:  [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.
    saa_access_t access;
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:343:49:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!saa_pad_write(pDrawable, NULL, FALSE, &access))
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:352:30:  [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.
    saa_fad_write(pDrawable, access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:361:18:  [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.
    saa_access_t access;
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:367:49:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!saa_pad_write(pDrawable, NULL, FALSE, &access))
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:376:30:  [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.
    saa_fad_write(pDrawable, access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:406:18:  [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.
    saa_access_t access;
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:438:2:  [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.
	access |= SAA_ACCESS_R;
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:439:43:  [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.
	ret = saa_prepare_access_pixmap(pPixmap, access, region);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:441:43:  [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.
	ret = saa_prepare_access_pixmap(pPixmap, access, NULL);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:454:39:  [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.
    saa_finish_access_pixmap(pPixmap, access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:469:39:  [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.
    saa_finish_access_pixmap(pPixmap, access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:483:18:  [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.
    saa_access_t access;
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:498:48:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!saa_pad_write(pDrawable, pGC, FALSE, &access))
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:507:30:  [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.
    saa_fad_write(pDrawable, access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:518:18:  [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.
    saa_access_t access;
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:524:49:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!saa_pad_write(pDrawable, NULL, FALSE, &access))
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:533:30:  [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.
    saa_fad_write(pDrawable, access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:544:18:  [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.
    saa_access_t access;
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:551:49:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!saa_pad_write(pDrawable, NULL, FALSE, &access))
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:560:30:  [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.
    saa_fad_write(pDrawable, access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:570:18:  [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.
    saa_access_t access;
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:578:47:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!saa_pad_write(pDrawable, pGC, TRUE, &access))
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:591:30:  [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.
    saa_fad_write(pDrawable, access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:838:21:  [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.
			  saa_access_t * access)
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:876:3:  [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.
	*access |= SAA_ACCESS_R;
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:882:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	     *access, dstReg))
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:885:46:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!saa_prepare_access_pixmap(pDstPix, *access, dstReg))
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:893:56:  [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.
	(saa_get_drawable_pixmap(pDst->alphaMap->pDrawable), *access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:933:18:  [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.
    saa_access_t access;
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:943:9:  [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.
				   &access)) {
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:958:38:  [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.
    saa_finish_access_pixmap(pixmap, access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:962:35:  [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.
	saa_finish_access_pixmap(pixmap, access);
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:980:18:  [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.
    saa_access_t access;
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:985:59:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!saa_pad_write(pPicture->pDrawable, NULL, FALSE, &access))
data/xserver-xorg-video-vmware-13.3.0/saa/saa_unaccel.c:990:40:  [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.
    saa_fad_write(pPicture->pDrawable, access);
data/xserver-xorg-video-vmware-13.3.0/src/vmware.c:1250: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(modeName, name);
data/xserver-xorg-video-vmware-13.3.0/src/vmwaremodes.c:96:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(name, sizeof(name), VMW_DEFLT_MODE_NAME, dwidth, dheight);
data/xserver-xorg-video-vmware-13.3.0/src/vmwarexinerama.c:62:65:  [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.
dixLookupWindow(WindowPtr *pWin, XID id, ClientPtr client, Mask access)
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_saa.c:391:83:  [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.
vmwgfx_release_from_cpu(struct saa_driver *driver, PixmapPtr pixmap, saa_access_t access)
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_saa.c:398:79:  [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.
vmwgfx_sync_for_cpu(struct saa_driver *driver, PixmapPtr pixmap, saa_access_t access)
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_saa.c:411:70:  [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.
vmwgfx_map(struct saa_driver *driver, PixmapPtr pixmap, saa_access_t access)
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_saa.c:424:72:  [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.
vmwgfx_unmap(struct saa_driver *driver, PixmapPtr pixmap, saa_access_t access)
data/xserver-xorg-video-vmware-13.3.0/src/vmware.c:1546: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 name[10];
data/xserver-xorg-video-vmware-13.3.0/src/vmware_bootstrap.c:210: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(options, VMWAREOptions, sizeof(VMWAREOptions));
data/xserver-xorg-video-vmware-13.3.0/src/vmware_bootstrap.c:366: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 buildString[sizeof(VMWAREBuildStr)];
data/xserver-xorg-video-vmware-13.3.0/src/vmware_common.c:48:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[10] = {0, };
data/xserver-xorg-video-vmware-13.3.0/src/vmware_common.c:61:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   *outValue = atoi(buf);
data/xserver-xorg-video-vmware-13.3.0/src/vmwarectrl.c:286:10:  [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(xineramaState, extents, number * sizeof (VMWAREXineramaRec));
data/xserver-xorg-video-vmware-13.3.0/src/vmwarecurs.c:137: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(pVMWARE->hwcur.source, src, imageSize * sizeof(uint32));
data/xserver-xorg-video-vmware-13.3.0/src/vmwarecurs.c:138: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(pVMWARE->hwcur.mask,
data/xserver-xorg-video-vmware-13.3.0/src/vmwaremodes.c:89: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[80];
data/xserver-xorg-video-vmware-13.3.0/src/vmwaremodes.c:115:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dispModeList, pScrn->display->modes,
data/xserver-xorg-video-vmware-13.3.0/src/vmwarevideo.c:477:10:  [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(newAdaptors, overlayAdaptors,
data/xserver-xorg-video-vmware-13.3.0/src/vmwarevideo.c:841: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(pVid->bufs[pVid->currBuf].data, buf, pVid->size);
data/xserver-xorg-video-vmware-13.3.0/vmwarectrl/vmwarectrl.c:41:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         x = atoi(argv[2]);
data/xserver-xorg-video-vmware-13.3.0/vmwarectrl/vmwarectrl.c:42:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         y = atoi(argv[3]);
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_crtc.c:350:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ptr, image, 64*64*4);
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_dri2.c:416: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 fdPath[VMWGFX_FD_PATH_LEN];
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_dri3.c:164: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 bus_id[64];
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_driver.c:282:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char bus_id[64];
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_driver.h:148: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 dri2_device_name[VMWGFX_DRI_DEVICE_LEN];
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_output.c:399: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(&atom, value->data, 4);
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_output.c:603: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[32];
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_overlay.c:484: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(port->bufs[port->currBuf].data, buf, port->size);
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_saa.c:179:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(addr, vpix->malloc, size);
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_saa.c:545:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst, src, pitch);
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_tex_video.c:164: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(cm, bt, sizeof(bt_601));
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_tex_video.c:637:7:  [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(ymap, yp, w*h);
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_tex_video.c:638:7:  [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(vmap, vp, w*h/4);
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_tex_video.c:639:7:  [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(umap, up, w*h/4);
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_tex_video.c:963: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(attrs, TexturedAttributes, nattributes * sizeof(XF86AttributeRec));
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_tex_video.c:1003: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(new_adaptors, adaptors, num_adaptors * sizeof(XF86VideoAdaptorPtr));
data/xserver-xorg-video-vmware-13.3.0/src/vmware.c:1249: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).
   modeName = malloc(strlen(name) + 1);
data/xserver-xorg-video-vmware-13.3.0/src/vmware_common.c:60:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(buf, str, i);
data/xserver-xorg-video-vmware-13.3.0/src/vmware_common.c:74:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      for (i = 0; i < strlen(expectedTerminators); i++) {
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_crtc.c:191:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(drm_mode.name, mode->name, DRM_DISPLAY_MODE_LEN - 1);
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_output.c:224:49:  [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->atoms[0] = MakeAtom(drmmode_prop->name, strlen(drmmode_prop->name), TRUE);
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_output.c:246:49:  [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->atoms[0] = MakeAtom(drmmode_prop->name, strlen(drmmode_prop->name), TRUE);
data/xserver-xorg-video-vmware-13.3.0/vmwgfx/vmwgfx_output.c:249: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).
		p->atoms[j] = MakeAtom(e->name, strlen(e->name), TRUE);

ANALYSIS SUMMARY:

Hits = 130
Lines analyzed = 26548 in approximately 0.60 seconds (44355 lines/second)
Physical Source Lines of Code (SLOC) = 16446
Hits@level = [0]  16 [1]   7 [2]  30 [3]   0 [4]  92 [5]   1
Hits@level+ = [0+] 146 [1+] 130 [2+] 123 [3+]  93 [4+]  93 [5+]   1
Hits/KSLOC@level+ = [0+] 8.87754 [1+] 7.90466 [2+] 7.47902 [3+] 5.65487 [4+] 5.65487 [5+] 0.0608051
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.