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/compiz-plugins-extra-0.8.18/include/compiz-animationaddon.h
Examining data/compiz-plugins-extra-0.8.18/src/trailfocus/trailfocus.c
Examining data/compiz-plugins-extra-0.8.18/src/bicubic/bicubic.c
Examining data/compiz-plugins-extra-0.8.18/src/loginout/loginout.c
Examining data/compiz-plugins-extra-0.8.18/src/highlightcontent/highlightcontent.c
Examining data/compiz-plugins-extra-0.8.18/src/shelf/shelf.c
Examining data/compiz-plugins-extra-0.8.18/src/widget/widget.c
Examining data/compiz-plugins-extra-0.8.18/src/showmouse/showmouse.c
Examining data/compiz-plugins-extra-0.8.18/src/showmouse/showmouse_tex.h
Examining data/compiz-plugins-extra-0.8.18/src/vidcap/vidcap.c
Examining data/compiz-plugins-extra-0.8.18/src/vidcap/wcap-decode.h
Examining data/compiz-plugins-extra-0.8.18/src/maximumize/maximumize.c
Examining data/compiz-plugins-extra-0.8.18/src/extrawm/extrawm.c
Examining data/compiz-plugins-extra-0.8.18/src/bell/bell.c
Examining data/compiz-plugins-extra-0.8.18/src/grid/grid.c
Examining data/compiz-plugins-extra-0.8.18/src/scalefilter/scalefilter.c
Examining data/compiz-plugins-extra-0.8.18/src/workspacenames/workspacenames.c
Examining data/compiz-plugins-extra-0.8.18/src/splash/splash.c
Examining data/compiz-plugins-extra-0.8.18/src/firepaint/firepaint_tex.h
Examining data/compiz-plugins-extra-0.8.18/src/firepaint/firepaint.c
Examining data/compiz-plugins-extra-0.8.18/src/notification/notification.c
Examining data/compiz-plugins-extra-0.8.18/src/gears/gears.c
Examining data/compiz-plugins-extra-0.8.18/src/crashhandler/crashhandler.c
Examining data/compiz-plugins-extra-0.8.18/src/mblur/mblur.c
Examining data/compiz-plugins-extra-0.8.18/src/bench/bench.c
Examining data/compiz-plugins-extra-0.8.18/src/bench/bench_tex.h
Examining data/compiz-plugins-extra-0.8.18/src/3d/3d.c
Examining data/compiz-plugins-extra-0.8.18/src/wallpaper/wallpaper.c
Examining data/compiz-plugins-extra-0.8.18/src/group/group-internal.h
Examining data/compiz-plugins-extra-0.8.18/src/group/selection.c
Examining data/compiz-plugins-extra-0.8.18/src/group/queues.c
Examining data/compiz-plugins-extra-0.8.18/src/group/tab.c
Examining data/compiz-plugins-extra-0.8.18/src/group/group.c
Examining data/compiz-plugins-extra-0.8.18/src/group/paint.c
Examining data/compiz-plugins-extra-0.8.18/src/group/cairo.c
Examining data/compiz-plugins-extra-0.8.18/src/group/group_glow.h
Examining data/compiz-plugins-extra-0.8.18/src/group/init.c
Examining data/compiz-plugins-extra-0.8.18/src/addhelper/addhelper.c
Examining data/compiz-plugins-extra-0.8.18/src/reflex/reflex.c
Examining data/compiz-plugins-extra-0.8.18/src/cubeaddon/cubeaddon.c
Examining data/compiz-plugins-extra-0.8.18/src/showdesktop/showdesktop.c
Examining data/compiz-plugins-extra-0.8.18/src/animationaddon/particle.c
Examining data/compiz-plugins-extra-0.8.18/src/animationaddon/animationaddon.h
Examining data/compiz-plugins-extra-0.8.18/src/animationaddon/domino.c
Examining data/compiz-plugins-extra-0.8.18/src/animationaddon/animation_tex.h
Examining data/compiz-plugins-extra-0.8.18/src/animationaddon/leafspread.c
Examining data/compiz-plugins-extra-0.8.18/src/animationaddon/burn.c
Examining data/compiz-plugins-extra-0.8.18/src/animationaddon/animationaddon.c
Examining data/compiz-plugins-extra-0.8.18/src/animationaddon/explode3d.c
Examining data/compiz-plugins-extra-0.8.18/src/animationaddon/skewer.c
Examining data/compiz-plugins-extra-0.8.18/src/animationaddon/glide3.c
Examining data/compiz-plugins-extra-0.8.18/src/animationaddon/beamup.c
Examining data/compiz-plugins-extra-0.8.18/src/animationaddon/fold3d.c
Examining data/compiz-plugins-extra-0.8.18/src/animationaddon/polygon.c
Examining data/compiz-plugins-extra-0.8.18/src/animationaddon/airplane3d.c
Examining data/compiz-plugins-extra-0.8.18/src/fadedesktop/fadedesktop.c

FINAL RESULTS:

data/compiz-plugins-extra-0.8.18/src/crashhandler/crashhandler.c:57:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system (cmd));
data/compiz-plugins-extra-0.8.18/src/crashhandler/crashhandler.c:65:3:  [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.
		execl ("/bin/sh", "/bin/sh", "-c",
data/compiz-plugins-extra-0.8.18/src/grid/grid.c:34:28:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#   define DEBUG_RECT(VAR) fprintf(gridOut, #VAR " %i %i %i %i\n", VAR.x, VAR.y, VAR.width, VAR.height)
data/compiz-plugins-extra-0.8.18/src/grid/grid.c:35:30:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#   define DEBUG_PRINT(ARGS) fprintf ARGS
data/compiz-plugins-extra-0.8.18/src/notification/notification.c:98: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.
    if (access(iconFile, F_OK) == -1)
data/compiz-plugins-extra-0.8.18/src/notification/notification.c:105:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (iconUri, "file://%s", iconFile);
data/compiz-plugins-extra-0.8.18/src/vidcap/vidcap.c:659:4:  [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(vidcapGetDirectory (d), W_OK) == 0) {
data/compiz-plugins-extra-0.8.18/src/vidcap/vidcap.c:689:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(filename, "vidcap-%02d.%s", i, ext);
data/compiz-plugins-extra-0.8.18/src/vidcap/vidcap.c:702:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(filename, "vidcap-%02d.%s", i, ext);
data/compiz-plugins-extra-0.8.18/src/vidcap/vidcap.c:732:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		ret = system(command);
data/compiz-plugins-extra-0.8.18/src/vidcap/vidcap.c:734:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(fullpath, F_OK) != -1)
data/compiz-plugins-extra-0.8.18/src/wallpaper/wallpaper.c:239:3:  [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 (fullpath, path);
data/compiz-plugins-extra-0.8.18/src/wallpaper/wallpaper.c:241:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat (fullpath, file->d_name);
data/compiz-plugins-extra-0.8.18/src/animationaddon/beamup.c:126:21:  [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.
	    rVal = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/animationaddon/beamup.c:137:21:  [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.
	    rVal = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/animationaddon/burn.c:148:21:  [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.
	    rVal = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/animationaddon/burn.c:155:21:  [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.
	    rVal = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/animationaddon/burn.c:159:21:  [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.
	    rVal = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/animationaddon/burn.c:161:21:  [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.
	    rVal = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/animationaddon/burn.c:169:21:  [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.
	    rVal = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/animationaddon/burn.c:171:21:  [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.
	    rVal = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/animationaddon/burn.c:178:18:  [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.
		rVal = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/animationaddon/burn.c:180:18:  [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.
		rVal = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/animationaddon/burn.c:182:18:  [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.
		rVal = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/animationaddon/burn.c:187:18:  [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.
		rVal = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/animationaddon/burn.c:244:21:  [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.
	    rVal = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/animationaddon/burn.c:255:21:  [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.
	    rVal = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/animationaddon/burn.c:257:21:  [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.
	    rVal = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/animationaddon/burn.c:265:21:  [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.
	    rVal = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/animationaddon/burn.c:267:21:  [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.
	    rVal = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/animationaddon/burn.c:272:21:  [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.
	    rVal = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/animationaddon/burn.c:276:21:  [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.
	    rVal = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/firepaint/firepaint.c:603:19:  [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.
		rVal = (float) (random () & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/firepaint/firepaint.c:612:19:  [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.
		rVal = (float) (random () & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/firepaint/firepaint.c:617: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.
		rVal2 = random () % fs->numPoints;
data/compiz-plugins-extra-0.8.18/src/firepaint/firepaint.c:626:19:  [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.
		rVal = (float) (random () & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/firepaint/firepaint.c:628:19:  [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.
		rVal = (float) (random () & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/firepaint/firepaint.c:631:19:  [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.
		rVal = (float) (random () & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/firepaint/firepaint.c:636:23:  [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.
		    rVal = (float) (random () & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/firepaint/firepaint.c:638:23:  [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.
		    rVal = (float) (random () & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/firepaint/firepaint.c:640:23:  [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.
		    rVal = (float) (random () & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/group/init.c:256:5:  [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.
    srand (time (NULL));
data/compiz-plugins-extra-0.8.18/src/notification/notification.c:92:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    homeDir = getenv ("HOME");
data/compiz-plugins-extra-0.8.18/src/showmouse/showmouse.c:426:21:  [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.
	    rVal = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/showmouse/showmouse.c:433:21:  [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.
	    rVal = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/showmouse/showmouse.c:438:17:  [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.
	    j        = random() % nE;
data/compiz-plugins-extra-0.8.18/src/showmouse/showmouse.c:447:25:  [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.
	    rVal     = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/showmouse/showmouse.c:449:25:  [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.
	    rVal     = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/showmouse/showmouse.c:456:21:  [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.
		rVal    = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/showmouse/showmouse.c:458:21:  [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.
		rVal    = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/showmouse/showmouse.c:460:21:  [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.
		rVal    = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/showmouse/showmouse.c:465:21:  [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.
		rVal    = (float)(random() & 0xff) / 255.0;
data/compiz-plugins-extra-0.8.18/src/addhelper/addhelper.c:120: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             instruction[50];
data/compiz-plugins-extra-0.8.18/src/animationaddon/animation_tex.h:21:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char fireTex[4096] = {
data/compiz-plugins-extra-0.8.18/src/animationaddon/animationaddon.c:288: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 ((AnimEffectInfo *)AnimEffectAirplane, (&(AnimEffectInfo)
data/compiz-plugins-extra-0.8.18/src/animationaddon/animationaddon.c:304: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 ((AnimEffectInfo *)AnimEffectBeamUp, (&(AnimEffectInfo)
data/compiz-plugins-extra-0.8.18/src/animationaddon/animationaddon.c:316: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 ((AnimEffectInfo *)AnimEffectBurn, (&(AnimEffectInfo)
data/compiz-plugins-extra-0.8.18/src/animationaddon/animationaddon.c:327: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 ((AnimEffectInfo *)AnimEffectDomino, (&(AnimEffectInfo)
data/compiz-plugins-extra-0.8.18/src/animationaddon/animationaddon.c:342: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 ((AnimEffectInfo *)AnimEffectExplode, (&(AnimEffectInfo)
data/compiz-plugins-extra-0.8.18/src/animationaddon/animationaddon.c:357: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 ((AnimEffectInfo *)AnimEffectFold, (&(AnimEffectInfo)
data/compiz-plugins-extra-0.8.18/src/animationaddon/animationaddon.c:373: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 ((AnimEffectInfo *)AnimEffectGlide3, (&(AnimEffectInfo)
data/compiz-plugins-extra-0.8.18/src/animationaddon/animationaddon.c:389: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 ((AnimEffectInfo *)AnimEffectLeafSpread, (&(AnimEffectInfo)
data/compiz-plugins-extra-0.8.18/src/animationaddon/animationaddon.c:404: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 ((AnimEffectInfo *)AnimEffectRazr, (&(AnimEffectInfo)
data/compiz-plugins-extra-0.8.18/src/animationaddon/animationaddon.c:419: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 ((AnimEffectInfo *)AnimEffectSkewer, (&(AnimEffectInfo)
data/compiz-plugins-extra-0.8.18/src/animationaddon/animationaddon.c:448: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 (animEffects,
data/compiz-plugins-extra-0.8.18/src/animationaddon/particle.c:164: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 (coords, cornerCoords, cornersSize);
data/compiz-plugins-extra-0.8.18/src/animationaddon/particle.c:172: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 (colors + 4, colors, colorSize);
data/compiz-plugins-extra-0.8.18/src/animationaddon/particle.c:173: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 (colors + 8, colors, colorSize);
data/compiz-plugins-extra-0.8.18/src/animationaddon/particle.c:174: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 (colors + 12, colors, colorSize);
data/compiz-plugins-extra-0.8.18/src/animationaddon/particle.c:184:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (dcolors + 4, dcolors, colorSize);
data/compiz-plugins-extra-0.8.18/src/animationaddon/particle.c:185:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (dcolors + 8, dcolors, colorSize);
data/compiz-plugins-extra-0.8.18/src/animationaddon/particle.c:186:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (dcolors + 12, dcolors, colorSize);
data/compiz-plugins-extra-0.8.18/src/animationaddon/polygon.c:784: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(&newClip->box, pClip, sizeof(Box));
data/compiz-plugins-extra-0.8.18/src/animationaddon/polygon.c:785: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(&newClip->texMatrix, matrix, sizeof(CompMatrix));
data/compiz-plugins-extra-0.8.18/src/animationaddon/polygon.c:1363: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 (mat, skewMat, 16 * sizeof (GLfloat));
data/compiz-plugins-extra-0.8.18/src/animationaddon/polygon.c:1373: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 (matf->m, skewMat, 16 * sizeof (float));
data/compiz-plugins-extra-0.8.18/src/bench/bench_tex.h:21:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 number_data[10][2049] = {
data/compiz-plugins-extra-0.8.18/src/bench/bench_tex.h:625:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char image_data[512 * 256 * 4 + 1] = {
data/compiz-plugins-extra-0.8.18/src/crashhandler/crashhandler.c:41: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 cmd[1024];
data/compiz-plugins-extra-0.8.18/src/firepaint/firepaint_tex.h:21:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const unsigned char fireTex[4096] = {
data/compiz-plugins-extra-0.8.18/src/grid/grid.c:982:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    gridOut = fopen("/tmp/grid.log", "w");
data/compiz-plugins-extra-0.8.18/src/group/group_glow.h:32:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char glowTexRect[4096] = {
data/compiz-plugins-extra-0.8.18/src/group/group_glow.h:195:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char glowTexRing [4096]= {
data/compiz-plugins-extra-0.8.18/src/notification/notification.c:76: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               *logLevel, header[256], iconFile[256], *iconUri, *homeDir;
data/compiz-plugins-extra-0.8.18/src/reflex/reflex.c:131: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 str[1024];
data/compiz-plugins-extra-0.8.18/src/scalefilter/scalefilter.c:59:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t filterString[2 * MAX_FILTER_STRING_LEN];
data/compiz-plugins-extra-0.8.18/src/scalefilter/scalefilter.c:121:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char           buffer[2 * MAX_FILTER_STRING_LEN];
data/compiz-plugins-extra-0.8.18/src/scalefilter/scalefilter.c:232: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         filterMatch[2 * MAX_FILTER_TEXT_LEN];
data/compiz-plugins-extra-0.8.18/src/scalefilter/scalefilter.c:478:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            buffer[10];
data/compiz-plugins-extra-0.8.18/src/scalefilter/scalefilter.c:479:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t         wbuffer[10];
data/compiz-plugins-extra-0.8.18/src/shelf/shelf.c:628: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 (&enterEvent.xcrossing, &event->xcrossing,
data/compiz-plugins-extra-0.8.18/src/showmouse/showmouse.c:271: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 (coords, cornerCoords, cornersSize);
data/compiz-plugins-extra-0.8.18/src/showmouse/showmouse.c:279: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 (colors + 4, colors, colorSize);
data/compiz-plugins-extra-0.8.18/src/showmouse/showmouse.c:280: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 (colors + 8, colors, colorSize);
data/compiz-plugins-extra-0.8.18/src/showmouse/showmouse.c:281: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 (colors + 12, colors, colorSize);
data/compiz-plugins-extra-0.8.18/src/showmouse/showmouse.c:291:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (dcolors + 4, dcolors, colorSize);
data/compiz-plugins-extra-0.8.18/src/showmouse/showmouse.c:292:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (dcolors + 8, dcolors, colorSize);
data/compiz-plugins-extra-0.8.18/src/showmouse/showmouse.c:293:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (dcolors + 12, dcolors, colorSize);
data/compiz-plugins-extra-0.8.18/src/showmouse/showmouse_tex.h:21:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char starTex[4096] = {
data/compiz-plugins-extra-0.8.18/src/vidcap/vidcap.c:156:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	decoder->fd = open(filename, O_RDONLY);
data/compiz-plugins-extra-0.8.18/src/vidcap/vidcap.c:640: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 filename[256], ext[32];
data/compiz-plugins-extra-0.8.18/src/vidcap/vidcap.c:643:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(RAWFILE, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_LARGEFILE, 0644);
data/compiz-plugins-extra-0.8.18/src/vidcap/vidcap.c:686:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(ext, "mp4");
data/compiz-plugins-extra-0.8.18/src/vidcap/vidcap.c:791:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		vd->fd = open(WCAPFILE, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_LARGEFILE, 0644);
data/compiz-plugins-extra-0.8.18/src/wallpaper/wallpaper.c:206: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(&(opts[i]->value[n-1].c), &options[i]->value[j].c,
data/compiz-plugins-extra-0.8.18/src/wallpaper/wallpaper.c:224: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 fullpath[256];
data/compiz-plugins-extra-0.8.18/src/wallpaper/wallpaper.c:472: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 (setVal, &optVal->i, sizeof (int));
data/compiz-plugins-extra-0.8.18/src/wallpaper/wallpaper.c:486: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 (setVal, optVal->c, sizeof (unsigned short) * 4);
data/compiz-plugins-extra-0.8.18/src/wallpaper/wallpaper.c:521: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 (&rv[j], newVal, sizeof (WallpaperBackground));
data/compiz-plugins-extra-0.8.18/src/wallpaper/wallpaper.c:1135: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(back, back + 1, (ws->nBackgrounds - bg1) * sizeof (WallpaperBackground));
data/compiz-plugins-extra-0.8.18/src/notification/notification.c:101:39:  [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).
    iconUri = malloc (sizeof (char) * strlen (iconFile) + 8);
data/compiz-plugins-extra-0.8.18/src/scalefilter/scalefilter.c:244:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (filterMatch, filterType, MAX_FILTER_TEXT_LEN);
data/compiz-plugins-extra-0.8.18/src/scalefilter/scalefilter.c:245: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).
    offset = strlen (filterType);
data/compiz-plugins-extra-0.8.18/src/vidcap/vidcap.c:672:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (i = 0; i < strlen(tmpcmd); i++) {
data/compiz-plugins-extra-0.8.18/src/vidcap/vidcap.c:678:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(ext, &tmpcmd[i + 3], j);
data/compiz-plugins-extra-0.8.18/src/vidcap/vidcap.c:679:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
			strncpy(&ext[j], "\0", 1);
data/compiz-plugins-extra-0.8.18/src/vidcap/vidcap.c:715:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (i = 0; i < strlen(tmpcmd); i++) {
data/compiz-plugins-extra-0.8.18/src/wallpaper/wallpaper.c:140:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (back->image && strlen (back->image))
data/compiz-plugins-extra-0.8.18/src/wallpaper/wallpaper.c:240:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat (fullpath, "/");

ANALYSIS SUMMARY:

Hits = 119
Lines analyzed = 59900 in approximately 2.53 seconds (23718 lines/second)
Physical Source Lines of Code (SLOC) = 49873
Hits@level = [0]  15 [1]   9 [2]  58 [3]  39 [4]  13 [5]   0
Hits@level+ = [0+] 134 [1+] 119 [2+] 110 [3+]  52 [4+]  13 [5+]   0
Hits/KSLOC@level+ = [0+] 2.68682 [1+] 2.38606 [2+] 2.2056 [3+] 1.04265 [4+] 0.260662 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
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.