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/cytadela-1.1.0/cytadela_private.h
Examining data/cytadela-1.1.0/src/UsableItem.h
Examining data/cytadela-1.1.0/src/CytadelaDefinitions.h
Examining data/cytadela-1.1.0/src/CCytadelaConfig.h
Examining data/cytadela-1.1.0/src/main.cpp
Examining data/cytadela-1.1.0/src/farread.cpp
Examining data/cytadela-1.1.0/src/GameControl.cpp
Examining data/cytadela-1.1.0/src/CCytadelaMain.cpp
Examining data/cytadela-1.1.0/src/CInfoText.cpp
Examining data/cytadela-1.1.0/src/CSDLClass.cpp
Examining data/cytadela-1.1.0/src/CInfoText.h
Examining data/cytadela-1.1.0/src/CCytadelaGame.cpp
Examining data/cytadela-1.1.0/src/CCytadelaMenu.cpp
Examining data/cytadela-1.1.0/src/UsableItem.cpp
Examining data/cytadela-1.1.0/src/COGLClass.cpp
Examining data/cytadela-1.1.0/src/cmf/fileio.h
Examining data/cytadela-1.1.0/src/cmf/GameObjectsManager.cpp
Examining data/cytadela-1.1.0/src/cmf/fileio.cpp
Examining data/cytadela-1.1.0/src/cmf/File3Dg.cpp
Examining data/cytadela-1.1.0/src/cmf/File3Dg.h
Examining data/cytadela-1.1.0/src/cmf/CMFile.cpp
Examining data/cytadela-1.1.0/src/cmf/GameObjectsManager.h
Examining data/cytadela-1.1.0/src/cmf/CMFile.h
Examining data/cytadela-1.1.0/src/cmf/Enemy.cpp
Examining data/cytadela-1.1.0/src/cmf/Enemy.h
Examining data/cytadela-1.1.0/src/cmf/I3Dg.cpp
Examining data/cytadela-1.1.0/src/cmf/I3Dg.h
Examining data/cytadela-1.1.0/src/CCytadelaMenu.h
Examining data/cytadela-1.1.0/src/GameControl.h
Examining data/cytadela-1.1.0/src/CCytadelaMain.h
Examining data/cytadela-1.1.0/src/videoplayer.cpp
Examining data/cytadela-1.1.0/src/videoplayer.h
Examining data/cytadela-1.1.0/src/CytadelaSaveFile.h
Examining data/cytadela-1.1.0/src/COGLClass.h
Examining data/cytadela-1.1.0/src/CSDLClass.h
Examining data/cytadela-1.1.0/src/CytadelaSaveFile.cpp
Examining data/cytadela-1.1.0/src/Localization.h
Examining data/cytadela-1.1.0/src/farread.h
Examining data/cytadela-1.1.0/src/CCytadelaGame.h
Examining data/cytadela-1.1.0/src/Localization.cpp
Examining data/cytadela-1.1.0/src/CCytadelaConfig.cpp

FINAL RESULTS:

data/cytadela-1.1.0/src/CCytadelaConfig.cpp:126:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mConfigFilePath, "%s/cytadela.cfg", sysDirPath);
data/cytadela-1.1.0/src/CCytadelaConfig.cpp:144:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(mLocalization, CYTADELA_DEFAULT_LOCALIZATION);
data/cytadela-1.1.0/src/CCytadelaConfig.cpp:270:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(mLocalization, "%s", localization);
data/cytadela-1.1.0/src/CCytadelaGame.cpp:210:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(fontPath, "tex/fonts/%s.far", mLocInterface->getCurrentLocalization());
data/cytadela-1.1.0/src/CCytadelaMain.cpp:43: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(mSysDirPath, sysDirPath);
data/cytadela-1.1.0/src/CCytadelaMain.cpp:364:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(localizationName, "%s", entryNames[chosenLocalization].c_str());
data/cytadela-1.1.0/src/CCytadelaMain.cpp:421:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(errorText, "USING DEFAULT (%s) LOCALIZATION", CYTADELA_DEFAULT_LOCALIZATION);
data/cytadela-1.1.0/src/CCytadelaMain.cpp:579:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(fontPath, "tex/fonts/%s.far", mLocalization->getCurrentLocalization());
data/cytadela-1.1.0/src/CCytadelaMain.cpp:593:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(text, "%s", mSaveNames[mLevel]);
data/cytadela-1.1.0/src/CCytadelaMain.cpp:596:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(text, "%s%s %c %s!", text, mLocalization->getText(LOC_END_LEVEL),
data/cytadela-1.1.0/src/CCytadelaMain.cpp:763:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(fontPath, "tex/fonts/%s.far", mLocalization->getCurrentLocalization());
data/cytadela-1.1.0/src/CCytadelaMain.cpp:784:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(text, "%s:%s", mLocalization->getText(LOC_CPLX_MENU_COMPLEX),
data/cytadela-1.1.0/src/CCytadelaMain.cpp:787:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(text, "%s:%s", mLocalization->getText(LOC_CPLX_MENU_STATUS),
data/cytadela-1.1.0/src/CCytadelaMain.cpp:837:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
							sprintf(text, "%s %s", mLocalization->getText(LOC_CPLX_MENU_CHOSEN),
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:35:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_MAIN][0], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:39:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_MAIN][1], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:43:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_MAIN][2], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:47:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_MAIN][3], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:54:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_MAIN][5], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:64:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_LOAD][5], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:72:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_SETTINGS][1], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:76:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_SETTINGS][2], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:80:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_SETTINGS][3], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:87:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_SETTINGS][5], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:92:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_TRAINING][0], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:96:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_TRAINING][1], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:100:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_TRAINING][2], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:104:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_TRAINING][3], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:108:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_TRAINING][4], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:112:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_TRAINING][5], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:121:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_VIDEO][5], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:130:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_GAME_SPEED][5], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:139:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_AUDIO][5], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:295:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(textBuffer, "tex/fonts/%s.far", mLocalization->getCurrentLocalization());
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:305:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(mMenuTexts[MENU_LOAD][i], "%s", saveNames[i]);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:314:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_SETTINGS][0], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:319:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_VIDEO][0], "%s", textBuffer);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:325:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_VIDEO][1], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:338:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_GAME_SPEED][1], "%s %.1f", mLocalization->getText(LOC_MENU_SPEED_MOUSE), mouseSpeed);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:343:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_AUDIO][0], "%s", audio ? mLocalization->getText(LOC_YES) : mLocalization->getText(LOC_NO));
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:436:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(mMenuTexts[MENU_SETTINGS][0], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:578:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_VIDEO][1], "%s", text);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:587:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_GAME_SPEED][0], "%s %.0f%%",
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:596:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_GAME_SPEED][1], "%s %.1f", mLocalization->getText(LOC_MENU_SPEED_MOUSE), mouseSpeed);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:604:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mMenuTexts[MENU_AUDIO][0], "%s", audio ? mLocalization->getText(LOC_YES) : mLocalization->getText(LOC_NO));
data/cytadela-1.1.0/src/COGLClass.cpp:925:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(&mOSDText[osdTextLen], "%s", text);
data/cytadela-1.1.0/src/CytadelaSaveFile.cpp:35:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(saveFilePath, "%s/sav", sysDirPath);
data/cytadela-1.1.0/src/CytadelaSaveFile.cpp:80:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(saveFilePath, "%s/sav", sysDirPath);
data/cytadela-1.1.0/src/Localization.cpp:460:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(mCurrentLocalization, CYTADELA_DEFAULT_LOCALIZATION);
data/cytadela-1.1.0/src/Localization.cpp:465:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(szLocFile, "locale/%s.loc", localization);
data/cytadela-1.1.0/src/Localization.cpp:595:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mCurrentLocalization, "%s", localization);
data/cytadela-1.1.0/src/CCytadelaGame.cpp:164: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(0));
data/cytadela-1.1.0/src/main.cpp:81:18:  [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 *homeDir = getenv("HOME");
data/cytadela-1.1.0/src/CCytadelaConfig.cpp:72: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).
	dest = atoi(&value[position]);
data/cytadela-1.1.0/src/CCytadelaConfig.cpp:220: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[8] = {0};
data/cytadela-1.1.0/src/CCytadelaConfig.h:34: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     mLocalization[FILENAME_MAX];
data/cytadela-1.1.0/src/CCytadelaConfig.h:49: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     mConfigFilePath[FILENAME_MAX];
data/cytadela-1.1.0/src/CCytadelaGame.cpp:204: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.
	const char *imgPaths[OSDIMG_IMAGES_COUNT];
data/cytadela-1.1.0/src/CCytadelaGame.cpp:209: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 fontPath[FILENAME_MAX];
data/cytadela-1.1.0/src/CCytadelaGame.cpp:415:14:  [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).
	if(not file.open(szLevel)) {
data/cytadela-1.1.0/src/CCytadelaGame.cpp:881: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 speed[16];
data/cytadela-1.1.0/src/CCytadelaGame.cpp:882: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(speed, " %.1f", mConfig->getMouseSpeed());
data/cytadela-1.1.0/src/CCytadelaGame.cpp:891: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 speed[16];
data/cytadela-1.1.0/src/CCytadelaGame.cpp:892: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(speed, " %.1f", mConfig->getMouseSpeed());
data/cytadela-1.1.0/src/CCytadelaGame.cpp:1343: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 szPos[16];
data/cytadela-1.1.0/src/CCytadelaGame.cpp:1344: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(szPos, ": %d - %d", mPosition[0], mPosition[1]);
data/cytadela-1.1.0/src/CCytadelaGame.h:112:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char  mPlayerText[USERTEXT_LEN];
data/cytadela-1.1.0/src/CCytadelaMain.cpp:207: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 versionString[4];
data/cytadela-1.1.0/src/CCytadelaMain.cpp:208: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(versionString, version.c_str(), 3 * sizeof(char));
data/cytadela-1.1.0/src/CCytadelaMain.cpp:349: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 localizationName[FILENAME_MAX];
data/cytadela-1.1.0/src/CCytadelaMain.cpp:385:42:  [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.
				mSDL->displayText(fontImgNum, (const char *)entryNames[l].c_str(), 400,
data/cytadela-1.1.0/src/CCytadelaMain.cpp:420: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 errorText[FILENAME_MAX];
data/cytadela-1.1.0/src/CCytadelaMain.cpp:578: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 fontPath[FILENAME_MAX];
data/cytadela-1.1.0/src/CCytadelaMain.cpp:592:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char text[40];
data/cytadela-1.1.0/src/CCytadelaMain.cpp:602: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(text, "%d", mState.killed);
data/cytadela-1.1.0/src/CCytadelaMain.cpp:608: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(text, "%d:", hours);
data/cytadela-1.1.0/src/CCytadelaMain.cpp:610: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(text + 2, "%d:", minutes);
data/cytadela-1.1.0/src/CCytadelaMain.cpp:611:7:  [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.
	else sprintf(text + 2, "0%d:", minutes);
data/cytadela-1.1.0/src/CCytadelaMain.cpp:613: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(text + 5, "%d", seconds);
data/cytadela-1.1.0/src/CCytadelaMain.cpp:614:7:  [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.
	else sprintf(text + 5, "0%d", seconds);
data/cytadela-1.1.0/src/CCytadelaMain.cpp:616: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(text, "%d", mState.bomb);
data/cytadela-1.1.0/src/CCytadelaMain.cpp:762: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 fontPath[FILENAME_MAX];
data/cytadela-1.1.0/src/CCytadelaMain.cpp:775: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[56];
data/cytadela-1.1.0/src/CCytadelaMain.cpp:1091: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.
		const char *saveNames[NumberOfSaves];
data/cytadela-1.1.0/src/CCytadelaMain.h:36: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.
	const char    *mLevels[26];
data/cytadela-1.1.0/src/CCytadelaMain.h:37: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.
	const char    *mSaveNames[21];
data/cytadela-1.1.0/src/CCytadelaMain.h:38: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.
	const char    *mCplxNames[NumberOfComplexes];
data/cytadela-1.1.0/src/CCytadelaMain.h:39:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char    *mCplxStatusName[4];
data/cytadela-1.1.0/src/CCytadelaMain.h:48:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char           mSysDirPath[FILENAME_MAX];
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:294: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 textBuffer[FILENAME_MAX];
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:318: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(textBuffer, "%dX%d", screenSize[0], screenSize[1]);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:563: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(mMenuTexts[MENU_VIDEO][0], "%dX%d", sizes[i].resolution[0], sizes[i].resolution[1]);
data/cytadela-1.1.0/src/CCytadelaMenu.h:81:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char         mMenuTexts[MENU_COUNT][6][20];
data/cytadela-1.1.0/src/CInfoText.cpp:27:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void CInfoText::init(const char *textsPointer[MAX_TEXTS_IN_CLASS], int32_t textsQuantity)
data/cytadela-1.1.0/src/CInfoText.h:63: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.
	const char   *mTexts[MAX_TEXTS_IN_CLASS];
data/cytadela-1.1.0/src/CInfoText.h:68: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.
	void init(const char *textsPointer[MAX_TEXTS_IN_CLASS], int32_t textsQuantity);
data/cytadela-1.1.0/src/COGLClass.cpp:138: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(verNum, gluGetString(GLU_VERSION), 3 * sizeof(char));
data/cytadela-1.1.0/src/COGLClass.cpp:145: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(verNum, glGetString(GL_VERSION), 3 * sizeof(char));
data/cytadela-1.1.0/src/COGLClass.cpp:708: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(mPlotterVerts, plotterV, 8 * sizeof(float));
data/cytadela-1.1.0/src/COGLClass.cpp:709: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(mPlotterTexCoords, plotterT, 8 * sizeof(float));
data/cytadela-1.1.0/src/COGLClass.cpp:1003: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(&mPlotterVerts[mPlotterElements * 8], newVerts, 8 * sizeof(float));
data/cytadela-1.1.0/src/COGLClass.cpp:1004: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(&mPlotterTexCoords[mPlotterElements * 8], newTC, 8 * sizeof(float));
data/cytadela-1.1.0/src/COGLClass.cpp:1235: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(&noisePixels[i * 2048], noiseLine, 1280);
data/cytadela-1.1.0/src/COGLClass.cpp:1253: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(&noisePixels[i * 2048], noiseLine, 1280);
data/cytadela-1.1.0/src/COGLClass.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      mOSDText[128];
data/cytadela-1.1.0/src/CSDLClass.cpp:611: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(&dest[i * linewidth], &data[size - ((i + 1) * linewidth)], linewidth);
data/cytadela-1.1.0/src/CSDLClass.h:39:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *resolutionString[2];
data/cytadela-1.1.0/src/CytadelaSaveFile.cpp:34: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 saveFilePath[FILENAME_MAX];
data/cytadela-1.1.0/src/CytadelaSaveFile.cpp:36: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 *saveFile = fopen(saveFilePath, "rb");
data/cytadela-1.1.0/src/CytadelaSaveFile.cpp:79: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 saveFilePath[FILENAME_MAX];
data/cytadela-1.1.0/src/CytadelaSaveFile.cpp:81: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 *saveFile = fopen(saveFilePath, "wb");
data/cytadela-1.1.0/src/Localization.cpp:464: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 szLocFile[FILENAME_MAX];
data/cytadela-1.1.0/src/Localization.cpp:466: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 *pLocFile = fopen(szLocFile, "rb");
data/cytadela-1.1.0/src/Localization.cpp:523:15:  [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 *pMultipleTextsPointers[30];
data/cytadela-1.1.0/src/Localization.cpp:564:34:  [2] (integer) atol:
  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).
			eTextNumber = (LocalizedTexts)atol(szTextNumber);
data/cytadela-1.1.0/src/Localization.h:177: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  mCurrentLocalization[FILENAME_MAX];
data/cytadela-1.1.0/src/Localization.h:179: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.
	const char *mLocalizedTexts[LOCALIZED_TEXTS_COUNT];
data/cytadela-1.1.0/src/cmf/CMFile.cpp:32:14:  [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).
bool CMFile::open(const char *filename)
data/cytadela-1.1.0/src/cmf/CMFile.cpp:41: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).
	mFilePtr = fopen(cmfile.c_str(), "rb");
data/cytadela-1.1.0/src/cmf/CMFile.h:42: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).
	bool open(const char *filename);
data/cytadela-1.1.0/src/cmf/File3Dg.cpp:43:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *file = fopen(fileName, "rb");
data/cytadela-1.1.0/src/cmf/I3Dg.cpp:238: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(texture->path, texPath, pathBufferSize * sizeof(char));
data/cytadela-1.1.0/src/farread.cpp:239:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(tmp, readData, bitsSize);
data/cytadela-1.1.0/src/farread.cpp:246: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(&readData[linebegin], &tmp[bitsSize - linewidth - linebegin], linewidth);
data/cytadela-1.1.0/src/farread.cpp:260:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(tmp, readData, bitsSize);
data/cytadela-1.1.0/src/farread.cpp:272: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(&readData[to], &tmp[from], bytes);
data/cytadela-1.1.0/src/farread.cpp:291:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *file = fopen(farFileName, "rb");
data/cytadela-1.1.0/src/main.cpp:57: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 dataDir[FILENAME_MAX] = {0};
data/cytadela-1.1.0/src/main.cpp:64:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *file = fopen("obj/PodziemiaT.3dg", "rb");
data/cytadela-1.1.0/src/videoplayer.cpp:126: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 format[40];
data/cytadela-1.1.0/src/videoplayer.cpp:127: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(format, "RV%d", screen->format->BitsPerPixel);
data/cytadela-1.1.0/src/CCytadelaConfig.cpp:269:5:  [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(localization) < FILENAME_MAX)
data/cytadela-1.1.0/src/CCytadelaGame.cpp:1103: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).
	size_t codeLength = strlen(code);
data/cytadela-1.1.0/src/CCytadelaMain.cpp:594: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).
	char levelNum = text[strlen(text) - 1];
data/cytadela-1.1.0/src/CCytadelaMain.cpp:595: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).
	text[strlen(text) - 1] = 0;
data/cytadela-1.1.0/src/CCytadelaMain.cpp:598:43:  [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).
	mSDL->displayText(font, text, 626 - 16 * strlen(text), 92);
data/cytadela-1.1.0/src/CCytadelaMain.cpp:668:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if(not saveFile.read(mSysDirPath))
data/cytadela-1.1.0/src/CCytadelaMain.cpp:1031:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mSDL->displayText(fontImg, errText, 320 - (strlen(errText) * 8), 200);
data/cytadela-1.1.0/src/CCytadelaMain.cpp:1081:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if(not saveFile.read(mSysDirPath)) {
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:36: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).
	mMenuTextsXOffs[MENU_MAIN][0] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:40: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).
	mMenuTextsXOffs[MENU_MAIN][1] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:44: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).
	mMenuTextsXOffs[MENU_MAIN][2] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:48: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).
	mMenuTextsXOffs[MENU_MAIN][3] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:55: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).
	mMenuTextsXOffs[MENU_MAIN][5] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:65: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).
	mMenuTextsXOffs[MENU_LOAD][5] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:73:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mMenuTextsXOffs[MENU_SETTINGS][1] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:77:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mMenuTextsXOffs[MENU_SETTINGS][2] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:81:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mMenuTextsXOffs[MENU_SETTINGS][3] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:88:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mMenuTextsXOffs[MENU_SETTINGS][5] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:93:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mMenuTextsXOffs[MENU_TRAINING][0] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:97:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mMenuTextsXOffs[MENU_TRAINING][1] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:101:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mMenuTextsXOffs[MENU_TRAINING][2] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:105:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mMenuTextsXOffs[MENU_TRAINING][3] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:109:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mMenuTextsXOffs[MENU_TRAINING][4] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:113:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mMenuTextsXOffs[MENU_TRAINING][5] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:122: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).
	mMenuTextsXOffs[MENU_VIDEO][5] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:131:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mMenuTextsXOffs[MENU_GAME_SPEED][5] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:140: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).
	mMenuTextsXOffs[MENU_AUDIO][5] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:315:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mMenuTextsXOffs[MENU_SETTINGS][0] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:320: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).
	mMenuTextsXOffs[MENU_VIDEO][0] = 120 - (strlen(textBuffer) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:326: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).
	mMenuTextsXOffs[MENU_VIDEO][1] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:339:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mMenuTextsXOffs[MENU_GAME_SPEED][1] = 120 - (strlen(mMenuTexts[MENU_GAME_SPEED][1]) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:344: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).
	mMenuTextsXOffs[MENU_AUDIO][0] = 120 - (strlen(mMenuTexts[MENU_AUDIO][0]) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:437:49:  [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).
					mMenuTextsXOffs[MENU_SETTINGS][0] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:537: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).
	int32_t actualScreenSizeStrLen = strlen(mMenuTexts[MENU_VIDEO][0]);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:564: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).
	mMenuTextsXOffs[MENU_VIDEO][0] = 120 - (strlen(mMenuTexts[MENU_VIDEO][0]) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:579: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).
	mMenuTextsXOffs[MENU_VIDEO][1] = 120 - (strlen(text) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:597:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mMenuTextsXOffs[MENU_GAME_SPEED][1] = 120 - (strlen(mMenuTexts[MENU_GAME_SPEED][1]) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:605: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).
	mMenuTextsXOffs[MENU_AUDIO][0] = 120 - (strlen(mMenuTexts[MENU_AUDIO][0]) * 8);
data/cytadela-1.1.0/src/CCytadelaMenu.cpp:706:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t textLen = strlen(mInfoText);
data/cytadela-1.1.0/src/COGLClass.cpp:119: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).
		ptr = &ptr[strlen(extname)];
data/cytadela-1.1.0/src/COGLClass.cpp:545: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).
	char *texFileName = &texture->path[strlen(texture->path) + 1];
data/cytadela-1.1.0/src/COGLClass.cpp:919:32:  [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).
	uint32_t newChars = (uint32_t)strlen(text);
data/cytadela-1.1.0/src/COGLClass.cpp:920: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).
	uint32_t osdTextLen = strlen(mOSDText);
data/cytadela-1.1.0/src/COGLClass.cpp:937: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).
		int32_t strLen = strlen(mOSDText);
data/cytadela-1.1.0/src/CSDLClass.cpp:350: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).
	uint32_t textLen = strlen(text);
data/cytadela-1.1.0/src/CytadelaSaveFile.cpp:32:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool CytadelaSaveFile::read(const char *sysDirPath)
data/cytadela-1.1.0/src/CytadelaSaveFile.h:49:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bool read(const char *sysDirPath);
data/cytadela-1.1.0/src/Localization.cpp:547: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).
				i += strlen(&mLocalizationFileBuffer[i]) + 1;
data/cytadela-1.1.0/src/Localization.cpp:570: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).
				i += strlen(&mLocalizationFileBuffer[i]) + 1;
data/cytadela-1.1.0/src/Localization.cpp:576: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).
			i += strlen(&mLocalizationFileBuffer[i]) + 1;
data/cytadela-1.1.0/src/cmf/CMFile.cpp:62:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if(not ((File3Dg *)geometry)->read(m3DgFilePath.c_str()))
data/cytadela-1.1.0/src/cmf/File3Dg.cpp:41:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool File3Dg::read(const char *fileName)
data/cytadela-1.1.0/src/cmf/File3Dg.cpp:48:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if(not read(file)) {
data/cytadela-1.1.0/src/cmf/File3Dg.cpp:287:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool File3Dg::read(FILE *file)
data/cytadela-1.1.0/src/cmf/File3Dg.h:41:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bool read(FILE *file);
data/cytadela-1.1.0/src/cmf/File3Dg.h:59:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bool read(const char *fileName);

ANALYSIS SUMMARY:

Hits = 187
Lines analyzed = 14685 in approximately 0.73 seconds (20054 lines/second)
Physical Source Lines of Code (SLOC) = 11245
Hits@level = [0] 157 [1]  56 [2]  78 [3]   2 [4]  51 [5]   0
Hits@level+ = [0+] 344 [1+] 187 [2+] 131 [3+]  53 [4+]  51 [5+]   0
Hits/KSLOC@level+ = [0+] 30.5914 [1+] 16.6296 [2+] 11.6496 [3+] 4.71321 [4+] 4.53535 [5+]   0
Dot directories skipped = 2 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.