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/s3d-0.2.2.1/apps/dot_mcp/dot_mcp.h
Examining data/s3d-0.2.2.1/apps/dot_mcp/main.c
Examining data/s3d-0.2.2.1/apps/dot_mcp/menu.c
Examining data/s3d-0.2.2.1/apps/kism3d/client.c
Examining data/s3d-0.2.2.1/apps/kism3d/gui.c
Examining data/s3d-0.2.2.1/apps/kism3d/kism3d.c
Examining data/s3d-0.2.2.1/apps/kism3d/kism3d.h
Examining data/s3d-0.2.2.1/apps/kism3d/list.h
Examining data/s3d-0.2.2.1/apps/kism3d/network.c
Examining data/s3d-0.2.2.1/apps/meshs3d/allocate.c
Examining data/s3d-0.2.2.1/apps/meshs3d/allocate.h
Examining data/s3d-0.2.2.1/apps/meshs3d/hash.c
Examining data/s3d-0.2.2.1/apps/meshs3d/hash.h
Examining data/s3d-0.2.2.1/apps/meshs3d/main.c
Examining data/s3d-0.2.2.1/apps/meshs3d/meshs3d.h
Examining data/s3d-0.2.2.1/apps/meshs3d/net.c
Examining data/s3d-0.2.2.1/apps/meshs3d/process.c
Examining data/s3d-0.2.2.1/apps/s3d_x11gate/s3d_x11gate.c
Examining data/s3d-0.2.2.1/apps/s3dfm/animation.c
Examining data/s3d-0.2.2.1/apps/s3dfm/box.c
Examining data/s3d-0.2.2.1/apps/s3dfm/dialog.c
Examining data/s3d-0.2.2.1/apps/s3dfm/event.c
Examining data/s3d-0.2.2.1/apps/s3dfm/fly.c
Examining data/s3d-0.2.2.1/apps/s3dfm/focus.c
Examining data/s3d-0.2.2.1/apps/s3dfm/fs.c
Examining data/s3d-0.2.2.1/apps/s3dfm/icon.c
Examining data/s3d-0.2.2.1/apps/s3dfm/main.c
Examining data/s3d-0.2.2.1/apps/s3dfm/node.c
Examining data/s3d-0.2.2.1/apps/s3dfm/parse.c
Examining data/s3d-0.2.2.1/apps/s3dfm/s3dfm.h
Examining data/s3d-0.2.2.1/apps/s3dfm/string.c
Examining data/s3d-0.2.2.1/apps/s3dosm/db.c
Examining data/s3d-0.2.2.1/apps/s3dosm/draw.c
Examining data/s3d-0.2.2.1/apps/s3dosm/gps.c
Examining data/s3d-0.2.2.1/apps/s3dosm/http_error_codes.c
Examining data/s3d-0.2.2.1/apps/s3dosm/http_error_codes.h
Examining data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c
Examining data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.h
Examining data/s3d-0.2.2.1/apps/s3dosm/io.c
Examining data/s3d-0.2.2.1/apps/s3dosm/kismet.c
Examining data/s3d-0.2.2.1/apps/s3dosm/main.c
Examining data/s3d-0.2.2.1/apps/s3dosm/nav.c
Examining data/s3d-0.2.2.1/apps/s3dosm/object.c
Examining data/s3d-0.2.2.1/apps/s3dosm/olsrs3d.h
Examining data/s3d-0.2.2.1/apps/s3dosm/osm.c
Examining data/s3d-0.2.2.1/apps/s3dosm/s3dosm.h
Examining data/s3d-0.2.2.1/apps/s3dosm/search.h
Examining data/s3d-0.2.2.1/apps/s3dosm/structs.h
Examining data/s3d-0.2.2.1/apps/s3dosm/tag.c
Examining data/s3d-0.2.2.1/apps/s3dosm/ui.c
Examining data/s3d-0.2.2.1/apps/s3dvt/main.c
Examining data/s3d-0.2.2.1/apps/s3dvt/s3dvt.h
Examining data/s3d-0.2.2.1/apps/s3dvt/terminal.c
Examining data/s3d-0.2.2.1/cmake/modules/gpsd_fix.c
Examining data/s3d-0.2.2.1/example/example.h
Examining data/s3d-0.2.2.1/example/hudtest.c
Examining data/s3d-0.2.2.1/example/katze.c
Examining data/s3d-0.2.2.1/example/nichtsnutz.c
Examining data/s3d-0.2.2.1/example/radius_test.c
Examining data/s3d-0.2.2.1/example/snowman.c
Examining data/s3d-0.2.2.1/example/texturetest.c
Examining data/s3d-0.2.2.1/example/filebrowser.c
Examining data/s3d-0.2.2.1/example/linetest.c
Examining data/s3d-0.2.2.1/example/modelloader.c
Examining data/s3d-0.2.2.1/example/ptrtest.c
Examining data/s3d-0.2.2.1/example/s3dclock.c
Examining data/s3d-0.2.2.1/example/strtest.c
Examining data/s3d-0.2.2.1/example/widgets.c
Examining data/s3d-0.2.2.1/example/wiresphere.c
Examining data/s3d-0.2.2.1/libs3d/callback.c
Examining data/s3d-0.2.2.1/libs3d/config.h
Examining data/s3d-0.2.2.1/libs3d/endian.c
Examining data/s3d-0.2.2.1/libs3d/error.c
Examining data/s3d-0.2.2.1/libs3d/event.c
Examining data/s3d-0.2.2.1/libs3d/fontselect.c
Examining data/s3d-0.2.2.1/libs3d/freetype.c
Examining data/s3d-0.2.2.1/libs3d/hash.c
Examining data/s3d-0.2.2.1/libs3d/hash.h
Examining data/s3d-0.2.2.1/libs3d/io.c
Examining data/s3d-0.2.2.1/libs3d/modelread.c
Examining data/s3d-0.2.2.1/libs3d/network.c
Examining data/s3d-0.2.2.1/libs3d/object_queue.c
Examining data/s3d-0.2.2.1/libs3d/proto_in.c
Examining data/s3d-0.2.2.1/libs3d/proto_out.c
Examining data/s3d-0.2.2.1/libs3d/s3d.h
Examining data/s3d-0.2.2.1/libs3d/s3d_keysym.h
Examining data/s3d-0.2.2.1/libs3d/s3dlib.h
Examining data/s3d-0.2.2.1/libs3d/sei_construct.c
Examining data/s3d-0.2.2.1/libs3d/sei_interface.h
Examining data/s3d-0.2.2.1/libs3d/sei_misc.c
Examining data/s3d-0.2.2.1/libs3d/sei_monotone.c
Examining data/s3d-0.2.2.1/libs3d/sei_tri.c
Examining data/s3d-0.2.2.1/libs3d/sei_triangulate.h
Examining data/s3d-0.2.2.1/libs3d/shm.c
Examining data/s3d-0.2.2.1/libs3d/shm_ringbuf.c
Examining data/s3d-0.2.2.1/libs3d/tcp.c
Examining data/s3d-0.2.2.1/libs3d/texture.c
Examining data/s3d-0.2.2.1/libs3d/vector.c
Examining data/s3d-0.2.2.1/libs3dw/animate.c
Examining data/s3d-0.2.2.1/libs3dw/arrange.c
Examining data/s3d-0.2.2.1/libs3dw/button.c
Examining data/s3d-0.2.2.1/libs3dw/event.c
Examining data/s3d-0.2.2.1/libs3dw/input.c
Examining data/s3d-0.2.2.1/libs3dw/label.c
Examining data/s3d-0.2.2.1/libs3dw/root.c
Examining data/s3d-0.2.2.1/libs3dw/s3dw.h
Examining data/s3d-0.2.2.1/libs3dw/s3dw_int.h
Examining data/s3d-0.2.2.1/libs3dw/scrollbar.c
Examining data/s3d-0.2.2.1/libs3dw/style.c
Examining data/s3d-0.2.2.1/libs3dw/surface.c
Examining data/s3d-0.2.2.1/libs3dw/textbox.c
Examining data/s3d-0.2.2.1/libs3dw/widget.c
Examining data/s3d-0.2.2.1/server/allocate.c
Examining data/s3d-0.2.2.1/server/allocate.h
Examining data/s3d-0.2.2.1/server/config.h
Examining data/s3d-0.2.2.1/server/cull.c
Examining data/s3d-0.2.2.1/server/endian.c
Examining data/s3d-0.2.2.1/server/error.c
Examining data/s3d-0.2.2.1/server/event.c
Examining data/s3d-0.2.2.1/server/global.h
Examining data/s3d-0.2.2.1/server/graphics.c
Examining data/s3d-0.2.2.1/server/graphics_sdl.c
Examining data/s3d-0.2.2.1/server/matrix.c
Examining data/s3d-0.2.2.1/server/mcp.c
Examining data/s3d-0.2.2.1/server/navigation.c
Examining data/s3d-0.2.2.1/server/network.c
Examining data/s3d-0.2.2.1/server/object.c
Examining data/s3d-0.2.2.1/server/process.c
Examining data/s3d-0.2.2.1/server/proto.c
Examining data/s3d-0.2.2.1/server/proto.h
Examining data/s3d-0.2.2.1/server/shm.c
Examining data/s3d-0.2.2.1/server/shm_ringbuf.c
Examining data/s3d-0.2.2.1/server/tcp.c
Examining data/s3d-0.2.2.1/server/user.c
Examining data/s3d-0.2.2.1/server/user_sdl.c
Examining data/s3d-0.2.2.1/server/main.c

FINAL RESULTS:

data/s3d-0.2.2.1/apps/dot_mcp/menu.c:61: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.
					system(exec);
data/s3d-0.2.2.1/apps/meshs3d/process.c:164:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(format, args);
data/s3d-0.2.2.1/apps/meshs3d/process.c:464:8:  [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(tmp_char, tt_name);
data/s3d-0.2.2.1/apps/s3dfm/fs.c:50:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(fl->p[j].name, path);
data/s3d-0.2.2.1/apps/s3dfm/fs.c:52: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(fl->p[j].name, name);
data/s3d-0.2.2.1/apps/s3dfm/fs.c:219: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(sdest, dest);
data/s3d-0.2.2.1/apps/s3dfm/fs.c:221: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(sdest, bname);
data/s3d-0.2.2.1/apps/s3dfm/fs.c:303: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(sdest, dest);
data/s3d-0.2.2.1/apps/s3dfm/fs.c:305: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(sdest, bname);
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:83:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(requestBuf, "GET / %s\r\n", HTTP_VERSION);
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:85:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(requestBuf, "GET %s %s\r\n", charIndex, HTTP_VERSION);
data/s3d-0.2.2.1/apps/s3dvt/main.c:166: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(exe, exe, NULL);
data/s3d-0.2.2.1/apps/s3dvt/main.c:238: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(exe, exe, args, NULL);
data/s3d-0.2.2.1/example/filebrowser.c:204:5:  [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.
				system(execstr);
data/s3d-0.2.2.1/example/filebrowser.c:210:5:  [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.
				system(execstr);
data/s3d-0.2.2.1/example/widgets.c:87:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(string, "I see, %s!!", age);
data/s3d-0.2.2.1/libs3d/error.c:18:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		vsnprintf((char *)&dbm, DBM_MAX, fmt, args);
data/s3d-0.2.2.1/libs3d/error.c:36:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		vsnprintf((char *)&dbm, DBM_MAX, fmt, args);
data/s3d-0.2.2.1/libs3d/modelread.c:57: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(path, ptr);     /* can use "unsafe" functions because size was verified above */
data/s3d-0.2.2.1/libs3d/modelread.c:58:4:  [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(path, fname);
data/s3d-0.2.2.1/libs3d/s3dlib.h:82:74:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
S3DEXPORT void s3dprintf(int relevance, const char *fmt, ...) S3D_FORMAT(printf, 2, 3);
data/s3d-0.2.2.1/libs3d/s3dlib.h:84:88:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
S3DEXPORT void errds(int relevance, const char *func, const char *fmt, ...) S3D_FORMAT(printf, 3, 4);
data/s3d-0.2.2.1/libs3d/s3dlib.h:86:71:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
static void s3dprintf(int relevance, const char *fmt, ...) S3D_FORMAT(printf, 2, 3);
data/s3d-0.2.2.1/libs3d/s3dlib.h:88:85:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
static void errds(int relevance, const char *func, const char *fmt, ...) S3D_FORMAT(printf, 3, 4);
data/s3d-0.2.2.1/libs3dw/input.c:207: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(newtext, input->text);
data/s3d-0.2.2.1/server/error.c:48:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		vsnprintf((char *)&dbm, DBM_MAX, fmt, args);
data/s3d-0.2.2.1/server/error.c:62:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		vsnprintf((char *)&dbm, DBM_MAX, fmt, args);
data/s3d-0.2.2.1/server/event.c:59:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(s, "%c%c%c%s", S3D_SERVER_MAJOR, S3D_SERVER_MINOR, S3D_SERVER_PATCH, S3D_SERVER_NAME);	/* thanks award */
data/s3d-0.2.2.1/server/global.h:276:78:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void errds(int relevance, const char *func, const char *fmt, ...) S3D_FORMAT(printf, 3, 4);
data/s3d-0.2.2.1/server/global.h:277:64:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void s3dprintf(int relevance, const char *msg, ...) S3D_FORMAT(printf, 2, 3);
data/s3d-0.2.2.1/server/global.h:279:85:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
static void errds(int relevance, const char *func, const char *fmt, ...) S3D_FORMAT(printf, 3, 4);
data/s3d-0.2.2.1/server/global.h:280:71:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
static void s3dprintf(int relevance, const char *msg, ...) S3D_FORMAT(printf, 2, 3);
data/s3d-0.2.2.1/server/main.c:76:11:  [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(*s3drc[i]);
data/s3d-0.2.2.1/apps/meshs3d/main.c:491:20:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((optchar = getopt(argc, argv, "dhH:")) != -1) {
data/s3d-0.2.2.1/apps/s3d_x11gate/s3d_x11gate.c:175:27:  [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 (disp == NULL) disp = getenv("DISPLAY");
data/s3d-0.2.2.1/apps/s3dosm/io.c:56:20:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while (-1 != (c = getopt_long(argc, argv, "dH:?ho:", long_options, &lopt_idx))) {
data/s3d-0.2.2.1/libs3d/io.c:78:20:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while (-1 != (c = getopt_long(old_argc, *argv, "-h", long_options, &lopt_idx))) {
data/s3d-0.2.2.1/libs3d/io.c:137:19:  [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 (NULL != (s = getenv("S3D"))) {
data/s3d-0.2.2.1/libs3d/sei_misc.c:54:7:  [3] (random) lrand48:
  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.
		m = lrand48() % (n + 1 - i) + 1;
data/s3d-0.2.2.1/server/main.c:195:20:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while (-1 != (c = getopt_long(argc, argv, "?hgsnr:m:", long_options, &lopt_idx))) {
data/s3d-0.2.2.1/apps/dot_mcp/main.c:33:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[256];
data/s3d-0.2.2.1/apps/dot_mcp/menu.c:31: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 exec[256];
data/s3d-0.2.2.1/apps/kism3d/gui.c:109: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 label_str[101]; /* safe to do as long as we use strn* functions */
data/s3d-0.2.2.1/apps/kism3d/kism3d.c:213:27:  [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).
					wlan_network->chan = atoi(channel);
data/s3d-0.2.2.1/apps/kism3d/kism3d.c:218:27:  [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).
					wlan_network->type = atoi(type);
data/s3d-0.2.2.1/apps/kism3d/kism3d.c:345: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 *colon_ptr, buff[1000];
data/s3d-0.2.2.1/apps/kism3d/kism3d.h:47: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 bssid[18];
data/s3d-0.2.2.1/apps/kism3d/kism3d.h:71: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 bssid[18];
data/s3d-0.2.2.1/apps/kism3d/kism3d.h:72: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 mac[18];
data/s3d-0.2.2.1/apps/kism3d/kism3d.h:73: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 ip[16];
data/s3d-0.2.2.1/apps/meshs3d/allocate.c:238: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(result, memoryParameter, copyLength);
data/s3d-0.2.2.1/apps/meshs3d/main.c:389: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 nc_str[20];
data/s3d-0.2.2.1/apps/meshs3d/main.c:484: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 olsr_host[256];
data/s3d-0.2.2.1/apps/meshs3d/meshs3d.h:62:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name_string[NAMEMAX];  /* host ip */
data/s3d-0.2.2.1/apps/meshs3d/meshs3d.h:93: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.
extern char lbuf[MAXLINESIZE];
data/s3d-0.2.2.1/apps/meshs3d/net.c:20: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 buf[MAXDATASIZE];
data/s3d-0.2.2.1/apps/meshs3d/process.c:24:1:  [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 lbuf[MAXLINESIZE];
data/s3d-0.2.2.1/apps/meshs3d/process.c:312:28:  [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 int parse_mac(const char *src, uint8_t dst[6])
data/s3d-0.2.2.1/apps/meshs3d/process.c:373: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 tt_name[NAMEMAX];
data/s3d-0.2.2.1/apps/meshs3d/process.c:374: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 tt_node[NAMEMAX];
data/s3d-0.2.2.1/apps/meshs3d/process.c:463:8:  [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(tt_name, "%u", (unsigned int)(32 - ceil(log(address) / log(2))));
data/s3d-0.2.2.1/apps/s3dfm/box.c:66: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[30];
data/s3d-0.2.2.1/apps/s3dfm/dialog.c:19: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 destdir[M_DIR];
data/s3d-0.2.2.1/apps/s3dfm/dialog.c:103: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 string[M_DIR];
data/s3d-0.2.2.1/apps/s3dfm/dialog.c:272: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 string1[M_DIR];
data/s3d-0.2.2.1/apps/s3dfm/dialog.c:315: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 string1[M_DIR];
data/s3d-0.2.2.1/apps/s3dfm/dialog.c:316: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 string2[567];
data/s3d-0.2.2.1/apps/s3dfm/dialog.c:318: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 bd[M_DIR];
data/s3d-0.2.2.1/apps/s3dfm/dialog.c:412: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 errmsg[M_DIR];
data/s3d-0.2.2.1/apps/s3dfm/event.c:32: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 path[M_DIR];
data/s3d-0.2.2.1/apps/s3dfm/fs.c: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 buf[1024];
data/s3d-0.2.2.1/apps/s3dfm/fs.c:176:22:  [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).
		if (NULL == (fps = fopen(source, "rb"))) {
data/s3d-0.2.2.1/apps/s3dfm/fs.c:182:22:  [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).
		if (NULL == (fpd = fopen(dest, "wb"))) {
data/s3d-0.2.2.1/apps/s3dfm/node.c:12: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 p[M_DIR];
data/s3d-0.2.2.1/apps/s3dfm/parse.c:19: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 path[M_DIR];
data/s3d-0.2.2.1/apps/s3dfm/parse.c:20: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 ndir[M_DIR];
data/s3d-0.2.2.1/apps/s3dfm/s3dfm.h: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     name[M_NAME];      /* name (e.g. file name) */
data/s3d-0.2.2.1/apps/s3dfm/string.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 st[M_DIR];
data/s3d-0.2.2.1/apps/s3dosm/db.c:11: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 qbuf[QBUF];
data/s3d-0.2.2.1/apps/s3dosm/db.c:27: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 tagquery[MAXQ];
data/s3d-0.2.2.1/apps/s3dosm/db.c: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 mkey[MAXQ], mval[MAXQ];
data/s3d-0.2.2.1/apps/s3dosm/db.c:38: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 addquery[MAXQ];
data/s3d-0.2.2.1/apps/s3dosm/db.c:54: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 addquery[MAXQ];
data/s3d-0.2.2.1/apps/s3dosm/db.c:72: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 addquery[MAXQ];
data/s3d-0.2.2.1/apps/s3dosm/db.c:81: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 addquery[MAXQ];
data/s3d-0.2.2.1/apps/s3dosm/db.c:89:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char findquery[MAXQ];
data/s3d-0.2.2.1/apps/s3dosm/db.c:90: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 addquery[MAXQ];
data/s3d-0.2.2.1/apps/s3dosm/db.c:91: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 clayer[MAXQ];
data/s3d-0.2.2.1/apps/s3dosm/db.c:111: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 findquery[MAXQ];
data/s3d-0.2.2.1/apps/s3dosm/db.c:112: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 clean_ip[16];
data/s3d-0.2.2.1/apps/s3dosm/db.c:177:21:  [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).
		*((int *)tagid) = atoi(argv[0]);
data/s3d-0.2.2.1/apps/s3dosm/db.c:185: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.
		clean_string((char *)string, argv[0], MAXQ);
data/s3d-0.2.2.1/apps/s3dosm/db.c:193: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 query[MAXQ];
data/s3d-0.2.2.1/apps/s3dosm/draw.c:69: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 s[MAXQ];
data/s3d-0.2.2.1/apps/s3dosm/draw.c:78:61:  [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).
			else if (0 == strcmp(azColName[i], "tag_id"))    tagid = atoi(argv[i]);
data/s3d-0.2.2.1/apps/s3dosm/draw.c:137: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 query[MAXQ];
data/s3d-0.2.2.1/apps/s3dosm/draw.c:236: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(&swap, &(adjlist_p[j+1]), sizeof(struct adjlist));
data/s3d-0.2.2.1/apps/s3dosm/draw.c:237: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(&(adjlist_p[j+1]), &(adjlist_p[k]), sizeof(struct adjlist));
data/s3d-0.2.2.1/apps/s3dosm/draw.c:238: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(&(adjlist_p[k]), &swap, sizeof(struct adjlist));
data/s3d-0.2.2.1/apps/s3dosm/draw.c:375:53:  [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).
			if (0 == strcmp(azColName[i], "way_id"))    id = atoi(argv[i]);
data/s3d-0.2.2.1/apps/s3dosm/draw.c:376:68:  [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).
			else if (0 == strcmp(azColName[i], "node_from"))  p.node_from = atoi(argv[i]);
data/s3d-0.2.2.1/apps/s3dosm/draw.c:377:65:  [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).
			else if (0 == strcmp(azColName[i], "node_to"))   p.node_to = atoi(argv[i]);
data/s3d-0.2.2.1/apps/s3dosm/draw.c:378:63:  [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).
			else if (0 == strcmp(azColName[i], "seg_id"))   p.seg_id = atoi(argv[i]);
data/s3d-0.2.2.1/apps/s3dosm/draw.c:404:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char query[MAXQ];
data/s3d-0.2.2.1/apps/s3dosm/draw.c:419: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 query[MAXQ];
data/s3d-0.2.2.1/apps/s3dosm/gps.c:80: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[BUFSIZE+1];
data/s3d-0.2.2.1/apps/s3dosm/http_error_codes.c:22:1:  [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 convertedError[128];
data/s3d-0.2.2.1/apps/s3dosm/http_error_codes.h:25: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.
extern char convertedError[128];
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:47: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 requestBuf[REQUEST_BUF_SIZE];
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:48: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 headerBuf[HEADER_BUF_SIZE];
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:373: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 plain[1024];
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:492:19:  [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.
			stringIndex = (char *)http_errlist[http_errno];
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:530:21:  [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.
			originalError = (char *)http_errlist[http_errno];
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:535: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(&convertedError[strlen(convertedError)], "%d", errorInt);
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:631: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((char *)&sa.sin_addr, (char *)hp->h_addr, hp->h_length);
data/s3d-0.2.2.1/apps/s3dosm/io.c:22:12:  [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).
	if ((fp = fopen(fname, "rb")) == NULL) {
data/s3d-0.2.2.1/apps/s3dosm/io.c:48: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     info[1024];
data/s3d-0.2.2.1/apps/s3dosm/olsrs3d.h:39: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.
extern char lbuf[MAXLINESIZE];
data/s3d-0.2.2.1/apps/s3dosm/osm.c:130: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 url[1024];
data/s3d-0.2.2.1/apps/s3dosm/structs.h: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 ip[NAMEMAX];    /* host ip */
data/s3d-0.2.2.1/apps/s3dosm/ui.c:38: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 type[MAXQ];
data/s3d-0.2.2.1/apps/s3dosm/ui.c:39:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[MAXQ];
data/s3d-0.2.2.1/apps/s3dosm/ui.c:40: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 string[4102];
data/s3d-0.2.2.1/apps/s3dosm/ui.c:46:56:  [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).
			if (0 == strcmp(azColName[i], "tag_id"))    tagid = atoi(argv[i]);
data/s3d-0.2.2.1/apps/s3dosm/ui.c:66:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[MAXQ];
data/s3d-0.2.2.1/apps/s3dosm/ui.c:67: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 string[4102];
data/s3d-0.2.2.1/apps/s3dosm/ui.c:73:56:  [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).
			if (0 == strcmp(azColName[i], "tag_id"))    tagid = atoi(argv[i]);
data/s3d-0.2.2.1/apps/s3dosm/ui.c:92: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 query[MAXQ];
data/s3d-0.2.2.1/apps/s3dosm/ui.c:148: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 text[128];
data/s3d-0.2.2.1/apps/s3dvt/main.c:42: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   last_c[MAX_LINES*MAX_CHARS];
data/s3d-0.2.2.1/apps/s3dvt/main.c:52: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 buffer[1024];
data/s3d-0.2.2.1/apps/s3dvt/main.c:101:10:  [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).
	slave = open(name, O_RDWR);
data/s3d-0.2.2.1/apps/s3dvt/main.c:116: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 tmpstr[1024];
data/s3d-0.2.2.1/apps/s3dvt/main.c:161:3:  [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(tmpstr, "%d", MAX_LINES - 1);
data/s3d-0.2.2.1/apps/s3dvt/main.c:163:3:  [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(tmpstr, "%d", MAX_CHARS - 1);
data/s3d-0.2.2.1/apps/s3dvt/main.c:213: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 tmpstr[1024];
data/s3d-0.2.2.1/apps/s3dvt/main.c:233:3:  [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(tmpstr, "%d", MAX_LINES - 1);
data/s3d-0.2.2.1/apps/s3dvt/main.c:235:3:  [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(tmpstr, "%d", MAX_CHARS - 1);
data/s3d-0.2.2.1/apps/s3dvt/main.c:327: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 cl[MAX_CHARS];
data/s3d-0.2.2.1/apps/s3dvt/main.c:527: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 c[2];
data/s3d-0.2.2.1/apps/s3dvt/terminal.c:36: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(&tmpline, psecondline, (MAX_LINES - 1)*sizeof(struct line_struct));
data/s3d-0.2.2.1/apps/s3dvt/terminal.c:37: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(pfirstline, &tmpline, (MAX_LINES - 1)*sizeof(struct line_struct));
data/s3d-0.2.2.1/apps/s3dvt/terminal.c:130:13:  [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).
			curcol = atoi(args[i]);
data/s3d-0.2.2.1/apps/s3dvt/terminal.c:187: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).
	if (arg[0]) amount = atoi(arg);
data/s3d-0.2.2.1/apps/s3dvt/terminal.c:197: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(&tmpline, psecondline, (bottom - top)*sizeof(struct line_struct));
data/s3d-0.2.2.1/apps/s3dvt/terminal.c:198: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(pfirstline, &tmpline, (bottom - top)*sizeof(struct line_struct));
data/s3d-0.2.2.1/apps/s3dvt/terminal.c:211: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).
	if (arg[0]) amount = atoi(arg);
data/s3d-0.2.2.1/apps/s3dvt/terminal.c:220: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(&tmpline, pfirstline, (bottom - top)*sizeof(struct line_struct));
data/s3d-0.2.2.1/apps/s3dvt/terminal.c:221: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(psecondline, &tmpline, (bottom - top)*sizeof(struct line_struct));
data/s3d-0.2.2.1/apps/s3dvt/terminal.c:228:24:  [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).
	if (arg1[0]) tmpint = atoi(arg1);
data/s3d-0.2.2.1/apps/s3dvt/terminal.c:241:12:  [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).
		tmpint = atoi(arg1);
data/s3d-0.2.2.1/apps/s3dvt/terminal.c:285:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char arg1[16] = "";
data/s3d-0.2.2.1/apps/s3dvt/terminal.c:286:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char arg2[16] = "";
data/s3d-0.2.2.1/apps/s3dvt/terminal.c:287:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char arg3[16] = "";
data/s3d-0.2.2.1/apps/s3dvt/terminal.c:288:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char arg4[16] = "";
data/s3d-0.2.2.1/apps/s3dvt/terminal.c:289:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char arg5[16] = "";
data/s3d-0.2.2.1/apps/s3dvt/terminal.c:325:22:  [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).
			if (arg1[0]) cy = atoi(arg1) - 1;
data/s3d-0.2.2.1/apps/s3dvt/terminal.c:327:22:  [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).
			if (arg2[0]) cx = atoi(arg2) - 1;
data/s3d-0.2.2.1/apps/s3dvt/terminal.c:331:22:  [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).
			if (arg1[0]) cx = atoi(arg1) - 1;
data/s3d-0.2.2.1/apps/s3dvt/terminal.c:336:22:  [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).
			if (arg1[0]) cy = atoi(arg1) - 1;
data/s3d-0.2.2.1/apps/s3dvt/terminal.c:362: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).
			if (arg1[0]) top = atoi(arg1);
data/s3d-0.2.2.1/apps/s3dvt/terminal.c:364:26:  [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).
			if (arg2[0]) bottom = atoi(arg2);
data/s3d-0.2.2.1/example/filebrowser.c:38:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[M_NAME];
data/s3d-0.2.2.1/example/filebrowser.c:51: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 ndir[M_DIR+1];
data/s3d-0.2.2.1/example/filebrowser.c:186: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 execstr[276];
data/s3d-0.2.2.1/example/ptrtest.c:52: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 s[256];
data/s3d-0.2.2.1/example/s3dclock.c:18: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 time_str[256];
data/s3d-0.2.2.1/example/s3dclock.c:36:3:  [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(time_str, "%02d:%02d:%02d", mytime->tm_hour, mytime->tm_min, mytime->tm_sec);
data/s3d-0.2.2.1/example/strtest.c: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 c[256];
data/s3d-0.2.2.1/example/widgets.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 string[8];
data/s3d-0.2.2.1/example/widgets.c:51:3:  [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(string, "%c", key->unicode);
data/s3d-0.2.2.1/example/widgets.c:71: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 string[32];
data/s3d-0.2.2.1/libs3d/error.c:14: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 dbm[DBM_MAX];
data/s3d-0.2.2.1/libs3d/error.c:32: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 dbm[DBM_MAX];
data/s3d-0.2.2.1/libs3d/freetype.c:34: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 oldfontpath[256];
data/s3d-0.2.2.1/libs3d/freetype.c:254: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(vbuf, tess_buf[a].vbuf, sizeof(float)*3*tess_buf[a].vn);
data/s3d-0.2.2.1/libs3d/freetype.c:255: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(pbuf, tess_buf[a].pbuf, sizeof(uint32_t)*4*tess_buf[a].pn);
data/s3d-0.2.2.1/libs3d/io.c:129: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      urlc[256];   /*  this should be enough for an url */
data/s3d-0.2.2.1/libs3d/io.c:130: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[258];    /*  server buffer */
data/s3d-0.2.2.1/libs3d/io.c:264:12:  [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).
	if ((fp = fopen(fname, "rb")) == NULL) {
data/s3d-0.2.2.1/libs3d/modelread.c:38: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 searchpath[1024];
data/s3d-0.2.2.1/libs3d/modelread.c:39: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 path[1024];
data/s3d-0.2.2.1/libs3d/network.c: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 buff[65539];  /*  uint16_t really shouldn't be bigger ;) */
data/s3d-0.2.2.1/libs3d/network.c:27: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(buff + 3, buf, length);
data/s3d-0.2.2.1/libs3d/network.c:133:15:  [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).
			if (!(pn = atoi(port))) { /*  I hope atoi is safe enough. */
data/s3d-0.2.2.1/libs3d/proto_out.c:117: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[4+3*4], *ptr;
data/s3d-0.2.2.1/libs3d/proto_out.c:148: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[MF_LEN+4], *ptr;
data/s3d-0.2.2.1/libs3d/proto_out.c:164: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(ptr, (char *)vbuf + i*stepl, flen);
data/s3d-0.2.2.1/libs3d/proto_out.c:188: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[4+4*12];
data/s3d-0.2.2.1/libs3d/proto_out.c:235: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[4+4*12];
data/s3d-0.2.2.1/libs3d/proto_out.c:298: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[MF_LEN+4], *ptr;
data/s3d-0.2.2.1/libs3d/proto_out.c:314: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(ptr, (char *)mbuf + i*stepl, flen);
data/s3d-0.2.2.1/libs3d/proto_out.c:339: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[4+4*4], *ptr;
data/s3d-0.2.2.1/libs3d/proto_out.c:364: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[4+3*4], *ptr;
data/s3d-0.2.2.1/libs3d/proto_out.c:462: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[4+2*2], *ptr;
data/s3d-0.2.2.1/libs3d/proto_out.c:592: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[4+4*12];
data/s3d-0.2.2.1/libs3d/proto_out.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    buf[4+4*12];
data/s3d-0.2.2.1/libs3d/proto_out.c:684: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[MF_LEN+4];
data/s3d-0.2.2.1/libs3d/proto_out.c:690: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 + 4, mbuf, 12*n*sizeof(float));
data/s3d-0.2.2.1/libs3d/proto_out.c:716: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 + 4, nbuf, 9*n*sizeof(float));
data/s3d-0.2.2.1/libs3d/proto_out.c:741: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 + 4, nbuf, 6*n*sizeof(float));
data/s3d-0.2.2.1/libs3d/proto_out.c:754: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[4+3*4], *ptr;
data/s3d-0.2.2.1/libs3d/proto_out.c:777: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[4+3*4], *ptr;
data/s3d-0.2.2.1/libs3d/proto_out.c:829: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 + 4, vbuf, 3*n*sizeof(float));
data/s3d-0.2.2.1/libs3d/proto_out.c:846: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 *ptr, buf[4*6+4];
data/s3d-0.2.2.1/libs3d/proto_out.c:875: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[MF_LEN+4];
data/s3d-0.2.2.1/libs3d/proto_out.c:881: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 + 4, tbuf, 6*n*sizeof(float));
data/s3d-0.2.2.1/libs3d/proto_out.c:894: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[MF_LEN+4], *ptr;
data/s3d-0.2.2.1/libs3d/proto_out.c:913: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(ptr, (char *)nbuf + i*stepl, flen);
data/s3d-0.2.2.1/libs3d/proto_out.c:928: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[MF_LEN+4], *ptr;
data/s3d-0.2.2.1/libs3d/proto_out.c:947: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(ptr, (char *)nbuf + i*stepl, flen);
data/s3d-0.2.2.1/libs3d/proto_out.c:962: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[MF_LEN+4], *ptr;
data/s3d-0.2.2.1/libs3d/proto_out.c:981: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(ptr, (char *)tbuf + i*stepl, flen);
data/s3d-0.2.2.1/libs3d/proto_out.c:996: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[MF_LEN+4], *ptr;
data/s3d-0.2.2.1/libs3d/proto_out.c:1015: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(ptr, (char *)mbuf + i*stepl, flen);
data/s3d-0.2.2.1/libs3d/proto_out.c:1030: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[4*2], *ptr;
data/s3d-0.2.2.1/libs3d/proto_out.c:1041: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[16], *ptr;
data/s3d-0.2.2.1/libs3d/proto_out.c:1072: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[MF_LEN+4], *ptr;
data/s3d-0.2.2.1/libs3d/proto_out.c:1098: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(ptr, data + (i*w*4), lines*w*4);
data/s3d-0.2.2.1/libs3d/proto_out.c:1113: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[4+1+4], *ptr;
data/s3d-0.2.2.1/libs3d/proto_out.c:1133: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[4+1+4], *ptr;
data/s3d-0.2.2.1/libs3d/proto_out.c:1162: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[4+4*3], *ptr;
data/s3d-0.2.2.1/libs3d/proto_out.c:1202: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[4+4*3], *ptr;
data/s3d-0.2.2.1/libs3d/proto_out.c:1229: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[4+4], *ptr;
data/s3d-0.2.2.1/libs3d/s3d.h:83:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[256];
data/s3d-0.2.2.1/libs3d/s3d.h:103:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[256];
data/s3d-0.2.2.1/libs3d/shm_ringbuf.c:47: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(data + e, buf, rs);   /* copy the first part ... */
data/s3d-0.2.2.1/libs3d/shm_ringbuf.c:48: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(data, buf + rs, n - rs);   /* .. end the rest */
data/s3d-0.2.2.1/libs3d/shm_ringbuf.c:50: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(data + e, buf, n);   /* plain copy */
data/s3d-0.2.2.1/libs3d/shm_ringbuf.c:73: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(buf, data + s, rs);
data/s3d-0.2.2.1/libs3d/shm_ringbuf.c:74: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(buf + rs, data, mn - rs);
data/s3d-0.2.2.1/libs3d/shm_ringbuf.c:76: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(buf, data + s, mn);
data/s3d-0.2.2.1/libs3d/tcp.c:63: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(&sock.sin_addr.s_addr, server->h_addr_list[0], 4);
data/s3d-0.2.2.1/libs3d/texture.c:110: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(tex->buf + 4*p1,     /*  draw at p1 position ... */
data/s3d-0.2.2.1/libs3dw/input.c:196: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(newtext, input->text, len);
data/s3d-0.2.2.1/server/allocate.c:131: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(result, memoryParameter, copyLength);
data/s3d-0.2.2.1/server/error.c:44: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 dbm[DBM_MAX];
data/s3d-0.2.2.1/server/error.c:58: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 dbm[DBM_MAX];
data/s3d-0.2.2.1/server/event.c:58: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 s[S3D_NAME_MAX + 3];
data/s3d-0.2.2.1/server/event.c:131: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 name[S3D_NAME_MAX];
data/s3d-0.2.2.1/server/global.h:178:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[S3D_NAME_MAX];	/*  process name */
data/s3d-0.2.2.1/server/main.c:211:15:  [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).
			aa_level = atoi(optarg);
data/s3d-0.2.2.1/server/matrix.c:22: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, Identity, sizeof(t_mtrx));
data/s3d-0.2.2.1/server/matrix.c:45: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, mat_d, sizeof(t_mtrx));
data/s3d-0.2.2.1/server/matrix.c:50: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, MAT, sizeof(t_mtrx));
data/s3d-0.2.2.1/server/matrix.c:55: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, mat, sizeof(t_mtrx));
data/s3d-0.2.2.1/server/matrix.c:65: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(v, w, sizeof(w));
data/s3d-0.2.2.1/server/matrix.c:74: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(v, w, sizeof(w));
data/s3d-0.2.2.1/server/matrix.c:83: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(v, &w, sizeof(struct t_vertex));
data/s3d-0.2.2.1/server/matrix.c:96: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(Mm, MAT, sizeof(t_mtrx));	/* backup matrix */
data/s3d-0.2.2.1/server/matrix.c:97: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(Pm, Identity, sizeof(t_mtrx));	/* target */
data/s3d-0.2.2.1/server/matrix.c:168: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, Pm, sizeof(t_mtrx));	/* copy result */
data/s3d-0.2.2.1/server/mcp.c:20:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[S3D_NAME_MAX];
data/s3d-0.2.2.1/server/object.c:891:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(t->buf + 4 * p1,	/*  draw at p1 position ... */
data/s3d-0.2.2.1/server/object.c:1836: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(obj->m, Identity, sizeof(t_mtrx));
data/s3d-0.2.2.1/server/process.c:37: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(&procs_p[MCP].shmsock, &p->shmsock, sizeof(struct t_shmcb));
data/s3d-0.2.2.1/server/process.c:151: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(&procs_p[pid], &procs_p[procs_n - 1], sizeof(struct t_process));
data/s3d-0.2.2.1/server/proto.c:24:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[S3D_NAME_MAX];
data/s3d-0.2.2.1/server/proto.c:404: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(obuf + 3, buf, length);
data/s3d-0.2.2.1/server/shm.c:48: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(ftoken, "wb");
data/s3d-0.2.2.1/server/shm.c:214: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(&new_p->shmsock, &waiting_comblock, sizeof(struct t_shmcb));
data/s3d-0.2.2.1/server/shm_ringbuf.c:29: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(data + e, buf, rs);	/* copy the first part ... */
data/s3d-0.2.2.1/server/shm_ringbuf.c:30: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(data, buf + rs, n - rs);	/* .. end the rest */
data/s3d-0.2.2.1/server/shm_ringbuf.c:32: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(data + e, buf, n);	/* plain copy */
data/s3d-0.2.2.1/server/shm_ringbuf.c:58: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(buf, data + s, rs);
data/s3d-0.2.2.1/server/shm_ringbuf.c:59: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(buf + rs, data, mn - rs);
data/s3d-0.2.2.1/server/shm_ringbuf.c:61: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(buf, data + s, mn);
data/s3d-0.2.2.1/apps/dot_mcp/main.c:258:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(a->name, mo->name, sizeof(a->name));
data/s3d-0.2.2.1/apps/dot_mcp/menu.c:55:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(exec, menu_items[i].path, sizeof(exec));
data/s3d-0.2.2.1/apps/dot_mcp/menu.c:57:11:  [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).
				len = strlen(exec);
data/s3d-0.2.2.1/apps/dot_mcp/menu.c:59:6:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
					strncat(exec, "> /dev/null 2>&1 &", sizeof(exec) - 1 - len); /* ignoring output, starting in background */
data/s3d-0.2.2.1/apps/kism3d/client.c:34:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(wlan_client->mac, mac, sizeof(wlan_client->mac));
data/s3d-0.2.2.1/apps/kism3d/kism3d.c:93:37:  [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 (strncmp(line_ptr, "*TIME: ", strlen("*TIME: ")) == 0) {
data/s3d-0.2.2.1/apps/kism3d/kism3d.c:144:47:  [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).
			} else if (strncmp(line_ptr, "*NETWORK: ", strlen("*NETWORK: ")) == 0) {
data/s3d-0.2.2.1/apps/kism3d/kism3d.c:148:50:  [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).
				parse_begin_ptr = parse_end_ptr = line_ptr + strlen("*NETWORK: ");
data/s3d-0.2.2.1/apps/kism3d/kism3d.c:225:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				ssid_len = strlen(ssid) + 1;
data/s3d-0.2.2.1/apps/kism3d/kism3d.c:227:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(wlan_network->ssid, ssid, ssid_len);
data/s3d-0.2.2.1/apps/kism3d/kism3d.c:234:46:  [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).
			} else if (strncmp(line_ptr, "*CLIENT: ", strlen("*CLIENT: ")) == 0) {
data/s3d-0.2.2.1/apps/kism3d/kism3d.c:236:50:  [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).
				parse_begin_ptr = parse_end_ptr = line_ptr + strlen("*CLIENT: ");
data/s3d-0.2.2.1/apps/kism3d/kism3d.c:281:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(wlan_client->bssid, bssid,
data/s3d-0.2.2.1/apps/kism3d/kism3d.c:284:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(wlan_client->ip, ip,
data/s3d-0.2.2.1/apps/kism3d/kism3d.c:313: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).
			} else if (strncmp(line_ptr, "*ALERT: ", strlen("*ALERT: ")) == 0) {
data/s3d-0.2.2.1/apps/kism3d/kism3d.c:329:51:  [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).
		memmove(kismet_src->recv_buff, last_cr_ptr + 1, strlen(last_cr_ptr));
data/s3d-0.2.2.1/apps/kism3d/kism3d.c:471:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					status = read(kismet_src->sock, buff, sizeof(buff));
data/s3d-0.2.2.1/apps/kism3d/kism3d.c:481: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 ((strlen(kismet_src->recv_buff) + strlen(buff)) < 1500) {
data/s3d-0.2.2.1/apps/kism3d/kism3d.c:481:44:  [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(kismet_src->recv_buff) + strlen(buff)) < 1500) {
data/s3d-0.2.2.1/apps/kism3d/kism3d.c:483:8:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
							strncat(kismet_src->recv_buff, buff, 1000);
data/s3d-0.2.2.1/apps/kism3d/kism3d.c:488: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 (strlen(kismet_src->recv_buff) < 1500) {
data/s3d-0.2.2.1/apps/kism3d/kism3d.c:491:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
								strncat(kismet_src->recv_buff, buff, 1500 - strlen(kismet_src->recv_buff));
data/s3d-0.2.2.1/apps/kism3d/kism3d.c:491:53:  [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).
								strncat(kismet_src->recv_buff, buff, 1500 - strlen(kismet_src->recv_buff));
data/s3d-0.2.2.1/apps/kism3d/kism3d.c:496:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
								strncpy(kismet_src->recv_buff, buff, 1000);
data/s3d-0.2.2.1/apps/kism3d/network.c:29:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(wlan_network->bssid, bssid, sizeof(wlan_network->bssid));
data/s3d-0.2.2.1/apps/meshs3d/main.c:487:2:  [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 string.
	strncpy(olsr_host, "127.0.0.1", sizeof(olsr_host));
data/s3d-0.2.2.1/apps/meshs3d/main.c:500:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(olsr_host, optarg, sizeof(olsr_host));
data/s3d-0.2.2.1/apps/meshs3d/net.c:76:13:  [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).
	len_lbuf = strlen(lbuf);
data/s3d-0.2.2.1/apps/meshs3d/net.c:77: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).
	if ((len_lbuf + strlen(buf)) < MAXLINESIZE) {
data/s3d-0.2.2.1/apps/meshs3d/net.c:79:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(lbuf, buf, MAXLINESIZE - len_lbuf - 1);
data/s3d-0.2.2.1/apps/meshs3d/net.c:87:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat(lbuf, buf, MAXLINESIZE - len_lbuf - 1);
data/s3d-0.2.2.1/apps/meshs3d/net.c:92:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(lbuf, buf, MAXLINESIZE);
data/s3d-0.2.2.1/apps/meshs3d/process.c:104: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).
		for (i = strlen(id->id.generic); i != 0; i--)
data/s3d-0.2.2.1/apps/meshs3d/process.c:283:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(orig_node->name_string, name_string,
data/s3d-0.2.2.1/apps/meshs3d/process.c:551: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).
		memmove(lbuf, last_cr_ptr + 1, strlen(last_cr_ptr));
data/s3d-0.2.2.1/apps/s3dfm/box.c:48:51:  [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).
	s3d_scale(dir->objs.str, (float)1.8 / (dir->objs.strlen));
data/s3d-0.2.2.1/apps/s3dfm/box.c:49:51:  [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).
	s3d_scale(dir->objs.str, (float)1.8 / (dir->objs.strlen));
data/s3d-0.2.2.1/apps/s3dfm/dialog.c:106: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).
	l = strlen(string) * 0.7;
data/s3d-0.2.2.1/apps/s3dfm/dialog.c:178: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).
		if (strlen(fp->p[i].name) > m) m = strlen(fp->p[i].name);
data/s3d-0.2.2.1/apps/s3dfm/dialog.c:178:38:  [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(fp->p[i].name) > m) m = strlen(fp->p[i].name);
data/s3d-0.2.2.1/apps/s3dfm/dialog.c:229: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).
		if (strlen(fp->p[i].name) > m) m = strlen(fp->p[i].name);
data/s3d-0.2.2.1/apps/s3dfm/dialog.c:229:38:  [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(fp->p[i].name) > m) m = strlen(fp->p[i].name);
data/s3d-0.2.2.1/apps/s3dfm/dialog.c:279: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).
	l = strlen(string1) * 0.7;
data/s3d-0.2.2.1/apps/s3dfm/dialog.c:325:8:  [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).
	l = ((strlen(string1) > strlen(string2)) ? strlen(string1) : strlen(string2)) * 0.7;
data/s3d-0.2.2.1/apps/s3dfm/dialog.c:325:26:  [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).
	l = ((strlen(string1) > strlen(string2)) ? strlen(string1) : strlen(string2)) * 0.7;
data/s3d-0.2.2.1/apps/s3dfm/dialog.c:325: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).
	l = ((strlen(string1) > strlen(string2)) ? strlen(string1) : strlen(string2)) * 0.7;
data/s3d-0.2.2.1/apps/s3dfm/dialog.c:325:63:  [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).
	l = ((strlen(string1) > strlen(string2)) ? strlen(string1) : strlen(string2)) * 0.7;
data/s3d-0.2.2.1/apps/s3dfm/fs.c:49:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				fl->p[j].name = (char*)malloc(strlen(name) + strlen(path) + 2);
data/s3d-0.2.2.1/apps/s3dfm/fs.c:49:50:  [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).
				fl->p[j].name = (char*)malloc(strlen(name) + strlen(path) + 2);
data/s3d-0.2.2.1/apps/s3dfm/fs.c:51:5:  [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(fl->p[j].name, "/");
data/s3d-0.2.2.1/apps/s3dfm/fs.c:217: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).
		sdest = (char*)malloc(strlen(dest) + strlen(bname) + 2);
data/s3d-0.2.2.1/apps/s3dfm/fs.c:217:40:  [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).
		sdest = (char*)malloc(strlen(dest) + strlen(bname) + 2);
data/s3d-0.2.2.1/apps/s3dfm/fs.c:220: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(sdest, "/");
data/s3d-0.2.2.1/apps/s3dfm/fs.c:301: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).
		sdest = (char*)malloc(strlen(dest) + strlen(bname) + 2);
data/s3d-0.2.2.1/apps/s3dfm/fs.c:301:40:  [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).
		sdest = (char*)malloc(strlen(dest) + strlen(bname) + 2);
data/s3d-0.2.2.1/apps/s3dfm/fs.c:304: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(sdest, "/");
data/s3d-0.2.2.1/apps/s3dfm/icon.c:71: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).
	} else len = dir->objs.strlen;
data/s3d-0.2.2.1/apps/s3dfm/node.c:23:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	p[strlen(p)+1] = 0; /* extra terminating 0, to be sure */
data/s3d-0.2.2.1/apps/s3dfm/node.c:31:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			s = match + strlen(match); /* select terminating 0 */
data/s3d-0.2.2.1/apps/s3dfm/s3dfm.h:60:11:  [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).
		float   strlen;       /* the length of this string */
data/s3d-0.2.2.1/apps/s3dfm/string.c:20: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).
		j = strlen(d->name) - 1;
data/s3d-0.2.2.1/apps/s3dfm/string.c:67:11:  [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(dest); i < (n - 1); i++) {
data/s3d-0.2.2.1/apps/s3dfm/string.c:80:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dest, src, n);
data/s3d-0.2.2.1/apps/s3dosm/db.c:21:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(clean, dirty, n);
data/s3d-0.2.2.1/apps/s3dosm/db.c:237: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).
		len = strlen(query);
data/s3d-0.2.2.1/apps/s3dosm/db.c:244:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat(qbuf, query, QBUF - qlen - 1);
data/s3d-0.2.2.1/apps/s3dosm/db.c:245: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).
			qlen += strlen(query);
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:71:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		charIndex += strlen("://");
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:90:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
	strncat(requestBuf, "Host: ",
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:91: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).
		sizeof(requestBuf) - 1 - strlen(requestBuf));
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:92:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(requestBuf, host, sizeof(requestBuf) - 1 - strlen(requestBuf));
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:92:53:  [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).
	strncat(requestBuf, host, sizeof(requestBuf) - 1 - strlen(requestBuf));
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:93:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
	strncat(requestBuf, "\r\n",
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:94: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).
		sizeof(requestBuf) - 1 - strlen(requestBuf));
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:98:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat(requestBuf, "Referer: ",
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:99: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).
			sizeof(requestBuf) - 1 - strlen(requestBuf));
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:100:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(requestBuf, referer,
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:101: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).
			sizeof(requestBuf) - 1 - strlen(requestBuf));
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:102:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat(requestBuf, "\r\n",
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:103: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).
			sizeof(requestBuf) - 1 - strlen(requestBuf));
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:107:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat(requestBuf, "User-Agent: ",
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:108: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).
			sizeof(requestBuf) - 1 - strlen(requestBuf));
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:109:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(requestBuf, DEFAULT_USER_AGENT,
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:110: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).
			sizeof(requestBuf) - 1 - strlen(requestBuf));
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:111:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
		strncat(requestBuf, "/",
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:112: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).
			sizeof(requestBuf) - 1 - strlen(requestBuf));
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:113:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(requestBuf, HTTP_FETCHER_VERSION,
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:114: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).
			sizeof(requestBuf) - 1 - strlen(requestBuf));
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:115:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat(requestBuf, "\r\n",
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:116: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).
			sizeof(requestBuf) - 1 - strlen(requestBuf));
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:118:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat(requestBuf, "User-Agent: ",
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:119: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).
			sizeof(requestBuf) - 1 - strlen(requestBuf));
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:120:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(requestBuf, userAgent,
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:121: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).
			sizeof(requestBuf) - 1 - strlen(requestBuf));
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:122:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat(requestBuf, "\r\n",
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:123: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).
			sizeof(requestBuf) - 1 - strlen(requestBuf));
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:126:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat(requestBuf, "Authorization: Basic ",
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:127: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).
			sizeof(requestBuf) - 1 - strlen(requestBuf));
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:128:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(requestBuf, auth,
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:129: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).
			sizeof(requestBuf) - 1 - strlen(requestBuf));
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:130:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat(requestBuf, "\r\n",
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:131: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).
			sizeof(requestBuf) - 1 - strlen(requestBuf));
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:133:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
	strncat(requestBuf, "\r\n",
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:134: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).
		sizeof(requestBuf) - 1 - strlen(requestBuf));
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:143:30:  [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 (write(sock, requestBuf, strlen(requestBuf)) == -1) {
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:203: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).
		ret = sscanf(charIndex + strlen("content-length: "), "%i",
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:254:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(sock, pageBuf + bytesRead, contentLength);
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:323: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).
		agent_len = strlen(newAgent) + 1;
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:331:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(userAgent, newAgent, agent_len);
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:355:17:  [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).
		referer_len = strlen(newReferer) + 1;
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:363:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(referer, newReferer, referer_len);
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:386:8:  [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).
	len = strlen((char *)plain);
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:460: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).
	ptr_len = strlen(ptr) + 1;
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:466:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(*filename, ptr, ptr_len);
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:533:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat(convertedError, originalError,  /* Copy up to %d */
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:535: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).
			sprintf(&convertedError[strlen(convertedError)], "%d", errorInt);
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:537:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat(convertedError, stringIndex,
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:538: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).
				sizeof(convertedError) - 1 - strlen(convertedError));
data/s3d-0.2.2.1/apps/s3dosm/http_fetcher.c:583:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(sock, headerPtr, 1);
data/s3d-0.2.2.1/apps/s3dosm/io.c:85:53:  [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 (strstr(argv[i], ".osm") - argv[i] == (signed)(strlen(argv[i]) - 4)) {
data/s3d-0.2.2.1/apps/s3dosm/io.c:89:60:  [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).
		} else if (strstr(argv[i], ".xml") - argv[i] == (signed)(strlen(argv[i]) - 4)) { /* might be osm or kismet xml */
data/s3d-0.2.2.1/apps/s3dvt/main.c:56:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ret = read(mpipe_out[0], &buffer, 1000);
data/s3d-0.2.2.1/apps/s3dvt/main.c:59:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ret = read(curpty, &buffer, 1000);
data/s3d-0.2.2.1/apps/s3dvt/main.c:486:2:  [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(10000);
data/s3d-0.2.2.1/example/filebrowser.c:74:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(item[n].name, nstr, sizeof(item[n].name));
data/s3d-0.2.2.1/example/filebrowser.c:76:41:  [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 ((0 == strncmp(nstr, ".", 1)) && (strlen(nstr) == 1))
data/s3d-0.2.2.1/example/filebrowser.c:78:38:  [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).
			else if (0 == strncmp(nstr, "..", strlen(nstr) < 2 ? strlen(nstr) : 2))
data/s3d-0.2.2.1/example/filebrowser.c:78:57:  [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).
			else if (0 == strncmp(nstr, "..", strlen(nstr) < 2 ? strlen(nstr) : 2))
data/s3d-0.2.2.1/example/filebrowser.c:82:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(ndir, dir, sizeof(ndir));
data/s3d-0.2.2.1/example/filebrowser.c:84:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
				strncat(ndir, "/",
data/s3d-0.2.2.1/example/filebrowser.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).
					sizeof(ndir) - 1 - strlen(ndir));
data/s3d-0.2.2.1/example/filebrowser.c:86:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
				strncat(ndir, namelist[n]->d_name,
data/s3d-0.2.2.1/example/filebrowser.c:87: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).
					sizeof(ndir) - 1 - strlen(ndir));
data/s3d-0.2.2.1/example/filebrowser.c:94:37:  [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 (0 == strncmp(ext, ".3ds", strlen(ext) < 4 ? strlen(ext) : 4))
data/s3d-0.2.2.1/example/filebrowser.c:94:55:  [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 (0 == strncmp(ext, ".3ds", strlen(ext) < 4 ? strlen(ext) : 4))
data/s3d-0.2.2.1/example/filebrowser.c:96:42:  [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).
						else if (0 == strncmp(ext, ".mp3", strlen(ext) < 4 ? strlen(ext) : 4))
data/s3d-0.2.2.1/example/filebrowser.c:96:60:  [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).
						else if (0 == strncmp(ext, ".mp3", strlen(ext) < 4 ? strlen(ext) : 4))
data/s3d-0.2.2.1/example/filebrowser.c:98:42:  [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).
						else if (0 == strncmp(ext, ".mpg", strlen(ext) < 4 ? strlen(ext) : 4))
data/s3d-0.2.2.1/example/filebrowser.c:98:60:  [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).
						else if (0 == strncmp(ext, ".mpg", strlen(ext) < 4 ? strlen(ext) : 4))
data/s3d-0.2.2.1/example/widgets.c:84: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(age) > 8) age[8] = 0;
data/s3d-0.2.2.1/libs3d/fontselect.c:67: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(fname) > (strlen(mask) + 3)) { /*  there should be enough space for the .ttf ending */
data/s3d-0.2.2.1/libs3d/fontselect.c:67:27:  [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(fname) > (strlen(mask) + 3)) { /*  there should be enough space for the .ttf ending */
data/s3d-0.2.2.1/libs3d/fontselect.c:69:41:  [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 (0 == strncasecmp(fname, mask, strlen(mask))) {
data/s3d-0.2.2.1/libs3d/fontselect.c:71:38:  [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 (0 == strncasecmp(fname + (strlen(fname) - 3), "ttf", 3)) { /*  check if it has a ttf-ending */
data/s3d-0.2.2.1/libs3d/fontselect.c:74:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
								strncpy(good, flist[fnum], 255);
data/s3d-0.2.2.1/libs3d/fontselect.c:76:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
								strncat(good, fname, 255 - strlen(good));
data/s3d-0.2.2.1/libs3d/fontselect.c:76: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).
								strncat(good, fname, 255 - strlen(good));
data/s3d-0.2.2.1/libs3d/fontselect.c:77: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).
								if ((strlen(mask) + 4) == strlen(fname)) {
data/s3d-0.2.2.1/libs3d/fontselect.c:77:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
								if ((strlen(mask) + 4) == strlen(fname)) {
data/s3d-0.2.2.1/libs3d/freetype.c:319:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(oldfontpath, path, sizeof(oldfontpath));
data/s3d-0.2.2.1/libs3d/freetype.c:368:8:  [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).
	len = strlen(str);
data/s3d-0.2.2.1/libs3d/freetype.c:399:8:  [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).
	len = strlen(str);
data/s3d-0.2.2.1/libs3d/io.c:144:3:  [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 string.
		strncpy(urlc, "s3d:///tmp/.s3d:shm/", sizeof(urlc));
data/s3d-0.2.2.1/libs3d/io.c:147: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 string.
			strncpy(urlc, "s3d://127.0.0.1:6066/", sizeof(urlc));
data/s3d-0.2.2.1/libs3d/io.c:153:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(urlc, url, sizeof(urlc));  /*  this should keep buffer overflows away, maybe */
data/s3d-0.2.2.1/libs3d/io.c:162:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, name, sizeof(buf));  /*  copy the name ... */
data/s3d-0.2.2.1/libs3d/io.c:164:30:  [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).
	net_send(S3D_P_C_INIT, buf, strlen(buf));
data/s3d-0.2.2.1/libs3d/modelread.c:46:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(searchpath, OBJSDIR, 1023);
data/s3d-0.2.2.1/libs3d/modelread.c:56:8:  [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(ptr) + strlen(fname)) < 1024) { /* only try if this fits */
data/s3d-0.2.2.1/libs3d/modelread.c:56:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((strlen(ptr) + strlen(fname)) < 1024) { /* only try if this fits */
data/s3d-0.2.2.1/libs3d/tcp.c:107:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		no_read = read(s3d_socket, str, no_left);
data/s3d-0.2.2.1/libs3dw/input.c:194: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).
		if ((len = strlen(input->text)) > 0) {
data/s3d-0.2.2.1/libs3dw/input.c:205: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).
			len = strlen(input->text);
data/s3d-0.2.2.1/libs3dw/surface.c:51:13:  [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).
		textlen = strlen(surface->title);
data/s3d-0.2.2.1/libs3dw/textbox.c:109:17:  [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 ((x < (int)strlen(rest)) && ((y >= 0) && y < textbox->n_lineoids)) { /* don't bother, if it's not visible anyway */
data/s3d-0.2.2.1/libs3dw/textbox.c:111: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).
			while ((strlen(rest) > 0) && (s3d_strlen(rest) > width))
data/s3d-0.2.2.1/libs3dw/textbox.c:112: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).
				rest[strlen(rest)-1] = 0; /* remove last character and try again until it fits */
data/s3d-0.2.2.1/libs3dw/textbox.c:113:8:  [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(rest) > 0) {
data/s3d-0.2.2.1/server/event.c:60:47:  [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).
	prot_com_out(p, S3D_P_S_INIT, (uint8_t *) s, strlen(S3D_SERVER_NAME) + 4);
data/s3d-0.2.2.1/server/event.c:154:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(mo.name, ap->name, sizeof(mo.name));
data/s3d-0.2.2.1/server/event.c:159: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 string.
			strncpy(mo.name, "sys_camera0", sizeof(mo.name));
data/s3d-0.2.2.1/server/event.c:163: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 string.
			strncpy(mo.name, "sys_pointer0", sizeof(mo.name));
data/s3d-0.2.2.1/server/mcp.c:61:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(mo.name, ap->name, sizeof(mo.name));
data/s3d-0.2.2.1/server/process.c:49:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(p->name, name, sizeof(p->name));
data/s3d-0.2.2.1/server/process.c:218:2:  [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 string.
	strncpy(mcp_p->name, "mcp", sizeof(mcp_p->name));
data/s3d-0.2.2.1/server/proto.c:51:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(name, (char *)buf, i);
data/s3d-0.2.2.1/server/tcp.c:194:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		no_read = read(sock, str, no_left);

ANALYSIS SUMMARY:

Hits = 444
Lines analyzed = 27505 in approximately 1.50 seconds (18374 lines/second)
Physical Source Lines of Code (SLOC) = 21113
Hits@level = [0] 295 [1] 177 [2] 227 [3]   7 [4]  33 [5]   0
Hits@level+ = [0+] 739 [1+] 444 [2+] 267 [3+]  40 [4+]  33 [5+]   0
Hits/KSLOC@level+ = [0+] 35.0021 [1+] 21.0297 [2+] 12.6462 [3+] 1.89457 [4+] 1.56302 [5+]   0
Dot directories skipped = 2 (--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.