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/eeshow-0.git20170731/db/doc.c
Examining data/eeshow-0.git20170731/db/doc.h
Examining data/eeshow-0.git20170731/file/file.c
Examining data/eeshow-0.git20170731/file/file.h
Examining data/eeshow-0.git20170731/file/git-file.c
Examining data/eeshow-0.git20170731/file/git-file.h
Examining data/eeshow-0.git20170731/file/git-hist.c
Examining data/eeshow-0.git20170731/file/git-hist.h
Examining data/eeshow-0.git20170731/file/git-util.c
Examining data/eeshow-0.git20170731/file/git-util.h
Examining data/eeshow-0.git20170731/gfx/cro.c
Examining data/eeshow-0.git20170731/gfx/cro.h
Examining data/eeshow-0.git20170731/gfx/diff.c
Examining data/eeshow-0.git20170731/gfx/diff.h
Examining data/eeshow-0.git20170731/gfx/fig.c
Examining data/eeshow-0.git20170731/gfx/fig.h
Examining data/eeshow-0.git20170731/gfx/gfx.c
Examining data/eeshow-0.git20170731/gfx/gfx.h
Examining data/eeshow-0.git20170731/gfx/misc.c
Examining data/eeshow-0.git20170731/gfx/misc.h
Examining data/eeshow-0.git20170731/gfx/pdftoc.c
Examining data/eeshow-0.git20170731/gfx/pdftoc.h
Examining data/eeshow-0.git20170731/gfx/record.c
Examining data/eeshow-0.git20170731/gfx/record.h
Examining data/eeshow-0.git20170731/gfx/style.c
Examining data/eeshow-0.git20170731/gfx/style.h
Examining data/eeshow-0.git20170731/gfx/text.c
Examining data/eeshow-0.git20170731/gfx/text.h
Examining data/eeshow-0.git20170731/gui/aoi.c
Examining data/eeshow-0.git20170731/gui/aoi.h
Examining data/eeshow-0.git20170731/gui/clipboard.c
Examining data/eeshow-0.git20170731/gui/clipboard.h
Examining data/eeshow-0.git20170731/gui/common.h
Examining data/eeshow-0.git20170731/gui/comp.c
Examining data/eeshow-0.git20170731/gui/fmt-pango.c
Examining data/eeshow-0.git20170731/gui/fmt-pango.h
Examining data/eeshow-0.git20170731/gui/glabel.c
Examining data/eeshow-0.git20170731/gui/gui.c
Examining data/eeshow-0.git20170731/gui/gui.h
Examining data/eeshow-0.git20170731/gui/help.c
Examining data/eeshow-0.git20170731/gui/help.h
Examining data/eeshow-0.git20170731/gui/history.c
Examining data/eeshow-0.git20170731/gui/icons.c
Examining data/eeshow-0.git20170731/gui/icons.h
Examining data/eeshow-0.git20170731/gui/index.c
Examining data/eeshow-0.git20170731/gui/input.c
Examining data/eeshow-0.git20170731/gui/input.h
Examining data/eeshow-0.git20170731/gui/over.c
Examining data/eeshow-0.git20170731/gui/over.h
Examining data/eeshow-0.git20170731/gui/pop.c
Examining data/eeshow-0.git20170731/gui/pop.h
Examining data/eeshow-0.git20170731/gui/progress.c
Examining data/eeshow-0.git20170731/gui/render.c
Examining data/eeshow-0.git20170731/gui/sheet.c
Examining data/eeshow-0.git20170731/gui/style.c
Examining data/eeshow-0.git20170731/gui/style.h
Examining data/eeshow-0.git20170731/gui/timer.c
Examining data/eeshow-0.git20170731/gui/timer.h
Examining data/eeshow-0.git20170731/gui/view.c
Examining data/eeshow-0.git20170731/gui/view.h
Examining data/eeshow-0.git20170731/gui/viewer.c
Examining data/eeshow-0.git20170731/gui/viewer.h
Examining data/eeshow-0.git20170731/kicad/delta.c
Examining data/eeshow-0.git20170731/kicad/delta.h
Examining data/eeshow-0.git20170731/kicad/dwg.c
Examining data/eeshow-0.git20170731/kicad/dwg.h
Examining data/eeshow-0.git20170731/kicad/ext.c
Examining data/eeshow-0.git20170731/kicad/ext.h
Examining data/eeshow-0.git20170731/kicad/kicad.h
Examining data/eeshow-0.git20170731/kicad/lib-parse.c
Examining data/eeshow-0.git20170731/kicad/lib-render.c
Examining data/eeshow-0.git20170731/kicad/lib.h
Examining data/eeshow-0.git20170731/kicad/pl-common.h
Examining data/eeshow-0.git20170731/kicad/pl-parse.c
Examining data/eeshow-0.git20170731/kicad/pl-render.c
Examining data/eeshow-0.git20170731/kicad/pl.h
Examining data/eeshow-0.git20170731/kicad/pro.c
Examining data/eeshow-0.git20170731/kicad/pro.h
Examining data/eeshow-0.git20170731/kicad/sch-parse.c
Examining data/eeshow-0.git20170731/kicad/sch-render.c
Examining data/eeshow-0.git20170731/kicad/sch.h
Examining data/eeshow-0.git20170731/kicad/sexpr.c
Examining data/eeshow-0.git20170731/kicad/sexpr.h
Examining data/eeshow-0.git20170731/main.h
Examining data/eeshow-0.git20170731/main/common.c
Examining data/eeshow-0.git20170731/main/common.h
Examining data/eeshow-0.git20170731/main/eediff.c
Examining data/eeshow-0.git20170731/main/eeplot.c
Examining data/eeshow-0.git20170731/main/eeshow.c
Examining data/eeshow-0.git20170731/main/eetest.c
Examining data/eeshow-0.git20170731/misc/diag.c
Examining data/eeshow-0.git20170731/misc/diag.h
Examining data/eeshow-0.git20170731/misc/util.c
Examining data/eeshow-0.git20170731/misc/util.h
Examining data/eeshow-0.git20170731/page_layout_default_description.cpp
Examining data/eeshow-0.git20170731/version.c
Examining data/eeshow-0.git20170731/version.h

FINAL RESULTS:

data/eeshow-0.git20170731/file/file.c:86:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(res + len, name);
data/eeshow-0.git20170731/file/git-file.c:141:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(tmp, "%s/%s", cwd, path);
data/eeshow-0.git20170731/file/git-file.c:221:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(tmp2, "%s/%s", real, tail);
data/eeshow-0.git20170731/file/git-hist.c:381:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(s + len_s, add);
data/eeshow-0.git20170731/gfx/pdftoc.h:26:27:  [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.
    __attribute__((format(printf, 2, 3)));
data/eeshow-0.git20170731/gui/clipboard.c:42:6:  [4] (shell) popen:
  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.
	p = popen(cmd, "w");
data/eeshow-0.git20170731/gui/fmt-pango.h:23:27:  [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.
    __attribute__((format(printf, 1, 2)));
data/eeshow-0.git20170731/gui/gui.c:555:4:  [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(*commands);
data/eeshow-0.git20170731/gui/viewer.c:38:2:  [4] (shell) execlp:
  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.
	execlp(v, v, url, NULL);
data/eeshow-0.git20170731/kicad/lib-parse.c:99: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(tmp, s + 1);
data/eeshow-0.git20170731/main/common.c:35:2:  [4] (shell) execvp:
  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.
	execvp("gdb", args);
data/eeshow-0.git20170731/misc/diag.c:99:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/eeshow-0.git20170731/misc/diag.c:126:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/eeshow-0.git20170731/misc/diag.c:140:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/eeshow-0.git20170731/misc/diag.h:67:27:  [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.
    __attribute__((format(printf, 1, 2)));
data/eeshow-0.git20170731/misc/diag.h:75:27:  [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.
    __attribute__((format(printf, 1, 2)));
data/eeshow-0.git20170731/misc/diag.h:84:27:  [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.
    __attribute__((format(printf, 1, 2)));
data/eeshow-0.git20170731/misc/diag.h:92:27:  [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.
    __attribute__((format(printf, 2, 3)));
data/eeshow-0.git20170731/misc/util.h:66:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, __FILE__ ":%d: unsupported: " s "\n", __LINE__)
data/eeshow-0.git20170731/misc/util.h:76:27:  [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.
    __attribute__((format(printf, 2, 0)));
data/eeshow-0.git20170731/misc/util.h:78:27:  [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.
    __attribute__((format(printf, 2, 3)));
data/eeshow-0.git20170731/file/git-file.c:214:9:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	real = realpath(tmp, NULL);
data/eeshow-0.git20170731/file/git-util.c:134:8:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	tmp = realpath(path, NULL);
data/eeshow-0.git20170731/gfx/cro.c:566:14:  [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 ((c = getopt(argc, argv, opts)) != EOF)
data/eeshow-0.git20170731/gfx/diff.c:223:14:  [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 ((c = getopt(argc, argv, opts)) != EOF)
data/eeshow-0.git20170731/gfx/fig.c:336:14:  [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 ((c = getopt(argc, argv, opts)) != EOF)
data/eeshow-0.git20170731/gui/viewer.c:30:6:  [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.
	v = getenv(VIEWER_VAR);
data/eeshow-0.git20170731/main/eediff.c:82:14:  [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 ((c = getopt(argc, argv, opts)) != EOF)
data/eeshow-0.git20170731/main/eeplot.c:163:14:  [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 ((c = getopt(argc, argv, opts)) != EOF)
data/eeshow-0.git20170731/main/eeshow.c:80:14:  [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 ((c = getopt(argc, argv, "1d:hvC:E:LN:OPV")) != EOF)
data/eeshow-0.git20170731/main/eetest.c:73:14:  [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 ((c = getopt(argc, argv, "hvC:F:H:SV")) != EOF)
data/eeshow-0.git20170731/db/doc.c:64: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(new, start, last - start + 1);
data/eeshow-0.git20170731/file/file.c:85: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(res, base, len);
data/eeshow-0.git20170731/file/file.c:106:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file->file = fopen(tmp, "r");
data/eeshow-0.git20170731/file/file.c:217:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file->file = fopen(name, "r");
data/eeshow-0.git20170731/file/git-file.c:347: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(tmp, s, len);
data/eeshow-0.git20170731/file/git-hist.c:556: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((*h)->threads, t, sizeof(const struct vcs_hist *) * n);
data/eeshow-0.git20170731/gfx/fig.c:191:38:  [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 void fig_tag(void *ctx, const char *s,
data/eeshow-0.git20170731/gfx/fig.c:303:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, eq + 1, value_len);
data/eeshow-0.git20170731/gfx/fig.c:359:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fig->file = fopen(output, "w");
data/eeshow-0.git20170731/gfx/fig.c:370:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen(template, "r");
data/eeshow-0.git20170731/gfx/gfx.c:96:37:  [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.
void gfx_tag(struct gfx *gfx, const char *s,
data/eeshow-0.git20170731/gfx/gfx.h:49:32:  [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.
	void (*tag)(void *ctx,  const char *s,
data/eeshow-0.git20170731/gfx/gfx.h:80:37:  [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.
void gfx_tag(struct gfx *gfx, const char *s,
data/eeshow-0.git20170731/gfx/pdftoc.c:102:14:  [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).
	ctx->file = fopen(file, "w");
data/eeshow-0.git20170731/gfx/pdftoc.c:228: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, ctx->buf + ctx->offset, ctx->left);
data/eeshow-0.git20170731/gfx/pdftoc.c:229: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 + ctx->left, data, length);
data/eeshow-0.git20170731/gfx/record.c:194: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->u.poly.vx, x, size);
data/eeshow-0.git20170731/gfx/record.c:195: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->u.poly.vy, y, size);
data/eeshow-0.git20170731/gui/fmt-pango.c:45: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(tmp_fmt, p, q - p + 1);
data/eeshow-0.git20170731/gui/fmt-pango.c:71:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
						strcpy(u, "<");
data/eeshow-0.git20170731/gui/fmt-pango.c:75:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
						strcpy(u, ">");
data/eeshow-0.git20170731/gui/fmt-pango.c:79:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
						strcpy(u, "&");
data/eeshow-0.git20170731/gui/fmt-pango.c:92:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(res, tmp, len + extra);
data/eeshow-0.git20170731/gui/fmt-pango.c:101:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(res, tmp, len);
data/eeshow-0.git20170731/gui/fmt-pango.c:107:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(res, tmp, len);
data/eeshow-0.git20170731/gui/icons.c:49:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data, read_ctx->data, length);
data/eeshow-0.git20170731/kicad/pl-render.c:153:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1000]; /* @@@ enough :) */
data/eeshow-0.git20170731/kicad/pl-render.c:163: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(s + len, buf, size);
data/eeshow-0.git20170731/kicad/pl-render.c:273: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(res + size, s, p - s);
data/eeshow-0.git20170731/kicad/pl-render.c:276: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(res + size, cx, len);
data/eeshow-0.git20170731/kicad/pl-render.c:283: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(res + size, s, len + 1);
data/eeshow-0.git20170731/kicad/pro.c:89:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
				strcat(s, ".lib");
data/eeshow-0.git20170731/kicad/pro.c:137:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(dot, ".sch");
data/eeshow-0.git20170731/kicad/sch-parse.c:172: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(s, line + pos, len);
data/eeshow-0.git20170731/kicad/sch-parse.c:190: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(s + len, "%c", 'A' + comp->unit - 1);
data/eeshow-0.git20170731/kicad/sch-parse.c:192: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(s + len, "%c%c",
data/eeshow-0.git20170731/kicad/sexpr.c:102: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(e->s + old, ctx->p, new);
data/eeshow-0.git20170731/main/common.c:34: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(args + 3, argv + 2, sizeof(char *) * (argc - 1));
data/eeshow-0.git20170731/main/eeshow.c:92: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).
			comp_pop_width = atoi(optarg);
data/eeshow-0.git20170731/main/eeshow.c:103: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).
			limit = atoi(optarg);
data/eeshow-0.git20170731/file/file.c:84: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).
	res = alloc_size(len + strlen(name) + 1);
data/eeshow-0.git20170731/file/git-file.c:140:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		tmp = alloc_size(strlen(cwd) + 1 + strlen(path) + 1);
data/eeshow-0.git20170731/file/git-file.c:140: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).
		tmp = alloc_size(strlen(cwd) + 1 + strlen(path) + 1);
data/eeshow-0.git20170731/file/git-file.c:220:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		tmp2 = alloc_size(strlen(real) + 1 + strlen(tail) + 1);
data/eeshow-0.git20170731/file/git-file.c:220: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).
		tmp2 = alloc_size(strlen(real) + 1 + strlen(tail) + 1);
data/eeshow-0.git20170731/file/git-file.c:291: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(repo_path);
data/eeshow-0.git20170731/file/git-hist.c:378: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_s = strlen(s);
data/eeshow-0.git20170731/file/git-hist.c:379: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).
	len_add = strlen(add);
data/eeshow-0.git20170731/file/git-util.c:149:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(tmp, ".");
data/eeshow-0.git20170731/gfx/fig.c:300: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).
		value_len = strlen(eq + 1);
data/eeshow-0.git20170731/gfx/fig.c:302:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(p + var_len + 2) + 1);
data/eeshow-0.git20170731/kicad/lib-parse.c:96: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).
		char *tmp = alloc_size(strlen(s) + 1);
data/eeshow-0.git20170731/kicad/pl-render.c:88: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(s);
data/eeshow-0.git20170731/kicad/pl-render.c:103: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).
			arg = to = alloc_size(strlen(p) + 1);
data/eeshow-0.git20170731/kicad/pl-render.c:271: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(cx);
data/eeshow-0.git20170731/kicad/pl-render.c:281: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(s);
data/eeshow-0.git20170731/kicad/pl-render.c:294: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).
	unsigned len = strlen(s);
data/eeshow-0.git20170731/kicad/pro.c:88: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).
				s = realloc_size(s, strlen(s) + 5);
data/eeshow-0.git20170731/kicad/sch-parse.c:187: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(txt->s);
data/eeshow-0.git20170731/kicad/sch-parse.c:698:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			s = alloc_size(strlen(line) + 1);
data/eeshow-0.git20170731/kicad/sexpr.c:87: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).
		old = strlen(e->s);
data/eeshow-0.git20170731/main/eediff.c:62:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    , name, (int) strlen(name) + 1, "", name, name);
data/eeshow-0.git20170731/main/eeplot.c:77: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).
		n = strlen(ext);
data/eeshow-0.git20170731/main/eeplot.c:86: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).
			    strlen((*ops)->ext[i]) == n)
data/eeshow-0.git20170731/main/eeplot.c:133:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    , name, (int) strlen(name) + 1, "", name, name);
data/eeshow-0.git20170731/misc/util.h:71: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).
	return !strncmp(s, prefix, strlen(prefix));

ANALYSIS SUMMARY:

Hits = 97
Lines analyzed = 19123 in approximately 0.47 seconds (40459 lines/second)
Physical Source Lines of Code (SLOC) = 13424
Hits@level = [0] 118 [1]  26 [2]  40 [3]  10 [4]  21 [5]   0
Hits@level+ = [0+] 215 [1+]  97 [2+]  71 [3+]  31 [4+]  21 [5+]   0
Hits/KSLOC@level+ = [0+] 16.0161 [1+] 7.22586 [2+] 5.28903 [3+] 2.3093 [4+] 1.56436 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.