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/funguloids-1.06/include/effects.h
Examining data/funguloids-1.06/include/mpak.h
Examining data/funguloids-1.06/include/openalchannel.h
Examining data/funguloids-1.06/include/whirler.h
Examining data/funguloids-1.06/include/oggstream.h
Examining data/funguloids-1.06/include/SimpleIni/ConvertUTF.h
Examining data/funguloids-1.06/include/SimpleIni/ConvertUTF.c
Examining data/funguloids-1.06/include/SimpleIni/SimpleIni.h
Examining data/funguloids-1.06/include/scriptsystem.h
Examining data/funguloids-1.06/include/fmodexsoundsystem.h
Examining data/funguloids-1.06/include/mp3stream.h
Examining data/funguloids-1.06/include/hiscore.h
Examining data/funguloids-1.06/include/mushroom.h
Examining data/funguloids-1.06/include/soundstream.h
Examining data/funguloids-1.06/include/asteroid.h
Examining data/funguloids-1.06/include/gamecamera.h
Examining data/funguloids-1.06/include/playlist.h
Examining data/funguloids-1.06/include/ballworm.h
Examining data/funguloids-1.06/include/blackhole.h
Examining data/funguloids-1.06/include/base.h
Examining data/funguloids-1.06/include/streamplayer.h
Examining data/funguloids-1.06/include/object.h
Examining data/funguloids-1.06/include/movingobject.h
Examining data/funguloids-1.06/include/openalchannelgroup.h
Examining data/funguloids-1.06/include/input.h
Examining data/funguloids-1.06/include/tentacles.h
Examining data/funguloids-1.06/include/bground.h
Examining data/funguloids-1.06/include/openalsoundsystem.h
Examining data/funguloids-1.06/include/objectsystem.h
Examining data/funguloids-1.06/include/game.h
Examining data/funguloids-1.06/include/menu.h
Examining data/funguloids-1.06/include/mpakogre.h
Examining data/funguloids-1.06/include/ogreapp.h
Examining data/funguloids-1.06/include/ogrelistener.h
Examining data/funguloids-1.06/include/player.h
Examining data/funguloids-1.06/include/soundsystem.h
Examining data/funguloids-1.06/src/ballworm.cpp
Examining data/funguloids-1.06/src/fmodexsoundsystem.cpp
Examining data/funguloids-1.06/src/blackhole.cpp
Examining data/funguloids-1.06/src/player.cpp
Examining data/funguloids-1.06/src/openalchannelgroup.cpp
Examining data/funguloids-1.06/src/tentacles.cpp
Examining data/funguloids-1.06/src/openalchannel.cpp
Examining data/funguloids-1.06/src/gamecamera.cpp
Examining data/funguloids-1.06/src/mushroom.cpp
Examining data/funguloids-1.06/src/streamplayer.cpp
Examining data/funguloids-1.06/src/main.cpp
Examining data/funguloids-1.06/src/bground.cpp
Examining data/funguloids-1.06/src/mpak.cpp
Examining data/funguloids-1.06/src/movingobject.cpp
Examining data/funguloids-1.06/src/asteroid.cpp
Examining data/funguloids-1.06/src/whirler.cpp
Examining data/funguloids-1.06/src/object.cpp
Examining data/funguloids-1.06/src/base.cpp
Examining data/funguloids-1.06/src/ogrelistener.cpp
Examining data/funguloids-1.06/src/effects.cpp
Examining data/funguloids-1.06/src/oggstream.cpp
Examining data/funguloids-1.06/src/input.cpp
Examining data/funguloids-1.06/src/mp3stream.cpp
Examining data/funguloids-1.06/src/playlist.cpp
Examining data/funguloids-1.06/src/mpakogre.cpp
Examining data/funguloids-1.06/src/openalsoundsystem.cpp
Examining data/funguloids-1.06/src/objectsystem.cpp
Examining data/funguloids-1.06/src/hiscore.cpp
Examining data/funguloids-1.06/src/menu.cpp
Examining data/funguloids-1.06/src/ogreapp.cpp
Examining data/funguloids-1.06/src/scriptsystem.cpp
Examining data/funguloids-1.06/src/game.cpp

FINAL RESULTS:

data/funguloids-1.06/src/mpak.cpp:242:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(mpk_file, file);
data/funguloids-1.06/src/mpak.cpp:329:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(override_dir, override);
data/funguloids-1.06/src/mpak.cpp:425:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(files[cur], mpk_strip_path(file));
data/funguloids-1.06/src/mpak.cpp:463:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(testfile, "%s/%s", override_dir, file);
data/funguloids-1.06/src/mpak.cpp:518:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(file_out, "%s/%s", path, file);
data/funguloids-1.06/src/mpak.cpp:520: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(file_out, file);
data/funguloids-1.06/src/hiscore.cpp:56: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.
	char *home = getenv("HOME");
data/funguloids-1.06/src/ogreapp.cpp:85:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/funguloids-1.06/include/SimpleIni/ConvertUTF.c:174:14:  [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 const char trailingBytesForUTF8[256] = {
data/funguloids-1.06/include/SimpleIni/SimpleIni.h:1092: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(a_pszFile, "rb");
data/funguloids-1.06/include/SimpleIni/SimpleIni.h:1121:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char szFile[256];
data/funguloids-1.06/include/SimpleIni/SimpleIni.h:1240:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char szBuf[512];
data/funguloids-1.06/include/SimpleIni/SimpleIni.h:1613: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(pCopy, a_pString, sizeof(SI_CHAR)*uLen);
data/funguloids-1.06/include/SimpleIni/SimpleIni.h:1877: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(a_pszFile, "wb");
data/funguloids-1.06/include/SimpleIni/SimpleIni.h:1900:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char szFile[256];
data/funguloids-1.06/include/SimpleIni/SimpleIni.h:2282:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(a_pOutputData, a_pInputData, a_uInputDataLen);
data/funguloids-1.06/include/SimpleIni/SimpleIni.h:2328:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(a_pOutputData, a_pInputData, uInputLen);
data/funguloids-1.06/include/SimpleIni/SimpleIni.h:2812:22:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        int retval = MultiByteToWideChar(
data/funguloids-1.06/include/SimpleIni/SimpleIni.h:2838:21:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        int nSize = MultiByteToWideChar(
data/funguloids-1.06/include/base.h:57:7:  [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();
data/funguloids-1.06/include/hiscore.h:41:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[NAME_LEN];			// Name
data/funguloids-1.06/include/mpak.h:75: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 override_dir[64];					// Name of the override directory
data/funguloids-1.06/include/mpak.h:77: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 mpk_file[64];						// Filename of the open MPK file
data/funguloids-1.06/include/mpak.h:80:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char files[MPAK_MAX_FILES][64];			// File names
data/funguloids-1.06/include/mpakogre.h:51:16:  [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).
	DataStreamPtr open(const String &filename) const;
data/funguloids-1.06/include/mpakogre.h:52:16:  [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).
	DataStreamPtr open(const String &filename, bool) const { return open(filename); };
data/funguloids-1.06/include/mpakogre.h:52:66:  [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).
	DataStreamPtr open(const String &filename, bool) const { return open(filename); };
data/funguloids-1.06/include/oggstream.h:65:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int open( const std::string& filename ); //!< Open a file for file playback. Return something > 0 if error.
data/funguloids-1.06/src/base.cpp:74:12:  [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 Base::open() {
data/funguloids-1.06/src/fmodexsoundsystem.cpp:68:57:  [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).
	soundResource->streamPtr = soundResource->fileArchive->open(soundResource->fileName);
data/funguloids-1.06/src/fmodexsoundsystem.cpp:253: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 ver[32] = "";
data/funguloids-1.06/src/fmodexsoundsystem.cpp:256:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(ver, "%08x", version);
data/funguloids-1.06/src/game.cpp:62:17:  [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 *ftest = fopen(tmp.c_str(), "rt");
data/funguloids-1.06/src/hiscore.cpp:92:17:  [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 *ftest = fopen(tmp.c_str(), "rt");
data/funguloids-1.06/src/hiscore.cpp:119: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 str[16] = "";
data/funguloids-1.06/src/hiscore.cpp:120:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(str, "%06ld", mList[f].score);
data/funguloids-1.06/src/hiscore.cpp:131: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).
	fout = fopen(file.c_str(), "wb");
data/funguloids-1.06/src/hiscore.cpp:153:8:  [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).
	fin = fopen(file.c_str(), "rb");
data/funguloids-1.06/src/menu.cpp:298:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char volstr[16] = "";
data/funguloids-1.06/src/menu.cpp:364: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(volstr, "%.0f%%", vol*100.0f);
data/funguloids-1.06/src/menu.cpp:382: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(volstr, "%.0f%%", vol*100.0f);
data/funguloids-1.06/src/mp3stream.cpp:169:13:  [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* fh = fopen(filename.c_str(), "rb");
data/funguloids-1.06/src/mp3stream.cpp:416:18:  [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 unsigned char data[MP3_BUFFER_SIZE];
data/funguloids-1.06/src/mpak.cpp:108:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fin = fopen(file, "rb");
data/funguloids-1.06/src/mpak.cpp:117: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 buffer[16384];
data/funguloids-1.06/src/mpak.cpp:196: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(mpk_file, "null");
data/funguloids-1.06/src/mpak.cpp:197: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(override_dir, "null");
data/funguloids-1.06/src/mpak.cpp:235:13:  [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).
	fpointer = fopen(file, (mode == MPAK_READ) ? "rb" : "wb");
data/funguloids-1.06/src/mpak.cpp:243: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(override_dir, "null");
data/funguloids-1.06/src/mpak.cpp:265: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 id[5] = "";
data/funguloids-1.06/src/mpak.cpp:412:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fin = fopen(file, "rb");
data/funguloids-1.06/src/mpak.cpp:431: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[16384];
data/funguloids-1.06/src/mpak.cpp:462: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 testfile[256] = "";
data/funguloids-1.06/src/mpak.cpp:464:16:  [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 *test = fopen(testfile, "rb");
data/funguloids-1.06/src/mpak.cpp:484:19:  [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 *pointer = fopen(mpk_file, "rb");
data/funguloids-1.06/src/mpak.cpp:516: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 file_out[256] = "";
data/funguloids-1.06/src/mpak.cpp:523:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fout = fopen(file_out, "wb");
data/funguloids-1.06/src/mpak.cpp:530: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[16384];
data/funguloids-1.06/src/mpakogre.cpp:132:28:  [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).
DataStreamPtr MPakArchive::open(const String &filename) const {
data/funguloids-1.06/src/oggstream.cpp:110:13:  [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* fh = fopen(filename.c_str(), "rb");
data/funguloids-1.06/src/oggstream.cpp:186:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
int OggStream::open( const std::string& filename )
data/funguloids-1.06/src/oggstream.cpp:188: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(!(mOggFile = fopen(filename.c_str(), "rb")))
data/funguloids-1.06/src/oggstream.cpp:256:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			mOggFile = fopen( mOggFilename.c_str(), "rb");
data/funguloids-1.06/src/oggstream.cpp:381:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char data[OGG_BUFFER_SIZE];
data/funguloids-1.06/src/oggstream.cpp:510: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(ptr, (char*)static_cast<OggMemoryFile*>(memfile)->dataPtr + static_cast<OggMemoryFile*>(memfile)->dataRead, actualSizeToRead);
data/funguloids-1.06/src/ogrelistener.cpp:91: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 tmp[32];
data/funguloids-1.06/src/ogrelistener.cpp:92:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(tmp, "shot_%02d.png", mScreenShots++);
data/funguloids-1.06/src/ogrelistener.cpp:93:17:  [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 *check = fopen(tmp, "r");
data/funguloids-1.06/src/openalsoundsystem.cpp:417:57:  [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).
	soundResource->streamPtr = soundResource->fileArchive->open(soundResource->fileName);
data/funguloids-1.06/src/player.cpp:94: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[16] = "";
data/funguloids-1.06/src/player.cpp:95:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(str, "%02d", mCurrentLevel);
data/funguloids-1.06/src/player.cpp:98:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(str, "%02d:%02d", mPlaytimeMin, mPlaytimeSec);
data/funguloids-1.06/src/player.cpp:177:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(str, "%06ld", mScore);
data/funguloids-1.06/src/player.cpp:179:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(str, "%02d", mMushroomCount[0]);
data/funguloids-1.06/src/player.cpp:254: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 str[16] = "";
data/funguloids-1.06/src/player.cpp:255:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(str, "%02d:%02d", mPlaytimeMin, mPlaytimeSec);
data/funguloids-1.06/src/player.cpp:355: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 str[16] = "";
data/funguloids-1.06/src/player.cpp:356: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(str, "%06ld", mScore);
data/funguloids-1.06/src/player.cpp:359: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(str, "%02d", mMushroomCount[mBaseColor]);
data/funguloids-1.06/src/player.cpp:390:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char str[16] = "";
data/funguloids-1.06/src/player.cpp:391:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(str, "%02d", mCurrentLevel);
data/funguloids-1.06/src/player.cpp:587:6:  [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[16] = "";
data/funguloids-1.06/src/player.cpp:588: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(str, "%02d", mMushroomCount[f]);
data/funguloids-1.06/src/player.cpp:643:13:  [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).
			mOnBase->open();
data/funguloids-1.06/src/player.cpp:723: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 str[16] = "";
data/funguloids-1.06/src/player.cpp:724:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(str, "%02d", mMushroomCount[f]);
data/funguloids-1.06/src/scriptsystem.cpp:542:28:  [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).
	DataStreamPtr dat = arch->open(String(file));
data/funguloids-1.06/include/SimpleIni/SimpleIni.h:1600:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        uLen = strlen((const char *)a_pString);
data/funguloids-1.06/include/SimpleIni/SimpleIni.h:1603:16:  [1] (buffer) wcslen:
  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).
        uLen = wcslen((const wchar_t *)a_pString);
data/funguloids-1.06/include/SimpleIni/SimpleIni.h:2300:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        return strlen((const char *)a_pInputData) + 1;
data/funguloids-1.06/include/SimpleIni/SimpleIni.h:2322:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t uInputLen = strlen((const char *)a_pInputData) + 1;
data/funguloids-1.06/include/mpakogre.h:90:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	size_t read(void *buf, size_t count);
data/funguloids-1.06/src/fmodexsoundsystem.cpp:93:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	*bytesRead = (unsigned int)soundResource->streamPtr->read(buffer, (size_t)sizeBytes);
data/funguloids-1.06/src/hiscore.cpp:181:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(mList[NUM_NAMES-1].name, name, NAME_LEN);
data/funguloids-1.06/src/hiscore.cpp:223:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(mList[f].name, "- - - - - - - - - - - - - - - -", NAME_LEN);
data/funguloids-1.06/src/menu.cpp:218:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(mNewName, "");
data/funguloids-1.06/src/mpak.cpp:175: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).
	size_t pos = strlen(path);
data/funguloids-1.06/src/mpak.cpp:199:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(files[f], "");
data/funguloids-1.06/src/mpak.cpp:266:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		id[0] = fgetc(fpointer);
data/funguloids-1.06/src/mpak.cpp:267:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		id[1] = fgetc(fpointer);
data/funguloids-1.06/src/mpak.cpp:268:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		id[2] = fgetc(fpointer);
data/funguloids-1.06/src/mpak.cpp:269:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		id[3] = fgetc(fpointer);
data/funguloids-1.06/src/mpak.cpp:306:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			int len = fgetc(fpointer);
data/funguloids-1.06/src/mpak.cpp:366:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t len = strlen(files[f])+1;
data/funguloids-1.06/src/mpakogre.cpp:226:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
size_t MPakDataStream::read(void *buf, size_t count) {
data/funguloids-1.06/src/openalsoundsystem.cpp:425:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	size_t bytesRead = soundResource->streamPtr->read(buffer, fileSize);

ANALYSIS SUMMARY:

Hits = 106
Lines analyzed = 14741 in approximately 0.36 seconds (40721 lines/second)
Physical Source Lines of Code (SLOC) = 8368
Hits@level = [0]  15 [1]  19 [2]  79 [3]   2 [4]   6 [5]   0
Hits@level+ = [0+] 121 [1+] 106 [2+]  87 [3+]   8 [4+]   6 [5+]   0
Hits/KSLOC@level+ = [0+] 14.4598 [1+] 12.6673 [2+] 10.3967 [3+] 0.956023 [4+] 0.717017 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.