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/biniax2-1.30/desktop/cfg.h
Examining data/biniax2-1.30/desktop/gfx.h
Examining data/biniax2-1.30/desktop/inp.h
Examining data/biniax2-1.30/desktop/net.c
Examining data/biniax2-1.30/desktop/net.h
Examining data/biniax2-1.30/desktop/snd.h
Examining data/biniax2-1.30/desktop/types.h
Examining data/biniax2-1.30/desktop/snd.c
Examining data/biniax2-1.30/desktop/cfg.c
Examining data/biniax2-1.30/desktop/gfx.c
Examining data/biniax2-1.30/desktop/inp.c
Examining data/biniax2-1.30/desktop/sys.c
Examining data/biniax2-1.30/desktop/sys.h
Examining data/biniax2-1.30/game.h
Examining data/biniax2-1.30/hof.h
Examining data/biniax2-1.30/lev.h
Examining data/biniax2-1.30/SDLinclude/begin_code.h
Examining data/biniax2-1.30/SDLinclude/close_code.h
Examining data/biniax2-1.30/SDLinclude/SDL.h
Examining data/biniax2-1.30/SDLinclude/SDL_active.h
Examining data/biniax2-1.30/SDLinclude/SDL_audio.h
Examining data/biniax2-1.30/SDLinclude/SDL_byteorder.h
Examining data/biniax2-1.30/SDLinclude/SDL_cdrom.h
Examining data/biniax2-1.30/SDLinclude/SDL_config.h
Examining data/biniax2-1.30/SDLinclude/SDL_config_amiga.h
Examining data/biniax2-1.30/SDLinclude/SDL_config_dreamcast.h
Examining data/biniax2-1.30/SDLinclude/SDL_config_macos.h
Examining data/biniax2-1.30/SDLinclude/SDL_config_macosx.h
Examining data/biniax2-1.30/SDLinclude/SDL_config_minimal.h
Examining data/biniax2-1.30/SDLinclude/SDL_config_os2.h
Examining data/biniax2-1.30/SDLinclude/SDL_config_win32.h
Examining data/biniax2-1.30/SDLinclude/SDL_copying.h
Examining data/biniax2-1.30/SDLinclude/SDL_cpuinfo.h
Examining data/biniax2-1.30/SDLinclude/SDL_endian.h
Examining data/biniax2-1.30/SDLinclude/SDL_error.h
Examining data/biniax2-1.30/SDLinclude/SDL_events.h
Examining data/biniax2-1.30/SDLinclude/SDL_getenv.h
Examining data/biniax2-1.30/SDLinclude/SDL_image.h
Examining data/biniax2-1.30/SDLinclude/SDL_joystick.h
Examining data/biniax2-1.30/SDLinclude/SDL_keyboard.h
Examining data/biniax2-1.30/SDLinclude/SDL_keysym.h
Examining data/biniax2-1.30/SDLinclude/SDL_loadso.h
Examining data/biniax2-1.30/SDLinclude/SDL_main.h
Examining data/biniax2-1.30/SDLinclude/SDL_mixer.h
Examining data/biniax2-1.30/SDLinclude/SDL_mouse.h
Examining data/biniax2-1.30/SDLinclude/SDL_mutex.h
Examining data/biniax2-1.30/SDLinclude/SDL_name.h
Examining data/biniax2-1.30/SDLinclude/SDL_net.h
Examining data/biniax2-1.30/SDLinclude/SDL_opengl.h
Examining data/biniax2-1.30/SDLinclude/SDL_platform.h
Examining data/biniax2-1.30/SDLinclude/SDL_quit.h
Examining data/biniax2-1.30/SDLinclude/SDL_rwops.h
Examining data/biniax2-1.30/SDLinclude/SDL_stdinc.h
Examining data/biniax2-1.30/SDLinclude/SDL_syswm.h
Examining data/biniax2-1.30/SDLinclude/SDL_thread.h
Examining data/biniax2-1.30/SDLinclude/SDL_timer.h
Examining data/biniax2-1.30/SDLinclude/SDL_types.h
Examining data/biniax2-1.30/SDLinclude/SDL_version.h
Examining data/biniax2-1.30/SDLinclude/SDL_video.h
Examining data/biniax2-1.30/tut.c
Examining data/biniax2-1.30/txt.h
Examining data/biniax2-1.30/inc.h
Examining data/biniax2-1.30/biniax.c
Examining data/biniax2-1.30/hof.c

FINAL RESULTS:

data/biniax2-1.30/biniax.c:1255:4:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
			strncat(filename, "/share", sizeof(filename)-1);
data/biniax2-1.30/biniax.c:1257:4:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
			strncat(filename, "/biniax2", sizeof(filename)-1);
data/biniax2-1.30/biniax.c:1266:18:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
	autosave_path = strncat(filename, "/autosave", sizeof(filename)-1);
data/biniax2-1.30/desktop/cfg.c:103:4:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
			strncat(filename, "/biniax2", sizeof(filename)-1);
data/biniax2-1.30/desktop/cfg.c:112:2:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
	strncat(filename, "/config", sizeof(filename)-1);
data/biniax2-1.30/hof.c:143:4:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
			strncat(filename, "/share", sizeof(filename)-1);
data/biniax2-1.30/hof.c:145:4:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
			strncat(filename, "/biniax2", sizeof(filename)-1);
data/biniax2-1.30/hof.c:154:13:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
	hof_path = strncat(filename, "/hof", sizeof(filename)-1);
data/biniax2-1.30/SDLinclude/SDL_opengl.h:3446:71:  [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.
typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
data/biniax2-1.30/SDLinclude/SDL_opengl.h:4047:74:  [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.
typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access);
data/biniax2-1.30/SDLinclude/SDL_stdinc.h:537:25:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#define SDL_sscanf      sscanf
data/biniax2-1.30/SDLinclude/SDL_stdinc.h:543:25:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define SDL_snprintf    snprintf
data/biniax2-1.30/SDLinclude/SDL_stdinc.h:549:25:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define SDL_vsnprintf   vsnprintf
data/biniax2-1.30/desktop/cfg.c:122:5:  [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 ) != -1 ) {
data/biniax2-1.30/desktop/cfg.c:147: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( stderr, _Cfg.sound ? "Sound On\n" : "Sound Off\n" );
data/biniax2-1.30/desktop/cfg.c:148: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( stderr, _Cfg.music ? "Music On\n" : "Music Off\n" );
data/biniax2-1.30/desktop/cfg.c:149: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( stderr, _Cfg.fullscreen ? "Fullscreen On\n" : "Fullscreen Off\n" );
data/biniax2-1.30/desktop/gfx.c:443:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf( activeMenuTxt, "= %s =", TXT_MenuMain[ i ] );
data/biniax2-1.30/desktop/gfx.c:519:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf( ptrTxt, "#%d - %s - %8d", i+1, hof->arcade[ i ].name, hof->arcade[ i ].score );
data/biniax2-1.30/desktop/gfx.c:532:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf( ptrTxt, "#%d - %s - %8d", i+1, hof->tactic[ i ].name, hof->tactic[ i ].score );
data/biniax2-1.30/hof.c:267:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy( Hof.arcade[ j ].name, Hof.arcade[ j-1 ].name );
data/biniax2-1.30/hof.c:283:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy( Hof.tactic[ j ].name, Hof.tactic[ j-1 ].name );
data/biniax2-1.30/SDLinclude/SDL_stdinc.h:192:20:  [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.
#define SDL_getenv	getenv
data/biniax2-1.30/biniax.c:1229:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ((home = getenv("XDG_DATA_HOME")))
data/biniax2-1.30/biniax.c:1239:20:  [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.
		else if ((home = getenv("HOME")))
data/biniax2-1.30/desktop/cfg.c:77:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ((home = getenv("XDG_CONFIG_HOME")))
data/biniax2-1.30/desktop/cfg.c:87:20:  [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.
		else if ((home = getenv("HOME")))
data/biniax2-1.30/desktop/sys.c:54:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand( init );
data/biniax2-1.30/hof.c:117:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ((home = getenv("XDG_DATA_HOME")))
data/biniax2-1.30/hof.c:127:20:  [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.
		else if ((home = getenv("HOME")))
data/biniax2-1.30/SDLinclude/SDL_stdinc.h:287:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define SDL_memcpy      memcpy
data/biniax2-1.30/SDLinclude/SDL_stdinc.h:289:29:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define SDL_memcpy(d, s, n)	bcopy((s), (d), (n))
data/biniax2-1.30/SDLinclude/SDL_stdinc.h:344:30:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define SDL_memmove(d, s, n)	bcopy((s), (d), (n))
data/biniax2-1.30/SDLinclude/SDL_stdinc.h:497:25:  [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).
#define SDL_atoi        atoi
data/biniax2-1.30/biniax.c:1220:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[1024];
data/biniax2-1.30/biniax.c:1281: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( saveFileName(), "wb" );
data/biniax2-1.30/biniax.c:1346: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( saveFileName(), "rb" );
data/biniax2-1.30/biniax.c:1412: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( saveFileName(), "wb" );
data/biniax2-1.30/biniax.c:1463: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( saveFileName(), "rb" );
data/biniax2-1.30/desktop/cfg.c:65: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[ _Cfg_Buffer ];
data/biniax2-1.30/desktop/cfg.c:69:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[1024];
data/biniax2-1.30/desktop/cfg.c:123: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( filename, "r" );
data/biniax2-1.30/desktop/cfg.c:153: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( filename, "w" );
data/biniax2-1.30/desktop/gfx.c:108:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char				text[ 128 ];
data/biniax2-1.30/desktop/gfx.c:259: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( text, "%06d", game->scroll );
data/biniax2-1.30/desktop/gfx.c:264: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( text, "PLAYER-1 WINS: %d", game->wins[ cPlayer1 ] );
data/biniax2-1.30/desktop/gfx.c:266: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( text, "PLAYER-2 WINS: %d", game->wins[ cPlayer2 ] );
data/biniax2-1.30/desktop/gfx.c:282: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( text, "SCORE : %d", game->score[ cPlayer1 ] );
data/biniax2-1.30/desktop/gfx.c:284: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( text, "BEST : %d", game->best[ cModeTurn ] );
data/biniax2-1.30/desktop/gfx.c:288: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( text, "   %02d", game->clears );
data/biniax2-1.30/desktop/gfx.c:294: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( text, "%06d", game->scroll );
data/biniax2-1.30/desktop/gfx.c:299: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( text, "SCORE : %d", game->score[ cPlayer1 ] );
data/biniax2-1.30/desktop/gfx.c:301: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( text, "BEST : %d", game->best[ cModeRealtime ] );
data/biniax2-1.30/desktop/gfx.c:305: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( text, "   %02d", game->clears );
data/biniax2-1.30/desktop/gfx.c:338:6:  [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( text, "GAME OVER, SCORE : %d", game->score[ cPlayer1 ] );
data/biniax2-1.30/desktop/gfx.c:342:6:  [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( text, "CONGRATULATIONS, BEST RESULT : %d", game->best[ game->mode ] );
data/biniax2-1.30/desktop/gfx.c:427: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				activeMenuTxt[ 0xff ];
data/biniax2-1.30/desktop/gfx.c:506: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 ptrTxt[ cGfxStrLen ];
data/biniax2-1.30/desktop/gfx.c:767: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( filename, "rt" );
data/biniax2-1.30/desktop/gfx.c:786: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).
		f = fopen( filename, "rt" );
data/biniax2-1.30/desktop/gfx.h:184: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 virtualKBD[ cGfxKeyGridY ][ cGfxKeyGridX ] = {
data/biniax2-1.30/desktop/gfx.h:195:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char BNX_HELPLINE[ cGfxMaxTextLine ];
data/biniax2-1.30/desktop/sys.c:81: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( file, "rb" );
data/biniax2-1.30/hof.c:108:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[1024];
data/biniax2-1.30/hof.c:171: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( Hof.arcade[ i ].name, "DEBIAN                       " );
data/biniax2-1.30/hof.c:174: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( Hof.tactic[ i ].name, "DEBIAN                       " );
data/biniax2-1.30/hof.c:180: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( hofFileName(), "rb" );
data/biniax2-1.30/hof.c:214: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( hofFileName(), "wb" );
data/biniax2-1.30/hof.c:296:2:  [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( recEntry->name, "                             " );
data/biniax2-1.30/hof.c:379: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 alt_filename[1024+3];
data/biniax2-1.30/hof.c:381:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen( (filename = hofFileName()), "rb" );
data/biniax2-1.30/hof.c:392: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(ptr, "config");
data/biniax2-1.30/hof.c:393: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).
			file = fopen( filename, "rb" );
data/biniax2-1.30/hof.c:450:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen( (filename=hofFileName()), "wb" );
data/biniax2-1.30/hof.h:45:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		name[ cHofNameLen ];
data/biniax2-1.30/lev.h:65: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		BNX_LEVEL[ cLinesAll ][ cGridX ] = 
data/biniax2-1.30/txt.h:37:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *TXT_MenuMain[ cMaxOptions ] = {
data/biniax2-1.30/txt.h:47:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *TXT_MenuMulti[ cMaxOptions ] = {
data/biniax2-1.30/txt.h:54:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *TXT_Extras[ cMaxExtras ] = {
data/biniax2-1.30/SDLinclude/SDL_rwops.h:52:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int (SDLCALL *read)(struct SDL_RWops *context, void *ptr, int size, int maxnum);
data/biniax2-1.30/SDLinclude/SDL_rwops.h:111:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define SDL_RWread(ctx, ptr, size, n)	(ctx)->read(ctx, ptr, size, n)
data/biniax2-1.30/SDLinclude/SDL_stdinc.h:363: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).
#define SDL_strlen      strlen
data/biniax2-1.30/biniax.c:1231:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(home) > 1024 - sizeof("/biniax2/hof"))
data/biniax2-1.30/biniax.c:1248:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(home) > 1024 - sizeof("/.local/share/biniax2/autosave"))
data/biniax2-1.30/biniax.c:1481:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	game->ingame = fgetc(file);
data/biniax2-1.30/biniax.c:1483:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	game->message = fgetc(file);
data/biniax2-1.30/biniax.c:1494:23:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		game->player[i].x = fgetc(file);
data/biniax2-1.30/biniax.c:1495:23:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		game->player[i].y = fgetc(file);
data/biniax2-1.30/biniax.c:1496:23:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		game->player[i].e = fgetc(file);
data/biniax2-1.30/biniax.c:1511:23:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			game->grid[i][j] = fgetc(file);
data/biniax2-1.30/desktop/cfg.c:79:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(home) > 1024 - sizeof("/biniax2/config"))
data/biniax2-1.30/desktop/cfg.c:96:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(home) > 1024 - sizeof("/.config/biniax2/config"))
data/biniax2-1.30/desktop/gfx.c:435: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).
	x = cGfxOptionX - ( ( (BNX_INT16) strlen( menuTitle ) * cGfxFontSizeX ) >> 1 );
data/biniax2-1.30/desktop/gfx.c:456: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).
		x = cGfxOptionX - ( ( (BNX_INT16) strlen( ptrTxt ) * cGfxFontSizeX ) >> 1 );
data/biniax2-1.30/desktop/gfx.c:490: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).
		x = cGfxHelpX - ( ( (BNX_INT16) (strlen( ptrTxt ) - 1) * cGfxFontSizeX ) >> 1 );
data/biniax2-1.30/desktop/gfx.c:513:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	x = cGfxHelpX - ( ( (BNX_INT16) (strlen( TXT_HofCase[ 0 ] ) - 1) * cGfxFontSizeX ) >> 1 );
data/biniax2-1.30/desktop/gfx.c:520: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).
		x = cGfxHelpX - ( ( (BNX_INT16) (strlen( ptrTxt ) - 1) * cGfxFontSizeX ) >> 1 );
data/biniax2-1.30/desktop/gfx.c:526:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	x = cGfxHelpX - ( ( (BNX_INT16) (strlen( TXT_HofCase[ 1 ] ) - 1) * cGfxFontSizeX ) >> 1 );
data/biniax2-1.30/desktop/gfx.c:533: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).
		x = cGfxHelpX - ( ( (BNX_INT16) (strlen( ptrTxt ) - 1) * cGfxFontSizeX ) >> 1 );
data/biniax2-1.30/desktop/gfx.c:626:65:  [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).
	xt = x + ( (BNX_INT16) _Gfx.window->w >> 1 ) - ( ( (BNX_INT16) strlen( text ) * cGfxFontSizeX ) >> 1 );
data/biniax2-1.30/desktop/sys.c:86:3:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		fgetc( f );
data/biniax2-1.30/desktop/sys.c:115:6:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = fgetc( f );
data/biniax2-1.30/desktop/sys.c:122:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = (BNX_UINT16) fgetc( f );
data/biniax2-1.30/desktop/sys.c:123:20:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n |= (BNX_UINT16) fgetc( f ) << 8;
data/biniax2-1.30/desktop/sys.c:130:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = (BNX_UINT32) fgetc( f );
data/biniax2-1.30/desktop/sys.c:131:20:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n |= (BNX_UINT32) fgetc( f ) << 8;
data/biniax2-1.30/desktop/sys.c:132:20:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n |= (BNX_UINT32) fgetc( f ) << 16;
data/biniax2-1.30/desktop/sys.c:133:20:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n |= (BNX_UINT32) fgetc( f ) << 24;
data/biniax2-1.30/hof.c:119:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(home) > 1024 - sizeof("/biniax2/hof"))
data/biniax2-1.30/hof.c:136:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(home) > 1024 - sizeof("/.local/share/biniax2/hof"))
data/biniax2-1.30/hof.c:386:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(alt_filename, filename, 1024);

ANALYSIS SUMMARY:

Hits = 111
Lines analyzed = 19020 in approximately 0.54 seconds (35383 lines/second)
Physical Source Lines of Code (SLOC) = 12994
Hits@level = [0]  42 [1]  32 [2]  49 [3]   8 [4]  14 [5]   8
Hits@level+ = [0+] 153 [1+] 111 [2+]  79 [3+]  30 [4+]  22 [5+]   8
Hits/KSLOC@level+ = [0+] 11.7747 [1+] 8.5424 [2+] 6.07973 [3+] 2.30876 [4+] 1.69309 [5+] 0.615669
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.