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-experimental-0.8.18/include/compiz-elements.h
Examining data/compiz-plugins-experimental-0.8.18/src/fakeargb/fakeargb.c
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/fish2.h
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/fish2.c
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/shark.c
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/whale.h
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/dolphin.c
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/crab.c
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/chromis.h
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/water.c
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/coral_low.h
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/coral.c
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/util.c
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/scuttle.c
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/coral2_low.h
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/atlantis-internal.h
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/coral2.h
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/bubble.c
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/atlantis.c
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/bfish.h
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/chromis.c
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/fish.c
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/fish.h
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/coral.h
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/whale.c
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/crab.h
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/shark.h
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/coral2.c
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/float.c
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/bfish.c
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/dolphin.h
Examining data/compiz-plugins-experimental-0.8.18/src/atlantis/swim.c
Examining data/compiz-plugins-experimental-0.8.18/src/swap/swap.c
Examining data/compiz-plugins-experimental-0.8.18/src/tile/tile.c
Examining data/compiz-plugins-experimental-0.8.18/src/screensaver/effect.h
Examining data/compiz-plugins-experimental-0.8.18/src/screensaver/flyingwindows.h
Examining data/compiz-plugins-experimental-0.8.18/src/screensaver/rotatingcube.h
Examining data/compiz-plugins-experimental-0.8.18/src/screensaver/vector.cpp
Examining data/compiz-plugins-experimental-0.8.18/src/screensaver/screensaver_internal.h
Examining data/compiz-plugins-experimental-0.8.18/src/screensaver/vector.h
Examining data/compiz-plugins-experimental-0.8.18/src/screensaver/matrix.cpp
Examining data/compiz-plugins-experimental-0.8.18/src/screensaver/rotatingcube.cpp
Examining data/compiz-plugins-experimental-0.8.18/src/screensaver/effect.cpp
Examining data/compiz-plugins-experimental-0.8.18/src/screensaver/wrapper.cpp
Examining data/compiz-plugins-experimental-0.8.18/src/screensaver/screensaver.cpp
Examining data/compiz-plugins-experimental-0.8.18/src/screensaver/matrix.h
Examining data/compiz-plugins-experimental-0.8.18/src/screensaver/wrapper.h
Examining data/compiz-plugins-experimental-0.8.18/src/screensaver/flyingwindows.cpp
Examining data/compiz-plugins-experimental-0.8.18/src/smartput/smartput.c
Examining data/compiz-plugins-experimental-0.8.18/src/toggle-decoration/toggledeco.c
Examining data/compiz-plugins-experimental-0.8.18/src/stackswitch/stackswitch.c
Examining data/compiz-plugins-experimental-0.8.18/src/cubemodel/fileParser.c
Examining data/compiz-plugins-experimental-0.8.18/src/cubemodel/cubemodel-internal.h
Examining data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c
Examining data/compiz-plugins-experimental-0.8.18/src/cubemodel/cubemodel.c
Examining data/compiz-plugins-experimental-0.8.18/src/mswitch/mswitch.c
Examining data/compiz-plugins-experimental-0.8.18/src/freewins/events.c
Examining data/compiz-plugins-experimental-0.8.18/src/freewins/util.c
Examining data/compiz-plugins-experimental-0.8.18/src/freewins/freewins.h
Examining data/compiz-plugins-experimental-0.8.18/src/freewins/paint.c
Examining data/compiz-plugins-experimental-0.8.18/src/freewins/freewins.c
Examining data/compiz-plugins-experimental-0.8.18/src/freewins/action.c
Examining data/compiz-plugins-experimental-0.8.18/src/freewins/input.c
Examining data/compiz-plugins-experimental-0.8.18/src/fireflies/fireflies.c
Examining data/compiz-plugins-experimental-0.8.18/src/throw/throw.c
Examining data/compiz-plugins-experimental-0.8.18/src/anaglyph/anaglyph.c
Examining data/compiz-plugins-experimental-0.8.18/src/earth/earth.h
Examining data/compiz-plugins-experimental-0.8.18/src/earth/earth.c
Examining data/compiz-plugins-experimental-0.8.18/src/wizard/wizard.c
Examining data/compiz-plugins-experimental-0.8.18/src/wizard/wizard_tex.h
Examining data/compiz-plugins-experimental-0.8.18/src/stars/star.c
Examining data/compiz-plugins-experimental-0.8.18/src/snowglobe/snowglobe-internal.h
Examining data/compiz-plugins-experimental-0.8.18/src/snowglobe/snowflake.c
Examining data/compiz-plugins-experimental-0.8.18/src/snowglobe/water.c
Examining data/compiz-plugins-experimental-0.8.18/src/snowglobe/movement.c
Examining data/compiz-plugins-experimental-0.8.18/src/snowglobe/snowglobe.c
Examining data/compiz-plugins-experimental-0.8.18/src/snowglobe/snowman.c
Examining data/compiz-plugins-experimental-0.8.18/src/simple-animations/expand-piecewise.c
Examining data/compiz-plugins-experimental-0.8.18/src/simple-animations/animationsim.h
Examining data/compiz-plugins-experimental-0.8.18/src/simple-animations/bounce.c
Examining data/compiz-plugins-experimental-0.8.18/src/simple-animations/explode3d.c
Examining data/compiz-plugins-experimental-0.8.18/src/simple-animations/animationsim.c
Examining data/compiz-plugins-experimental-0.8.18/src/simple-animations/rotatein.c
Examining data/compiz-plugins-experimental-0.8.18/src/simple-animations/expand.c
Examining data/compiz-plugins-experimental-0.8.18/src/simple-animations/sheet.c
Examining data/compiz-plugins-experimental-0.8.18/src/simple-animations/flyin.c
Examining data/compiz-plugins-experimental-0.8.18/src/dialog/dialog.c
Examining data/compiz-plugins-experimental-0.8.18/src/ghost/ghost.c
Examining data/compiz-plugins-experimental-0.8.18/src/photowheel/photo.c
Examining data/compiz-plugins-experimental-0.8.18/src/snow/snow.c
Examining data/compiz-plugins-experimental-0.8.18/src/putplus/putplus.c
Examining data/compiz-plugins-experimental-0.8.18/src/extra-animations/helix.c
Examining data/compiz-plugins-experimental-0.8.18/src/extra-animations/animation_tex.h
Examining data/compiz-plugins-experimental-0.8.18/src/extra-animations/bonanza.c
Examining data/compiz-plugins-experimental-0.8.18/src/extra-animations/animationplus.c
Examining data/compiz-plugins-experimental-0.8.18/src/extra-animations/compiz-animationplus.h
Examining data/compiz-plugins-experimental-0.8.18/src/extra-animations/blinds.c
Examining data/compiz-plugins-experimental-0.8.18/src/extra-animations/shatter.c
Examining data/compiz-plugins-experimental-0.8.18/src/extra-animations/animationplus.h
Examining data/compiz-plugins-experimental-0.8.18/src/elements/elements.c
Examining data/compiz-plugins-experimental-0.8.18/src/static/static.c

FINAL RESULTS:

data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:89:5:  [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 (filePath, file);
data/compiz-plugins-experimental-0.8.18/src/atlantis/atlantis-internal.h:101:42:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define LRAND()                 ((long) (random() & 0x7fffffff))
data/compiz-plugins-experimental-0.8.18/src/cubemodel/cubemodel-internal.h:10:28:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define LRAND()   ((long) (random () & 0x7fffffff))
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:198:39:  [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.
		assert (asprintf (&texfile, "%s%s", getenv ("HOME"),
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:200:18:  [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.
									strlen (getenv ("HOME")) +
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:419:41:  [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.
	assert (asprintf (&imagefile, "%s/%s", getenv ("HOME"),
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:421:17:  [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.
								strlen (getenv ("HOME")) +
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:462:38:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	assert (asprintf (&pngfile, "%s%s", getenv ("HOME"), "/.compiz/images/clouds.png") ==
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:463: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.
						strlen (getenv ("HOME")) + strlen ("/.compiz/images/clouds.png"));
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:812:7:  [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.
	if (!getenv("HOME"))
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:819:39:  [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.
	assert (asprintf (&imagedir, "%s%s", getenv("HOME"), "/.compiz/images") ==
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:820: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.
						strlen (getenv ("HOME")) + strlen ("/.compiz/images"));
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:838:43:  [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.
			assert (asprintf (&compizhome, "%s%s", getenv("HOME"), "/.compiz") ==
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:839:17:  [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.
								strlen (getenv ("HOME")) + strlen ("/.compiz"));
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:855:54:  [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.
	assert (asprintf (&es->cloudsfile.filename, "%s%s", getenv("HOME"), "/.compiz/images/clouds.jpg") ==
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:856:18:  [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.
									strlen (getenv("HOME")) + strlen ("/.compiz/images/clouds.jpg"));
data/compiz-plugins-experimental-0.8.18/src/extra-animations/bonanza.c:129:28:  [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-experimental-0.8.18/src/extra-animations/bonanza.c:136:28:  [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-experimental-0.8.18/src/extra-animations/bonanza.c:160:28:  [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-experimental-0.8.18/src/extra-animations/bonanza.c:162:28:  [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-experimental-0.8.18/src/extra-animations/bonanza.c:169:32:  [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-experimental-0.8.18/src/extra-animations/bonanza.c:171:32:  [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-experimental-0.8.18/src/extra-animations/bonanza.c:173:32:  [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-experimental-0.8.18/src/extra-animations/bonanza.c:178:32:  [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-experimental-0.8.18/src/snowglobe/snowglobe-internal.h:4:42:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define LRAND()                 ((long) (random() & 0x7fffffff))
data/compiz-plugins-experimental-0.8.18/src/tile/tile.c:557: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 (0));
data/compiz-plugins-experimental-0.8.18/src/wizard/wizard.c:48:27:  [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.
    return avg + (float)((random () & 0xff)/127.5-1.)*range;
data/compiz-plugins-experimental-0.8.18/src/wizard/wizard.c:742:26:  [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.
	    if (e->gp > (float)(random () & 0xffff) / 65535.)
data/compiz-plugins-experimental-0.8.18/src/wizard/wizard.c:1050:31:  [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.
		&& ei->set_active && !((int)random ()&0xff))
data/compiz-plugins-experimental-0.8.18/src/wizard/wizard.c:1054:48:  [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.
		(ei->trigger == TRIGGER_RANDOMSHOT && !((int)random()&0xff)) ||
data/compiz-plugins-experimental-0.8.18/src/cubemodel/fileParser.c:159: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 (&strline[size], &buf[*cp], sizeof (char) * remainder);
data/compiz-plugins-experimental-0.8.18/src/cubemodel/fileParser.c:175: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 (&strline[size], buf, sizeof (char) * i);
data/compiz-plugins-experimental-0.8.18/src/cubemodel/fileParser.c:192: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 (&strline[size], buf, sizeof (char) * readChars);
data/compiz-plugins-experimental-0.8.18/src/cubemodel/fileParser.c:313: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 (&strline[size], &buf[*cp], sizeof (char) * remainder);
data/compiz-plugins-experimental-0.8.18/src/cubemodel/fileParser.c:338:8:  [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 (&strline[size], buf, sizeof (char) * i);
data/compiz-plugins-experimental-0.8.18/src/cubemodel/fileParser.c:357: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 (&strline[size], buf, sizeof (char) * i);
data/compiz-plugins-experimental-0.8.18/src/cubemodel/fileParser.c:374: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 (&strline[size], buf, sizeof (char) * readChars);
data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:226:13:  [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).
    mtlfp = fopen (mtlFilename, "r");
data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:244: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 *tmpPtr[3] = { NULL, NULL, NULL }; /* used to check numerical
data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:301: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).
		tmpIllum = atoi (tmpPtr[i]);
data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:517:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen (filename, "r");
data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:638:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(filename, "r");
data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:839:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			vertexIndex = atoi (tmpPtr);
data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:868:23:  [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).
			    textureIndex = atoi (tmpPtr);
data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:898:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				normalIndex = atoi (tmpPtr);
data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:946:8:  [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 (modelData->reorderedVertex[fc]
data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:960:8:  [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 (modelData->reorderedTexture[fc]
data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:1004:8:  [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 (modelData->reorderedNormal[fc]
data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:1243:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat (modelData->filename, ".obj");
data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:1291:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    strcat (modelData->filename, ".obj");
data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:1304:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen (modelData->filename, "r");
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:140:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen (filename, "r");
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:396:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		out->stream = fopen (out->filename, "wb");
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:456: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 (&p_pngdata[h * width * 4], &p_jpgdata[(height - h) * width * 4], width * 4);
data/compiz-plugins-experimental-0.8.18/src/extra-animations/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-experimental-0.8.18/src/extra-animations/animationplus.c:112: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 *)AnimEffectBlinds, (&(AnimEffectInfo)
data/compiz-plugins-experimental-0.8.18/src/extra-animations/animationplus.c:127: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 *)AnimEffectBonanza, (&(AnimEffectInfo)
data/compiz-plugins-experimental-0.8.18/src/extra-animations/animationplus.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 ((AnimEffectInfo *)AnimEffectHelix, (&(AnimEffectInfo)
data/compiz-plugins-experimental-0.8.18/src/extra-animations/animationplus.c:153: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 *)AnimEffectShatter, (&(AnimEffectInfo)
data/compiz-plugins-experimental-0.8.18/src/extra-animations/animationplus.c:176: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-experimental-0.8.18/src/freewins/events.c:521: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 (&EnterNotifyEvent.xcrossing, &xev->xcrossing,
data/compiz-plugins-experimental-0.8.18/src/freewins/events.c:538: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 (&LeaveNotifyEvent.xcrossing, &xev->xcrossing,
data/compiz-plugins-experimental-0.8.18/src/simple-animations/animationsim.c:108: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 *)AnimEffectFlyIn, (&(AnimEffectInfo)
data/compiz-plugins-experimental-0.8.18/src/simple-animations/animationsim.c:119: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 *)AnimEffectBounce, (&(AnimEffectInfo)
data/compiz-plugins-experimental-0.8.18/src/simple-animations/animationsim.c:129: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 *)AnimEffectRotateIn, (&(AnimEffectInfo)
data/compiz-plugins-experimental-0.8.18/src/simple-animations/animationsim.c:142:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy ((AnimEffectInfo *)AnimEffectSheets, (&(AnimEffectInfo)
data/compiz-plugins-experimental-0.8.18/src/simple-animations/animationsim.c:151: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 *)AnimEffectExpand, (&(AnimEffectInfo)
data/compiz-plugins-experimental-0.8.18/src/simple-animations/animationsim.c:161: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 *)AnimEffectExpandPW, (&(AnimEffectInfo)
data/compiz-plugins-experimental-0.8.18/src/simple-animations/animationsim.c:181: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-experimental-0.8.18/src/static/static.c:169:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&sw->fragment, fragment, sizeof (FragmentAttrib));
data/compiz-plugins-experimental-0.8.18/src/wizard/wizard.c:534: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-experimental-0.8.18/src/wizard/wizard.c:550: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-experimental-0.8.18/src/wizard/wizard.c:551: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-experimental-0.8.18/src/wizard/wizard.c:552: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-experimental-0.8.18/src/wizard/wizard.c:562: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-experimental-0.8.18/src/wizard/wizard.c:563: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-experimental-0.8.18/src/wizard/wizard.c:564: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-experimental-0.8.18/src/wizard/wizard_tex.h:25: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 particleTex[65536] = {
data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:73: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).
    for (i = strlen (filePath) - 1; i >= 0; i--)
data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:85:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			(strlen (filePath) + strlen (file) + 1));
data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:85:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			(strlen (filePath) + strlen (file) + 1));
data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:116:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    j = offset + c + numZeros + strlen (post) + 4 + 1;
data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:1163:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strlen (file))
data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:1225:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    lenFilename = strlen (file);
data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:1241:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (modelData->filename, file, lenFilename);
data/compiz-plugins-experimental-0.8.18/src/cubemodel/loadModel.c:1285:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy (modelData->filename, file, lenBaseFilename);
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:163:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		src[i] = fgetc (fp);
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:187:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
									strlen ("earth/day.png"));
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:191:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
									strlen ("earth/night.png"));
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:195:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
									strlen ("earth/skydome.png"));
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:200:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
									strlen (getenv ("HOME")) +
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:201:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
									strlen ("/.compiz/images/clouds.png"));
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:208:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
									strlen ("earth/clouds.png"));
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:421:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
								strlen (getenv ("HOME")) +
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:422:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
								strlen ("/.compiz/images/clouds.jpg"));
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:426:56:  [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).
		assert (asprintf (&imagefile, "%s", "clouds.jpg") == strlen ("clouds.jpg"));
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:463:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						strlen (getenv ("HOME")) + strlen ("/.compiz/images/clouds.png"));
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:463:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						strlen (getenv ("HOME")) + strlen ("/.compiz/images/clouds.png"));
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:820:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						strlen (getenv ("HOME")) + strlen ("/.compiz/images"));
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:820:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						strlen (getenv ("HOME")) + strlen ("/.compiz/images"));
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:839:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
								strlen (getenv ("HOME")) + strlen ("/.compiz"));
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:839:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
								strlen (getenv ("HOME")) + strlen ("/.compiz"));
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:856:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
									strlen (getenv("HOME")) + strlen ("/.compiz/images/clouds.jpg"));
data/compiz-plugins-experimental-0.8.18/src/earth/earth.c:856:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
									strlen (getenv("HOME")) + strlen ("/.compiz/images/clouds.jpg"));

ANALYSIS SUMMARY:

Hits = 104
Lines analyzed = 76019 in approximately 2.17 seconds (35061 lines/second)
Physical Source Lines of Code (SLOC) = 64893
Hits@level = [0]  10 [1]  26 [2]  48 [3]  29 [4]   1 [5]   0
Hits@level+ = [0+] 114 [1+] 104 [2+]  78 [3+]  30 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 1.75674 [1+] 1.60264 [2+] 1.20198 [3+] 0.462299 [4+] 0.01541 [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.