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/genius-1.0.25/ve/ve-i18n.h
Examining data/genius-1.0.25/ve/ve-misc.c
Examining data/genius-1.0.25/ve/ve-misc.h
Examining data/genius-1.0.25/ve/ve-config.c
Examining data/genius-1.0.25/ve/ve-config.h
Examining data/genius-1.0.25/ve/ve-nongnome.c
Examining data/genius-1.0.25/ve/vicious.h
Examining data/genius-1.0.25/ve/ve-miscui.c
Examining data/genius-1.0.25/ve/ve-miscui.h
Examining data/genius-1.0.25/ve/viciousui.h
Examining data/genius-1.0.25/ve/test-ve-config.c
Examining data/genius-1.0.25/gtkextra/gtkextra.h
Examining data/genius-1.0.25/gtkextra/gtkextra-compat.h
Examining data/genius-1.0.25/gtkextra/gtkpsfont.h
Examining data/genius-1.0.25/gtkextra/gtkplot.h
Examining data/genius-1.0.25/gtkextra/gtkplot3d.h
Examining data/genius-1.0.25/gtkextra/gtkplotarray.h
Examining data/genius-1.0.25/gtkextra/gtkplotbar.h
Examining data/genius-1.0.25/gtkextra/gtkplotbox.h
Examining data/genius-1.0.25/gtkextra/gtkplotcandle.h
Examining data/genius-1.0.25/gtkextra/gtkplotcanvas.h
Examining data/genius-1.0.25/gtkextra/gtkplotcanvasellipse.h
Examining data/genius-1.0.25/gtkextra/gtkplotcanvasline.h
Examining data/genius-1.0.25/gtkextra/gtkplotcanvaspixmap.h
Examining data/genius-1.0.25/gtkextra/gtkplotcanvasplot.h
Examining data/genius-1.0.25/gtkextra/gtkplotcanvasrectangle.h
Examining data/genius-1.0.25/gtkextra/gtkplotcanvastext.h
Examining data/genius-1.0.25/gtkextra/gtkplotcsurface.h
Examining data/genius-1.0.25/gtkextra/gtkplotdata.h
Examining data/genius-1.0.25/gtkextra/gtkplotdt.h
Examining data/genius-1.0.25/gtkextra/gtkplotflux.h
Examining data/genius-1.0.25/gtkextra/gtkplotcairo.h
Examining data/genius-1.0.25/gtkextra/gtkplotpc.h
Examining data/genius-1.0.25/gtkextra/gtkplotpixmap.h
Examining data/genius-1.0.25/gtkextra/gtkplotpolar.h
Examining data/genius-1.0.25/gtkextra/gtkplotprint.h
Examining data/genius-1.0.25/gtkextra/gtkplotps.h
Examining data/genius-1.0.25/gtkextra/gtkplotsurface.h
Examining data/genius-1.0.25/gtkextra/gtkextra-marshal.c
Examining data/genius-1.0.25/gtkextra/gtkextra-marshal.h
Examining data/genius-1.0.25/gtkextra/gtkextratypebuiltins.c
Examining data/genius-1.0.25/gtkextra/gtkextratypebuiltins.h
Examining data/genius-1.0.25/gtkextra/gtkextra.c
Examining data/genius-1.0.25/gtkextra/gtkpsfont.c
Examining data/genius-1.0.25/gtkextra/gtkplot.c
Examining data/genius-1.0.25/gtkextra/gtkplot3d.c
Examining data/genius-1.0.25/gtkextra/gtkplotarray.c
Examining data/genius-1.0.25/gtkextra/gtkplotbar.c
Examining data/genius-1.0.25/gtkextra/gtkplotbox.c
Examining data/genius-1.0.25/gtkextra/gtkplotcandle.c
Examining data/genius-1.0.25/gtkextra/gtkplotcanvas.c
Examining data/genius-1.0.25/gtkextra/gtkplotcanvasellipse.c
Examining data/genius-1.0.25/gtkextra/gtkplotcanvasline.c
Examining data/genius-1.0.25/gtkextra/gtkplotcanvaspixmap.c
Examining data/genius-1.0.25/gtkextra/gtkplotcanvasplot.c
Examining data/genius-1.0.25/gtkextra/gtkplotcanvasrectangle.c
Examining data/genius-1.0.25/gtkextra/gtkplotcanvastext.c
Examining data/genius-1.0.25/gtkextra/gtkplotcsurface.c
Examining data/genius-1.0.25/gtkextra/gtkplotdata.c
Examining data/genius-1.0.25/gtkextra/gtkplotdt.c
Examining data/genius-1.0.25/gtkextra/gtkplotflux.c
Examining data/genius-1.0.25/gtkextra/gtkplotcairo.c
Examining data/genius-1.0.25/gtkextra/gtkplotpc.c
Examining data/genius-1.0.25/gtkextra/gtkplotpixmap.c
Examining data/genius-1.0.25/gtkextra/gtkplotpolar.c
Examining data/genius-1.0.25/gtkextra/gtkplotprint.c
Examining data/genius-1.0.25/gtkextra/gtkplotps.c
Examining data/genius-1.0.25/gtkextra/gtkplotsurface.c
Examining data/genius-1.0.25/src/genius-i18n.h
Examining data/genius-1.0.25/src/plug_api.h
Examining data/genius-1.0.25/src/geloutput.h
Examining data/genius-1.0.25/src/mpwrap.h
Examining data/genius-1.0.25/src/mpzextra.h
Examining data/genius-1.0.25/src/structs.h
Examining data/genius-1.0.25/src/matrix.h
Examining data/genius-1.0.25/src/matrixw.h
Examining data/genius-1.0.25/src/matop.h
Examining data/genius-1.0.25/src/compil.h
Examining data/genius-1.0.25/src/utype.h
Examining data/genius-1.0.25/src/dict.h
Examining data/genius-1.0.25/src/lexer.h
Examining data/genius-1.0.25/src/eval.h
Examining data/genius-1.0.25/src/lexer.c
Examining data/genius-1.0.25/src/parse.c
Examining data/genius-1.0.25/src/parse.h
Examining data/genius-1.0.25/src/testplugin.c
Examining data/genius-1.0.25/src/binreloc.c
Examining data/genius-1.0.25/src/binreloc.h
Examining data/genius-1.0.25/src/calc.c
Examining data/genius-1.0.25/src/calc.h
Examining data/genius-1.0.25/src/eval.c
Examining data/genius-1.0.25/src/genius.c
Examining data/genius-1.0.25/src/util.c
Examining data/genius-1.0.25/src/util.h
Examining data/genius-1.0.25/src/dict.c
Examining data/genius-1.0.25/src/funclib.c
Examining data/genius-1.0.25/src/funclib.h
Examining data/genius-1.0.25/src/symbolic.h
Examining data/genius-1.0.25/src/symbolic.c
Examining data/genius-1.0.25/src/mpwrap.c
Examining data/genius-1.0.25/src/mpzextra.c
Examining data/genius-1.0.25/src/matrix.c
Examining data/genius-1.0.25/src/matrixw.c
Examining data/genius-1.0.25/src/matop.c
Examining data/genius-1.0.25/src/compil.c
Examining data/genius-1.0.25/src/parseutil.h
Examining data/genius-1.0.25/src/parseutil.c
Examining data/genius-1.0.25/src/inter.c
Examining data/genius-1.0.25/src/inter.h
Examining data/genius-1.0.25/src/plugin.c
Examining data/genius-1.0.25/src/plugin.h
Examining data/genius-1.0.25/src/plugread.c
Examining data/genius-1.0.25/src/plugread.h
Examining data/genius-1.0.25/src/genius_lists.c
Examining data/genius-1.0.25/src/utype.c
Examining data/genius-1.0.25/src/extra.h
Examining data/genius-1.0.25/src/geloutput.c
Examining data/genius-1.0.25/src/genius-readline-helper.c
Examining data/genius-1.0.25/src/gnome-genius.c
Examining data/genius-1.0.25/src/gnome-genius.h
Examining data/genius-1.0.25/src/examples.c
Examining data/genius-1.0.25/src/examples.h
Examining data/genius-1.0.25/src/graphing.h
Examining data/genius-1.0.25/src/graphing.c
Examining data/genius-1.0.25/lib/library-strings.c

FINAL RESULTS:

data/genius-1.0.25/src/binreloc.c:77:10:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		size = readlink (path2, path, buf_size - 1);
data/genius-1.0.25/src/calc.c:1896:4:  [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 (outfile,
data/genius-1.0.25/src/genius.c:150:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access (file, F_OK) == 0) {
data/genius-1.0.25/src/genius.c:180:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if G_UNLIKELY (access (file, R_OK) != 0) {
data/genius-1.0.25/src/genius.c:183:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if G_UNLIKELY (access (file, R_OK) != 0) {
data/genius-1.0.25/src/genius.c:370:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    access ("genius.c", F_OK) == 0 &&
data/genius-1.0.25/src/genius.c:371:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    access ("../lib/lib.cgel", F_OK) == 0) {
data/genius-1.0.25/src/genius.c:594:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			if (access (file, F_OK) != 0) {
data/genius-1.0.25/src/gnome-genius.c:1649:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access (file, F_OK) == 0) {
data/genius-1.0.25/src/gnome-genius.c:1685:14:  [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.
		FILE *fp = popen (command, "r");
data/genius-1.0.25/src/gnome-genius.c:2657:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    access (s, F_OK) != 0) {
data/genius-1.0.25/src/gnome-genius.c:4550:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    access ("./genius-readline-helper-fifo", X_OK) == 0)
data/genius-1.0.25/src/gnome-genius.c:4555:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (foo == NULL && access (file, X_OK) == 0)
data/genius-1.0.25/src/gnome-genius.c:4565:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access (foo, X_OK) != 0) {
data/genius-1.0.25/src/gnome-genius.c:4572:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			if (access (foo, X_OK) != 0) {
data/genius-1.0.25/src/gnome-genius.c:4932:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    access ("genius.c", F_OK) == 0 &&
data/genius-1.0.25/src/gnome-genius.c:4933:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    access ("../lib/lib.cgel", F_OK) == 0) {
data/genius-1.0.25/src/gnome-genius.c:4945:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access (file, F_OK) != 0) {
data/genius-1.0.25/src/gnome-genius.c:4955:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access (file, F_OK) != 0) {
data/genius-1.0.25/src/gnome-genius.c:4985:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access (file, F_OK) == 0)
data/genius-1.0.25/src/graphing.c:915:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		if (system (cmdstring) < 0) {
data/genius-1.0.25/src/graphing.c:989:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access (s, F_OK) == 0 &&
data/genius-1.0.25/src/graphing.c:1130:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access (s, F_OK) == 0 &&
data/genius-1.0.25/src/parse.c:1382:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/genius-1.0.25/src/plugin.c:147:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access (fname, R_OK) == 0)
data/genius-1.0.25/src/plugin.c:150:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		else if (access (plug->file, R_OK) == 0)
data/genius-1.0.25/src/util.c:51: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(s,p);
data/genius-1.0.25/src/util.c:67: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(p2,p);
data/genius-1.0.25/src/util.c:68: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(p2,s);
data/genius-1.0.25/ve/ve-misc.c:79:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access (bin, only_existance ? F_OK : X_OK) == 0) {
data/genius-1.0.25/ve/ve-misc.c:234:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access (filename, F_OK) == 0)
data/genius-1.0.25/ve/ve-misc.c:243:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access (s, F_OK) == 0)
data/genius-1.0.25/ve/ve-nongnome.c:57:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			if (access (s, F_OK) == 0) {
data/genius-1.0.25/ve/ve-nongnome.c:65:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			if (access (s, F_OK) == 0) {
data/genius-1.0.25/src/examples.c:218:31:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	dir_name = g_build_filename (g_get_home_dir (),
data/genius-1.0.25/src/genius.c:612:28:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
		file = g_build_filename (g_get_home_dir (), ".geniusinit",NULL);
data/genius-1.0.25/src/gnome-genius.c:1904:21:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	const char *home = g_get_home_dir ();
data/genius-1.0.25/src/gnome-genius.c:4269:21:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	const char *home = g_get_home_dir ();
data/genius-1.0.25/src/gnome-genius.c:4718:6:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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 (g_get_home_dir () != NULL) {
data/genius-1.0.25/src/gnome-genius.c:4720:12:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
					      g_get_home_dir (),
data/genius-1.0.25/src/gnome-genius.c:4733:19:  [3] (random) g_random_int:
  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.
					      (guint)g_random_int (),
data/genius-1.0.25/src/gnome-genius.c:5197:27:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	file = g_build_filename (g_get_home_dir (), ".geniusinit",NULL);
data/genius-1.0.25/src/graphing.c:871:30:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	tmpfile = g_build_filename (g_get_tmp_dir (), "genius-ps-XXXXXX", NULL);
data/genius-1.0.25/src/graphing.c:1005:31:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
		tmpfile = g_build_filename (g_get_tmp_dir (), "genius-ps-XXXXXX", NULL);
data/genius-1.0.25/src/graphing.c:1012:31:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
		tmpfile = g_build_filename (g_get_tmp_dir (), "genius-ps-XXXXXX", NULL);
data/genius-1.0.25/src/graphing.c:4562:13:  [3] (random) g_random_double_range:
  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.
		fuzz[i] = g_random_double_range (-maxfuzz, maxfuzz);
data/genius-1.0.25/src/mpwrap.c:2450:32:  [3] (random) g_random_int:
  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.
		gmp_randseed_ui (rand_state, g_random_int ());
data/genius-1.0.25/src/mpwrap.c:2505:21:  [3] (random) g_random_int_range:
  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.
		mpwl_set_ui (rop, g_random_int_range (0, range));
data/genius-1.0.25/src/plugin.c:124:31:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	dir_name = g_build_filename (g_get_home_dir (),
data/genius-1.0.25/src/plugin.c:246:28:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
		path = g_build_filename (g_get_home_dir (),
data/genius-1.0.25/src/plugin.c:249:28:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
		path = g_build_filename (g_get_home_dir (),
data/genius-1.0.25/src/plugin.c:262:22:  [3] (random) g_random_int:
  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.
					 (unsigned long)g_random_int (),
data/genius-1.0.25/src/plugin.c:263:22:  [3] (random) g_random_int:
  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.
					 (unsigned long)g_random_int ());
data/genius-1.0.25/src/plugin.c:299:28:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
		path = g_build_filename (g_get_home_dir (),
data/genius-1.0.25/src/plugin.c:302:28:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
		path = g_build_filename (g_get_home_dir (),
data/genius-1.0.25/gtkextra/gtkplotcairo.c:914:33:  [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).
           insert_char = (gchar)atoi(num);
data/genius-1.0.25/gtkextra/gtkplotdt.c:114: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(nodes,data->nodes,sizeof(GtkPlotDTnode)*data->node_cnt);
data/genius-1.0.25/gtkextra/gtkplotdt.c:294: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(n, &node, sizeof(GtkPlotDTnode));
data/genius-1.0.25/gtkextra/gtkplotdt.c:914: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(&(data->tmp_nodes[node_idx]),n,sizeof(GtkPlotDTnode));
data/genius-1.0.25/gtkextra/gtkplotps.c:500:18:  [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 ((psout = fopen(ps->psname, "w")) == NULL){
data/genius-1.0.25/gtkextra/gtkplotps.c:1107:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		  i = atoi(num);
data/genius-1.0.25/src/binreloc.c:121:6:  [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).
	f = fopen ("/proc/self/maps", "r");
data/genius-1.0.25/src/binreloc.c:187: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 *address_string, line[SIZE], *found;
data/genius-1.0.25/src/binreloc.c:192:6:  [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).
	f = fopen ("/proc/self/maps", "r");
data/genius-1.0.25/src/binreloc.c:252: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 (address_string, "0x", 2);
data/genius-1.0.25/src/binreloc.c:253: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 (address_string + 2, start_addr, len);
data/genius-1.0.25/src/binreloc.c:257: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 (address_string, "0x", 2);
data/genius-1.0.25/src/binreloc.c:258: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 (address_string + 2, end_addr, len);
data/genius-1.0.25/src/calc.c:2459: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 (newfile, "r");
data/genius-1.0.25/src/calc.c:3011:21:  [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 G_LIKELY ((fp = fopen(newfile,"r"))) {
data/genius-1.0.25/src/calc.c:3038:21:  [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 G_LIKELY ((fp = fopen(newfile,"r"))) {
data/genius-1.0.25/src/calc.c:3039: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[6];
data/genius-1.0.25/src/calc.c:3131: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[4096] = "";
data/genius-1.0.25/src/dict.c:718: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(old,_new,sizeof(GelEFunc));
data/genius-1.0.25/src/eval.c:485: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 (n->val.value, num, sizeof(struct _mpw_t));
data/genius-1.0.25/src/eval.c:531: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 (n->val.value, num, sizeof (struct _mpw_t));
data/genius-1.0.25/src/eval.c:669: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 (nn, n, sizeof(GelETree));
data/genius-1.0.25/src/eval.c:818: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(to,from,sizeof(GelETree));
data/genius-1.0.25/src/examples.c:95: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[512];
data/genius-1.0.25/src/examples.c:101: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 (f, "r");
data/genius-1.0.25/src/genius-readline-helper.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[4096];
data/genius-1.0.25/src/genius-readline-helper.c:164: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).
	infp = fopen (argv[1], "r");
data/genius-1.0.25/src/genius-readline-helper.c:171: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).
	outfd = open (argv[2], O_WRONLY);
data/genius-1.0.25/src/genius.c:197: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 *argv[3];
data/genius-1.0.25/src/genius.c:238:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[256];
data/genius-1.0.25/src/genius.c:277:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[256];
data/genius-1.0.25/src/genius.c:296: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[2048];
data/genius-1.0.25/src/genius.c:636: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).
			fp = fopen(files->data,"r");
data/genius-1.0.25/src/genius.c:707:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				fp = fopen(files->data,"r");
data/genius-1.0.25/src/gnome-genius.c:429:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static char *groups[2] = {
data/genius-1.0.25/src/gnome-genius.c:1679:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[256];
data/genius-1.0.25/src/gnome-genius.c:1723: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 *argv[3];
data/genius-1.0.25/src/gnome-genius.c:3207: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[4096];
data/genius-1.0.25/src/gnome-genius.c:4268: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[256];
data/genius-1.0.25/src/gnome-genius.c:4536: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 *argv[6];
data/genius-1.0.25/src/gnome-genius.c:4642: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[5] = "EOF!";
data/genius-1.0.25/src/gnome-genius.c:4703:11:  [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).
	torlfp = fopen (torlfifo, "w");
data/genius-1.0.25/src/gnome-genius.c:4705:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fromrl = open (fromrlfifo, O_RDONLY);
data/genius-1.0.25/src/graphing.c:201: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 *plot_func_name[MAXFUNC] = { NULL };
data/genius-1.0.25/src/graphing.c:823:8:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	char *tmpfile;
data/genius-1.0.25/src/graphing.c:872:18:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	fd = g_mkstemp (tmpfile);
data/genius-1.0.25/src/graphing.c:874:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		g_free (tmpfile);
data/genius-1.0.25/src/graphing.c:886:8:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
						 tmpfile,
data/genius-1.0.25/src/graphing.c:907:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		unlink (tmpfile);
data/genius-1.0.25/src/graphing.c:908:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		g_free (tmpfile);
data/genius-1.0.25/src/graphing.c:913:53:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		char *cmdstring = g_strdup_printf ("cat %s | %s", tmpfile, last_cmd);
data/genius-1.0.25/src/graphing.c:933:10:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	unlink (tmpfile);
data/genius-1.0.25/src/graphing.c:934:10:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	g_free (tmpfile);
data/genius-1.0.25/src/graphing.c:1006:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		fd = g_mkstemp (tmpfile);
data/genius-1.0.25/src/graphing.c:1009:20:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			file_to_write = tmpfile;
data/genius-1.0.25/src/graphing.c:1013:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		fd = g_mkstemp (tmpfile);
data/genius-1.0.25/src/graphing.c:1016:20:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			file_to_write = tmpfile;
data/genius-1.0.25/src/graphing.c:1046:49:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		char *cmd = g_strdup_printf ("ps2epsi %s %s", tmpfile, qs);
data/genius-1.0.25/src/graphing.c:1056:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			unlink (tmpfile);
data/genius-1.0.25/src/graphing.c:1059:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			rename (tmpfile, s);
data/genius-1.0.25/src/graphing.c:1066:82:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		char *cmd = g_strdup_printf ("ps2pdf -dEPSCrop -dPDFSETTINGS=/prepress %s %s", tmpfile, qs);
data/genius-1.0.25/src/graphing.c:1076:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			unlink (tmpfile);
data/genius-1.0.25/src/graphing.c:1079:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			rename (tmpfile, s);
data/genius-1.0.25/src/graphing.c:1093:7:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		if (tmpfile != NULL)
data/genius-1.0.25/src/graphing.c:1094:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			g_free (tmpfile);
data/genius-1.0.25/src/graphing.c:1100:6:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	if (tmpfile != NULL)
data/genius-1.0.25/src/graphing.c:1101:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		g_free (tmpfile);
data/genius-1.0.25/src/matrix.c:128: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(na+((width+wpadding)*i),
data/genius-1.0.25/src/matrixw.c:788: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->regx, regx, sizeof(int)*w);
data/genius-1.0.25/src/matrixw.c:802: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->regy, regy, sizeof(int)*h);
data/genius-1.0.25/src/matrixw.c:972: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 (m, source, sizeof (GelMatrixW));
data/genius-1.0.25/src/matrixw.c:975: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 (m->regx, source->regx, m->regw * sizeof (int));
data/genius-1.0.25/src/matrixw.c:979: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 (m->regy, source->regy, m->regh * sizeof (int));
data/genius-1.0.25/src/mpwrap.c:75: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 (THE_z, free_mpz_top, sizeof (__mpz_struct));	\
data/genius-1.0.25/src/mpwrap.c:82: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 (free_mpz_top, THE_z, sizeof (__mpz_struct));	\
data/genius-1.0.25/src/mpwrap.c:90: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 (THE_q, free_mpq_top, sizeof (__mpq_struct));	\
data/genius-1.0.25/src/mpwrap.c:98: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 (free_mpq_top, THE_q, sizeof (__mpq_struct));	\
data/genius-1.0.25/src/mpwrap.c:106: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 (THE_f, free_mpfr_top, sizeof (__mpfr_struct));	\
data/genius-1.0.25/src/mpwrap.c:113: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 (free_mpfr_top, THE_f, sizeof (__mpfr_struct));	\
data/genius-1.0.25/src/mpwrap.c:555: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 (op->data.ival, ival,
data/genius-1.0.25/src/mpwrap.c:571: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 (op->data.rval, rval,
data/genius-1.0.25/src/mpwrap.c:596: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 (op->data.fval, fval,
data/genius-1.0.25/src/mpwrap.c:893: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(rop,op,sizeof(MpwRealNum));
data/genius-1.0.25/src/mpwrap.c:1521: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 (rop->data.ival, ret,
data/genius-1.0.25/src/mpwrap.c:1868: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 (rop->data.ival, z,
data/genius-1.0.25/src/mpwrap.c:1906: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 (rop->data.rval, q,
data/genius-1.0.25/src/mpwrap.c:2530: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 (rop->data.ival, ival,
data/genius-1.0.25/src/mpwrap.c:2557: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 (rop->data.ival, ival,
data/genius-1.0.25/src/mpwrap.c:2595: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 (rop->data.ival, ival,
data/genius-1.0.25/src/mpwrap.c:2606: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 (rop->data.ival, ival,
data/genius-1.0.25/src/mpwrap.c:2630: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 (rop->data.ival, ival,
data/genius-1.0.25/src/mpwrap.c:2641: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 (rop->data.ival, ival,
data/genius-1.0.25/src/mpwrap.c:2666: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 (rop->data.ival, ival,
data/genius-1.0.25/src/mpwrap.c:2694: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 (rop->data.ival, ival,
data/genius-1.0.25/src/mpwrap.c:2722: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 (rop->data.ival, ival,
data/genius-1.0.25/src/mpwrap.c:2910:4:  [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 (p, "0e0");
data/genius-1.0.25/src/mpwrap.c:2914: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(p+len,"e%ld",e-1);
data/genius-1.0.25/src/mpwrap.c:3419: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 (rop->r->data.ival, op, sizeof (__mpz_struct));
data/genius-1.0.25/src/mpwrap.c:3432: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 (rop->r->data.rval, op, sizeof (__mpq_struct));
data/genius-1.0.25/src/mpwrap.c:3445: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 (rop->r->data.fval, op, sizeof (__mpfr_struct));
data/genius-1.0.25/src/parse.c:1631: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/genius-1.0.25/src/parse.c:1820: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 yymsgbuf[128];
data/genius-1.0.25/src/plug_api.h:27:9:  [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).
	void (*open)(void); /*open the plugin (this happens every
data/genius-1.0.25/src/plugin.c:199: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).
		(*inf->open)();
data/genius-1.0.25/src/testplugin.c:20:1:  [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).
open (void)
data/genius-1.0.25/src/testplugin.c:57:2:  [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).
	open ();
data/genius-1.0.25/src/testplugin.c:61:2:  [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).
	open,
data/genius-1.0.25/ve/ve-config.c:282: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[2048];
data/genius-1.0.25/ve/ve-config.c:288:24:  [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).
	VE_IGNORE_EINTR (fp = fopen (config->file, "r"));
data/genius-1.0.25/ve/ve-config.c:559:24:  [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).
	VE_IGNORE_EINTR (fp = fopen (config->file, "w"));
data/genius-1.0.25/ve/ve-config.c:665:7:  [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).
	     atoi (val) != 0)) {
data/genius-1.0.25/ve/ve-config.c:687:8:  [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).
	ret = atoi (val);
data/genius-1.0.25/ve/ve-misc.c:302:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[1024];
data/genius-1.0.25/ve/ve-misc.c:317: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 (str, "???");
data/genius-1.0.25/gtkextra/gtkplotcairo.c:1044: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).
     new_text = (gchar *) g_new0(gchar , strlen(text)+1); /* Tiny C Compiler support */
data/genius-1.0.25/src/binreloc.c:72: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 (path2, "/proc/self/exe", buf_size - 1);
data/genius-1.0.25/src/binreloc.c:104:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (path, path2, buf_size - 1);
data/genius-1.0.25/src/binreloc.c:140: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).
	buf_size = strlen (line);
data/genius-1.0.25/src/binreloc.c:228: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 (file);
data/genius-1.0.25/src/binreloc.c:235: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 (file);
data/genius-1.0.25/src/binreloc.c:240: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 (start_addr);
data/genius-1.0.25/src/binreloc.c:241: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 (end_addr))
data/genius-1.0.25/src/calc.c:1777: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).
				l = strlen (entries[j*w + i]);
data/genius-1.0.25/src/calc.c:1796: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).
				l = strlen (entries[j*w + i]);
data/genius-1.0.25/src/calc.c:1887: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).
			} else if (strlen (body) > strlen(func->id->token) + 2) {
data/genius-1.0.25/src/calc.c:1887:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			} else if (strlen (body) > strlen(func->id->token) + 2) {
data/genius-1.0.25/src/calc.c:1900: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).
				 (int)strlen (body),
data/genius-1.0.25/src/calc.c:1940: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).
				 (int)strlen(body),
data/genius-1.0.25/src/calc.c:2065: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 (buf);
data/genius-1.0.25/src/calc.c:2541: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).
		int len = strlen (words[i]);
data/genius-1.0.25/src/calc.c:2565: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 (f);
data/genius-1.0.25/src/calc.c:2759:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			int flen = strlen (f);
data/genius-1.0.25/src/calc.c:3327: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).
		int l = strlen(str);
data/genius-1.0.25/src/compil.c:84:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char *p = g_base64_encode ((const unsigned char *)s, strlen (s));
data/genius-1.0.25/src/dict.c:944: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).
	sum += strlen (&id1[i]);
data/genius-1.0.25/src/dict.c:945: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).
	sum += strlen (&id2[i]);
data/genius-1.0.25/src/dict.c:984: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).
	int len1 = strlen (id1), len2 = strlen (id2);
data/genius-1.0.25/src/dict.c:984: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).
	int len1 = strlen (id1), len2 = strlen (id2);
data/genius-1.0.25/src/funclib.c:464:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep (10000);
data/genius-1.0.25/src/funclib.c:5559: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).
	size = strlen(s);
data/genius-1.0.25/src/funclib.c:5642: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).
	size = strlen(s);
data/genius-1.0.25/src/funclib.c:5681: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).
	alph_size = strlen (alph);
data/genius-1.0.25/src/genius-readline-helper.c:57: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 (text);
data/genius-1.0.25/src/genius-readline-helper.c:90: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 (text);
data/genius-1.0.25/src/genius-readline-helper.c:137:23:  [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).
	    strncmp(p,"load",strlen(p))==0 ||
data/genius-1.0.25/src/genius-readline-helper.c:138: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).
	    strncmp(p,"cd",strlen(p))==0 ||
data/genius-1.0.25/src/genius-readline-helper.c:139: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).
	    strncmp(p,"ls",strlen(p))==0 ||
data/genius-1.0.25/src/genius-readline-helper.c:140: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).
	    strncmp(p,"pwd",strlen(p))==0 ||
data/genius-1.0.25/src/genius-readline-helper.c:141:23:  [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).
	    strncmp(p,"help",strlen(p))==0 ||
data/genius-1.0.25/src/genius-readline-helper.c:142: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).
	    strncmp(p,"plugin",strlen(p))==0))
data/genius-1.0.25/src/genius-readline-helper.c:224: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).
		} else if (strncmp (buf, "CWD ", strlen ("CWD "))==0) {
data/genius-1.0.25/src/genius-readline-helper.c:234: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).
		} else if(strncmp(buf,"READLINE ",strlen("READLINE "))==0) {
data/genius-1.0.25/src/genius-readline-helper.c:239: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).
			prompt = &buf[strlen("READLINE ")];
data/genius-1.0.25/src/genius-readline-helper.c:247:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(5000);
data/genius-1.0.25/src/genius-readline-helper.c:256:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				int len = strlen(p);
data/genius-1.0.25/src/genius.c:242: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).
			int len = strlen (buf);
data/genius-1.0.25/src/genius.c:492: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).
		else if (strncmp (argv[i], "--exec=", strlen ("--exec=")) == 0) {
data/genius-1.0.25/src/genius.c:493:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			exec = g_strdup ((argv[i])+strlen("--exec="));
data/genius-1.0.25/src/gnome-genius.c:1041: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).
				cols += strlen (tok->token);
data/genius-1.0.25/src/gnome-genius.c:1045: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).
			cols += strlen (s);
data/genius-1.0.25/src/gnome-genius.c:3700: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).
	sz = strlen (prog);
data/genius-1.0.25/src/gnome-genius.c:3977: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).
	sz = strlen (output);
data/genius-1.0.25/src/gnome-genius.c:4139: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).
			int len = strlen (prog);
data/genius-1.0.25/src/gnome-genius.c:4433:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		feed_to_vte_from_string ((char *)s, strlen (s));
data/genius-1.0.25/src/gnome-genius.c:4664:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read (fd, buf, 4);
data/genius-1.0.25/src/gnome-genius.c:4672:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				r = read (fd, (gpointer) &len, sizeof (int));
data/genius-1.0.25/src/gnome-genius.c:4680:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					r = read (fd, b, len);
data/genius-1.0.25/src/graphing.c:3336: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 (text);
data/genius-1.0.25/src/inter.c:44:24:  [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(t,"plugin",strlen(t))==0 ||
data/genius-1.0.25/src/inter.c:45: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).
	   strncmp(t,"load",strlen(t))==0 ||
data/genius-1.0.25/src/inter.c:46: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).
	   strncmp(t,"cd",strlen(t))==0 ||
data/genius-1.0.25/src/inter.c:47: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).
	   strncmp(t,"pwd",strlen(t))==0 ||
data/genius-1.0.25/src/inter.c:48: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).
	   strncmp(t,"ls",strlen(t))==0) {
data/genius-1.0.25/src/inter.c:269: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 (text);
data/genius-1.0.25/src/inter.c:304: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 (text);
data/genius-1.0.25/src/inter.c:352:23:  [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).
	    strncmp(p,"load",strlen(p))==0 ||
data/genius-1.0.25/src/inter.c:353: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).
	    strncmp(p,"cd",strlen(p))==0 ||
data/genius-1.0.25/src/inter.c:354: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).
	    strncmp(p,"ls",strlen(p))==0 ||
data/genius-1.0.25/src/inter.c:355: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).
	    strncmp(p,"pwd",strlen(p))==0 ||
data/genius-1.0.25/src/inter.c:356:23:  [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).
	    strncmp(p,"help",strlen(p))==0 ||
data/genius-1.0.25/src/inter.c:357: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).
	    strncmp(p,"plugin",strlen(p))==0))
data/genius-1.0.25/src/lexer.c:947:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/genius-1.0.25/src/lexer.c:1326: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).
			yylval.id[strlen(yylval.id)-1]='\0';
data/genius-1.0.25/src/lexer.c:1689: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).
			s=g_malloc(strlen(yytext)-2); /*minus 3 and plus 1*/
data/genius-1.0.25/src/lexer.c:2547: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).
	return yy_scan_bytes( yystr, (int) strlen(yystr) );
data/genius-1.0.25/src/mpwrap.c:2873: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 (p);
data/genius-1.0.25/src/mpwrap.c:2907: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(p);
data/genius-1.0.25/src/mpwrap.c:2920: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).
			p = g_realloc (p, strlen(p)+2+e-len);
data/genius-1.0.25/src/mpwrap.c:2922: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(p,"0");
data/genius-1.0.25/src/mpwrap.c:2924: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).
			p = g_realloc (p, strlen(p) + 2);
data/genius-1.0.25/src/mpwrap.c:2939: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).
			p = g_realloc (p, strlen(p)+2+(-e)+2);
data/genius-1.0.25/src/mpwrap.c:2980: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(max_digits > 0 && max_digits < (int)strlen(p)) {
data/genius-1.0.25/src/mpwrap.c:2986: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(p2)>=strlen(p)) {
data/genius-1.0.25/src/mpwrap.c:2986: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(strlen(p2)>=strlen(p)) {
data/genius-1.0.25/src/mpwrap.c:3011: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).
		digits = strlen(p);
data/genius-1.0.25/src/mpwrap.c:3016: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).
		l = strlen (p2);
data/genius-1.0.25/src/mpwrap.c:3025: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).
		digits = strlen(p);
data/genius-1.0.25/src/mpwrap.c:3030: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).
		l = strlen (p2);
data/genius-1.0.25/src/mpwrap.c:3043: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).
		digits = strlen(p) - 1; /* don't count the / */
data/genius-1.0.25/src/mpwrap.c:3044: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).
		digits -= strlen (postfix); /* don't count the i */
data/genius-1.0.25/src/mpwrap.c:3089: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).
		digits = strlen (p);
data/genius-1.0.25/src/mpwrap.c:3129: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(p2)>=strlen(p)) {
data/genius-1.0.25/src/mpwrap.c:3129: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(strlen(p2)>=strlen(p)) {
data/genius-1.0.25/src/mpwrap.c:5392: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).
	size = strlen(p);
data/genius-1.0.25/src/mpwrap.c:5410: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).
	size = strlen(p);
data/genius-1.0.25/src/parse.c:1528: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).
#   define yystrlen strlen
data/genius-1.0.25/src/util.c:39: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).
	for(p=s+strlen(s);p>=s;p--)
data/genius-1.0.25/src/util.c:50: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).
		s = g_realloc (s, strlen(s)+strlen(p)+1);
data/genius-1.0.25/src/util.c:50:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		s = g_realloc (s, strlen(s)+strlen(p)+1);
data/genius-1.0.25/src/util.c:66:23:  [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).
		p2=(char *)g_malloc(strlen(s)+strlen(p)+1);
data/genius-1.0.25/src/util.c:66:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		p2=(char *)g_malloc(strlen(s)+strlen(p)+1);
data/genius-1.0.25/src/util.c:128: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).
	n = p = g_new(char,strlen(s)+1);
data/genius-1.0.25/src/util.c:178: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).
	n = p = g_new(char,strlen(s)+i+1);
data/genius-1.0.25/ve/ve-config.c:152:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int keylen = strlen (line->key);
data/genius-1.0.25/ve/ve-config.c:844: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 (key_name);

ANALYSIS SUMMARY:

Hits = 270
Lines analyzed = 105497 in approximately 2.23 seconds (47408 lines/second)
Physical Source Lines of Code (SLOC) = 79863
Hits@level = [0] 266 [1] 101 [2] 114 [3]  21 [4]  33 [5]   1
Hits@level+ = [0+] 536 [1+] 270 [2+] 169 [3+]  55 [4+]  34 [5+]   1
Hits/KSLOC@level+ = [0+] 6.71149 [1+] 3.38079 [2+] 2.11612 [3+] 0.688679 [4+] 0.425729 [5+] 0.0125214
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.