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/amoeba-data-1.1/src/test-demolib.cpp
Examining data/amoeba-data-1.1/src/main/shadowhandler.h
Examining data/amoeba-data-1.1/src/main/twisthandler.h
Examining data/amoeba-data-1.1/src/main/fovhandler.cpp
Examining data/amoeba-data-1.1/src/main/uquadshandler.cpp
Examining data/amoeba-data-1.1/src/main/foghandler.h
Examining data/amoeba-data-1.1/src/main/fonthandler.cpp
Examining data/amoeba-data-1.1/src/main/demohandler.cpp
Examining data/amoeba-data-1.1/src/main/camerahandler.h
Examining data/amoeba-data-1.1/src/main/curve.h
Examining data/amoeba-data-1.1/src/main/particlepathhandler.cpp
Examining data/amoeba-data-1.1/src/main/factory.h
Examining data/amoeba-data-1.1/src/main/heightmaptunnelhandler.cpp
Examining data/amoeba-data-1.1/src/main/shadowrecthandler.h
Examining data/amoeba-data-1.1/src/main/mainloop.h
Examining data/amoeba-data-1.1/src/main/backgroundhandler.h
Examining data/amoeba-data-1.1/src/main/uquadshandler.h
Examining data/amoeba-data-1.1/src/main/objhandler.h
Examining data/amoeba-data-1.1/src/main/imagehandler.h
Examining data/amoeba-data-1.1/src/main/mainloop.cpp
Examining data/amoeba-data-1.1/src/main/interferenceheightmaphandler.cpp
Examining data/amoeba-data-1.1/src/main/linearcurve.h
Examining data/amoeba-data-1.1/src/main/backgroundhandler.cpp
Examining data/amoeba-data-1.1/src/main/inverthandler.cpp
Examining data/amoeba-data-1.1/src/main/twisthandler.cpp
Examining data/amoeba-data-1.1/src/main/imagehandler.cpp
Examining data/amoeba-data-1.1/src/main/event.h
Examining data/amoeba-data-1.1/src/main/object.cpp
Examining data/amoeba-data-1.1/src/main/fonthandler.h
Examining data/amoeba-data-1.1/src/main/timerhandler.h
Examining data/amoeba-data-1.1/src/main/linecurve.cpp
Examining data/amoeba-data-1.1/src/main/event.cpp
Examining data/amoeba-data-1.1/src/main/shadowrecthandler.cpp
Examining data/amoeba-data-1.1/src/main/piprecalc.h
Examining data/amoeba-data-1.1/src/main/win32-config/resource.h
Examining data/amoeba-data-1.1/src/main/win32-config/win32-config.h
Examining data/amoeba-data-1.1/src/main/win32-config/win32-config.cpp
Examining data/amoeba-data-1.1/src/main/linecurve.h
Examining data/amoeba-data-1.1/src/main/autosplinecurve.cpp
Examining data/amoeba-data-1.1/src/main/factory.cpp
Examining data/amoeba-data-1.1/src/main/piprecalc.cpp
Examining data/amoeba-data-1.1/src/main/inverthandler.h
Examining data/amoeba-data-1.1/src/main/objhandler.cpp
Examining data/amoeba-data-1.1/src/main/linearcurve.cpp
Examining data/amoeba-data-1.1/src/main/curve.cpp
Examining data/amoeba-data-1.1/src/main/object.h
Examining data/amoeba-data-1.1/src/main/fpshandler.h
Examining data/amoeba-data-1.1/src/main/lighthandler.h
Examining data/amoeba-data-1.1/src/main/demohandler.h
Examining data/amoeba-data-1.1/src/main/shadowhandler.cpp
Examining data/amoeba-data-1.1/src/main/timerhandler.cpp
Examining data/amoeba-data-1.1/src/main/particlepathhandler.h
Examining data/amoeba-data-1.1/src/main/heightmaptunnelhandler.h
Examining data/amoeba-data-1.1/src/main/overlayanimhandler.h
Examining data/amoeba-data-1.1/src/main/interferenceheightmaphandler.h
Examining data/amoeba-data-1.1/src/main/overlayanimhandler.cpp
Examining data/amoeba-data-1.1/src/main/fpshandler.cpp
Examining data/amoeba-data-1.1/src/main/lighthandler.cpp
Examining data/amoeba-data-1.1/src/main/fovhandler.h
Examining data/amoeba-data-1.1/src/main/autosplinecurve.h
Examining data/amoeba-data-1.1/src/main/camerahandler.cpp
Examining data/amoeba-data-1.1/src/main/foghandler.cpp
Examining data/amoeba-data-1.1/src/main/linux-config/linux-config.h
Examining data/amoeba-data-1.1/src/main/linux-config/linux-config.cpp
Examining data/amoeba-data-1.1/src/math/vector.cpp
Examining data/amoeba-data-1.1/src/math/vector.h
Examining data/amoeba-data-1.1/src/math/matrix.h
Examining data/amoeba-data-1.1/src/math/array.h
Examining data/amoeba-data-1.1/src/util/hashtable.cpp
Examining data/amoeba-data-1.1/src/util/hashtable.h
Examining data/amoeba-data-1.1/src/audio/vorbis.cpp
Examining data/amoeba-data-1.1/src/audio/win32_dsound.h
Examining data/amoeba-data-1.1/src/audio/musichandler.h
Examining data/amoeba-data-1.1/src/audio/linux_oss.cpp
Examining data/amoeba-data-1.1/src/audio/win32_dsound.cpp
Examining data/amoeba-data-1.1/src/audio/audio.h
Examining data/amoeba-data-1.1/src/audio/musichandler.cpp
Examining data/amoeba-data-1.1/src/audio/linux_oss.h
Examining data/amoeba-data-1.1/src/audio/vorbis.h
Examining data/amoeba-data-1.1/src/image/png_image.cpp
Examining data/amoeba-data-1.1/src/image/load_image.cpp
Examining data/amoeba-data-1.1/src/image/imagecombiner.cpp
Examining data/amoeba-data-1.1/src/image/jpeg_image.h
Examining data/amoeba-data-1.1/src/image/jpeg_image.cpp
Examining data/amoeba-data-1.1/src/image/image.cpp
Examining data/amoeba-data-1.1/src/image/png_image.h
Examining data/amoeba-data-1.1/src/image/imagecombiner.h
Examining data/amoeba-data-1.1/src/image/image.h
Examining data/amoeba-data-1.1/src/exception.cpp
Examining data/amoeba-data-1.1/src/packer/memfile.cpp
Examining data/amoeba-data-1.1/src/packer/filereader.h
Examining data/amoeba-data-1.1/src/packer/zfile.h
Examining data/amoeba-data-1.1/src/packer/zfile.cpp
Examining data/amoeba-data-1.1/src/packer/file.cpp
Examining data/amoeba-data-1.1/src/packer/file.h
Examining data/amoeba-data-1.1/src/packer/memfile.h
Examining data/amoeba-data-1.1/src/packer/pakfile.h
Examining data/amoeba-data-1.1/src/packer/pakfile.cpp
Examining data/amoeba-data-1.1/src/packer/filereader.cpp
Examining data/amoeba-data-1.1/src/opengl/glwindow.cpp
Examining data/amoeba-data-1.1/src/opengl/fontttf.cpp
Examining data/amoeba-data-1.1/src/opengl/fontttf.h
Examining data/amoeba-data-1.1/src/opengl/fpscount.cpp
Examining data/amoeba-data-1.1/src/opengl/fpscount.h
Examining data/amoeba-data-1.1/src/opengl/extensions.h
Examining data/amoeba-data-1.1/src/opengl/texture.h
Examining data/amoeba-data-1.1/src/opengl/texture.cpp
Examining data/amoeba-data-1.1/src/opengl/glwindow.h
Examining data/amoeba-data-1.1/src/opengl/extensions.cpp
Examining data/amoeba-data-1.1/src/exception.h
Examining data/amoeba-data-1.1/src/demolib_prefs.h

FINAL RESULTS:

data/amoeba-data-1.1/src/exception.cpp:24:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(this->str, "%s: %s", owner, msg);
data/amoeba-data-1.1/src/main/event.cpp:181: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(buf, timestr);
data/amoeba-data-1.1/src/main/linux-config/linux-config.cpp:446: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("/dev/dsp", R_OK | W_OK) == 0 ||
data/amoeba-data-1.1/src/main/linux-config/linux-config.cpp:447: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("/dev/sound/dsp", R_OK | W_OK) == 0) {
data/amoeba-data-1.1/src/main/mainloop.cpp:58:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(buf, "Error at line %d of demo script: %s", XML_GetCurrentLineNumber(ml->p), e->get_error());
data/amoeba-data-1.1/src/main/mainloop.cpp:95:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "Error at line %d of demo script: Parameter `%s=' missing", XML_GetCurrentLineNumber(p), nve->get_error());
data/amoeba-data-1.1/src/main/mainloop.cpp:101:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "Parse error at line %d of demo script: %s",
data/amoeba-data-1.1/src/main/mainloop.cpp:307: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(title, attr[i + 1]);
data/amoeba-data-1.1/src/main/overlayanimhandler.cpp:70:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(filename, "%s%02d%s", imgbase, i, imgsuffix);
data/amoeba-data-1.1/src/opengl/texture.cpp:51:2:  [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(textures[max_tex_num].texname, filename);
data/amoeba-data-1.1/src/packer/file.cpp:29:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(fname, "data/%s", filename);
data/amoeba-data-1.1/src/packer/file.cpp:57:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(fname, "%s not found", filename);	
data/amoeba-data-1.1/src/util/hashtable.cpp:228:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(buf, "Curve `%s' missing!", ptr->key);
data/amoeba-data-1.1/src/audio/win32_dsound.cpp:31:21:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
	library = (HMODULE)LoadLibrary("dsound.dll");
data/amoeba-data-1.1/src/main/particlepathhandler.cpp:93:3:  [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/amoeba-data-1.1/src/main/win32-config/win32-config.cpp:108:31:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
			HMODULE library = (HMODULE)LoadLibrary("dsound.dll");
data/amoeba-data-1.1/src/test-demolib.cpp:73:2:  [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/amoeba-data-1.1/src/audio/linux_oss.cpp:25:17:  [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).
	this->oss_fd = open("/dev/sound/dsp", O_RDWR);
data/amoeba-data-1.1/src/audio/linux_oss.cpp:27:25:  [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).
	        this->oss_fd = open("/dev/dsp", O_RDWR);
data/amoeba-data-1.1/src/audio/linux_oss.cpp:79: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(&this->eof_time, &now, sizeof(struct timeval));
data/amoeba-data-1.1/src/audio/linux_oss.h:22: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 outbuf[65536];
data/amoeba-data-1.1/src/audio/win32_dsound.cpp:139:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char outbuf[44100 * 4];
data/amoeba-data-1.1/src/audio/win32_dsound.cpp:159: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(write_buf1, outbuf, tfill);
data/amoeba-data-1.1/src/audio/win32_dsound.cpp:161: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(write_buf1, outbuf, write_len1);
data/amoeba-data-1.1/src/audio/win32_dsound.cpp:162: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(write_buf2, outbuf + write_len1, tfill - write_len1);
data/amoeba-data-1.1/src/image/jpeg_image.cpp:35: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 buf[JMSG_LENGTH_MAX];
data/amoeba-data-1.1/src/image/jpeg_image.cpp:117: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(this->image_buf + (cinfo.output_scanline-1) * w, buffer[0], w);
data/amoeba-data-1.1/src/image/png_image.cpp:19: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(data, curr_png_ptr, length);
data/amoeba-data-1.1/src/main/backgroundhandler.cpp:138: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(tmpbuf + y * w * psize,
data/amoeba-data-1.1/src/main/event.cpp:178:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[256];
data/amoeba-data-1.1/src/main/linux-config/linux-config.cpp:274: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[32];
data/amoeba-data-1.1/src/main/linux-config/linux-config.cpp:275:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf, "%ux%u", modes[i]->hdisplay, modes[i]->vdisplay);
data/amoeba-data-1.1/src/main/linux-config/linux-config.cpp:280:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf, "%u", modes[i]->hdisplay);
data/amoeba-data-1.1/src/main/linux-config/linux-config.cpp:283:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf, "%u", modes[i]->vdisplay);
data/amoeba-data-1.1/src/main/linux-config/linux-config.cpp:347: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[256];
data/amoeba-data-1.1/src/main/linux-config/linux-config.cpp:367:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf, "%dbpp, %d-bits Z-buffer", bpp, depth);
data/amoeba-data-1.1/src/main/linux-config/linux-config.cpp:406:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf, "%lu", xvi[i].visualid);
data/amoeba-data-1.1/src/main/mainloop.cpp:57:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[256];
data/amoeba-data-1.1/src/main/mainloop.cpp:94:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[256];
data/amoeba-data-1.1/src/main/mainloop.cpp:100:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[512];
data/amoeba-data-1.1/src/main/mainloop.cpp:153: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 title[256] = "[No title]";
data/amoeba-data-1.1/src/main/mainloop.cpp:305:31:  [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.
		attr_hash->insert(attr[i], (char *)attr[i + 1]);
data/amoeba-data-1.1/src/main/mainloop.cpp:350:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buf[256];
data/amoeba-data-1.1/src/main/mainloop.cpp:362:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(buf, "%u", c->get_zbuffer());
data/amoeba-data-1.1/src/main/mainloop.cpp:365:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(buf, "%u", c->get_mode());
data/amoeba-data-1.1/src/main/objhandler.cpp:39: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(data, obj->get_data(), length);
data/amoeba-data-1.1/src/main/objhandler.cpp:158:10:  [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).
		v[i] = atoi(data);
data/amoeba-data-1.1/src/main/objhandler.cpp:179:11:  [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).
			t[i] = atoi(data + 1);
data/amoeba-data-1.1/src/main/objhandler.cpp:190:11:  [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).
			n[i] = atoi(data + 1);
data/amoeba-data-1.1/src/main/overlayanimhandler.cpp:68: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];
data/amoeba-data-1.1/src/main/overlayanimhandler.cpp:311: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(tmpbuf + (16 * y * bs), ptr + ((xsize * y + pos) * bs), 16 * bs);
data/amoeba-data-1.1/src/main/timerhandler.cpp:29: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 buf[10];
data/amoeba-data-1.1/src/main/timerhandler.cpp:30:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "%6.2f", this->get_val("value", progress));
data/amoeba-data-1.1/src/main/win32-config/win32-config.cpp:60: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[256];
data/amoeba-data-1.1/src/main/win32-config/win32-config.cpp:66:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(buf, "%ldx%ldx%ldbpp",
data/amoeba-data-1.1/src/main/win32-config/win32-config.cpp:71:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(buf, "%ldx%ldx%ldbpp@%ldhz",
data/amoeba-data-1.1/src/math/array.h:38: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(this->array, other.get_array(), this->room * sizeof(T));
data/amoeba-data-1.1/src/opengl/fontttf.cpp:190: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(texmap + (PIXMAP_BASE - slot->bitmap_top + y) * width + x + slot->bitmap_left,
data/amoeba-data-1.1/src/opengl/fpscount.cpp:25: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(this->digits_bm, digits->get_pixel_data(), 128 * 16 * 4);
data/amoeba-data-1.1/src/opengl/fpscount.cpp:98: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 fpsstring[10];
data/amoeba-data-1.1/src/opengl/fpscount.cpp:104:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(fpsstring, "%6.2ffps", fps);
data/amoeba-data-1.1/src/opengl/fpscount.cpp:128: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(this->texbuf + y*64*4 + i*6*4, this->digits_bm + y*128*4 + offs*4, 24);
data/amoeba-data-1.1/src/opengl/fpscount.h:18:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char digits_bm[128 * 16 * 4];
data/amoeba-data-1.1/src/opengl/fpscount.h:19:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char texbuf[64 * 16 * 4];
data/amoeba-data-1.1/src/opengl/glwindow.cpp:197: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.
		static char data[1] = {0};
data/amoeba-data-1.1/src/opengl/texture.cpp:26: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 texname[256];
data/amoeba-data-1.1/src/opengl/texture.cpp:135: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(pixdata, img->get_pixel_data(), w * h * img->get_bpp() / 8);
data/amoeba-data-1.1/src/packer/file.cpp:28: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 fname[256];
data/amoeba-data-1.1/src/packer/filereader.cpp:28: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((char *)(ptr) + i * size, this->curr_file->get_data() + this->position, size);
data/amoeba-data-1.1/src/packer/filereader.cpp:39: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(buf, this->curr_file->get_data() + this->position, count);
data/amoeba-data-1.1/src/packer/memfile.cpp:24:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen(filename, "rb");
data/amoeba-data-1.1/src/packer/pakfile.cpp:36: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 buf[12];
data/amoeba-data-1.1/src/packer/pakfile.cpp:41:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open("demo.dat", O_RDONLY);
data/amoeba-data-1.1/src/packer/pakfile.cpp:43:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open("demo.dat", O_RDONLY | O_BINARY);
data/amoeba-data-1.1/src/packer/pakfile.h:7: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[56];
data/amoeba-data-1.1/src/util/hashtable.cpp:174:9:  [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).
	return atoi(obj);
data/amoeba-data-1.1/src/util/hashtable.cpp:227:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buf[256];
data/amoeba-data-1.1/src/exception.cpp:22:29:  [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).
	this->str = (char *)malloc(strlen(owner) + strlen(msg) + 3);
data/amoeba-data-1.1/src/exception.cpp:22:45:  [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).
	this->str = (char *)malloc(strlen(owner) + strlen(msg) + 3);
data/amoeba-data-1.1/src/image/load_image.cpp:51:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strcasecmp(filename + strlen(filename) - 4, ".jpg") == 0 ||
data/amoeba-data-1.1/src/image/load_image.cpp:52:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strcasecmp(filename + strlen(filename) - 5, ".jpeg") == 0) {
data/amoeba-data-1.1/src/image/load_image.cpp:60:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strcasecmp(filename + strlen(filename) - 4, ".png") == 0) {
data/amoeba-data-1.1/src/main/event.cpp:184:12:  [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 (p == strlen(buf)) {
data/amoeba-data-1.1/src/main/piprecalc.cpp:17:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#define usleep(x) Sleep(x)
data/amoeba-data-1.1/src/main/piprecalc.cpp:84:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(1);
data/amoeba-data-1.1/src/main/piprecalc.cpp:150:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(1);
data/amoeba-data-1.1/src/opengl/extensions.cpp:36:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int extlen = strlen(ext);
data/amoeba-data-1.1/src/opengl/extensions.cpp:67: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).
	const char *suffix = function + strlen(function) - 3;   /* ugly? ;-) */
data/amoeba-data-1.1/src/opengl/extensions.cpp:71: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).
		tmp[strlen(tmp) - 3] = '\0';
data/amoeba-data-1.1/src/opengl/fontttf.cpp:180:31:  [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 (unsigned int i = 0; i < strlen(str); i++) {
data/amoeba-data-1.1/src/packer/file.cpp:36:6:  [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(filename) > 6 &&
data/amoeba-data-1.1/src/packer/filereader.cpp:34:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
size_t FileReader::read(void *buf, size_t count)
data/amoeba-data-1.1/src/packer/filereader.h:16:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	size_t read(void *buf, size_t count);
data/amoeba-data-1.1/src/packer/pakfile.cpp:48:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	err = read(fd, buf, 12);
data/amoeba-data-1.1/src/packer/pakfile.cpp:64:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fd, (char *)(&d), sizeof(d)) != sizeof(d)) {
data/amoeba-data-1.1/src/packer/pakfile.cpp:89:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			err = read(fd, ptr + i, num_bytes);

ANALYSIS SUMMARY:

Hits = 96
Lines analyzed = 10900 in approximately 0.28 seconds (38640 lines/second)
Physical Source Lines of Code (SLOC) = 8286
Hits@level = [0]  28 [1]  19 [2]  60 [3]   4 [4]  13 [5]   0
Hits@level+ = [0+] 124 [1+]  96 [2+]  77 [3+]  17 [4+]  13 [5+]   0
Hits/KSLOC@level+ = [0+] 14.965 [1+] 11.5858 [2+] 9.29278 [3+] 2.05165 [4+] 1.56891 [5+]   0
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.