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/chromium-bsu-0.9.16.1/src/EnemyAircraft_Omni.h Examining data/chromium-bsu-0.9.16.1/src/TextGLC.cpp Examining data/chromium-bsu-0.9.16.1/src/HiScore.h Examining data/chromium-bsu-0.9.16.1/src/HeroAircraft.h Examining data/chromium-bsu-0.9.16.1/src/Explosions.h Examining data/chromium-bsu-0.9.16.1/src/MenuGL.h Examining data/chromium-bsu-0.9.16.1/src/GroundSegment.h Examining data/chromium-bsu-0.9.16.1/src/Global.h Examining data/chromium-bsu-0.9.16.1/src/EnemyAircraft_Gnat.cpp Examining data/chromium-bsu-0.9.16.1/src/GroundSea.cpp Examining data/chromium-bsu-0.9.16.1/src/textGeometryBSU.cpp Examining data/chromium-bsu-0.9.16.1/src/TextFTGL.h Examining data/chromium-bsu-0.9.16.1/src/extern.h Examining data/chromium-bsu-0.9.16.1/src/GroundSea.h Examining data/chromium-bsu-0.9.16.1/src/main.h Examining data/chromium-bsu-0.9.16.1/src/Ground.cpp Examining data/chromium-bsu-0.9.16.1/src/GroundSeaSegment.h Examining data/chromium-bsu-0.9.16.1/src/TextFTGL.cpp Examining data/chromium-bsu-0.9.16.1/src/MainSDL_Event.cpp Examining data/chromium-bsu-0.9.16.1/src/MenuGL.cpp Examining data/chromium-bsu-0.9.16.1/src/ScreenItemAdd.cpp Examining data/chromium-bsu-0.9.16.1/src/ScreenItem.h Examining data/chromium-bsu-0.9.16.1/src/EnemyAircraft_Boss00.h Examining data/chromium-bsu-0.9.16.1/src/HeroAmmo.cpp Examining data/chromium-bsu-0.9.16.1/src/compatibility.h Examining data/chromium-bsu-0.9.16.1/src/AudioOpenAL.cpp Examining data/chromium-bsu-0.9.16.1/src/TextGLC.h Examining data/chromium-bsu-0.9.16.1/src/EnemyAircraft.cpp Examining data/chromium-bsu-0.9.16.1/src/Image.h Examining data/chromium-bsu-0.9.16.1/src/EnemyAircraft_RayGun.cpp Examining data/chromium-bsu-0.9.16.1/src/EnemyAircraft_Omni.cpp Examining data/chromium-bsu-0.9.16.1/src/EnemyFleet.cpp Examining data/chromium-bsu-0.9.16.1/src/Text.h Examining data/chromium-bsu-0.9.16.1/src/Ground.h Examining data/chromium-bsu-0.9.16.1/src/MainSDL.cpp Examining data/chromium-bsu-0.9.16.1/src/Config.cpp Examining data/chromium-bsu-0.9.16.1/src/textGeometryChromium.cpp Examining data/chromium-bsu-0.9.16.1/src/Ammo.h Examining data/chromium-bsu-0.9.16.1/src/ScreenItem.cpp Examining data/chromium-bsu-0.9.16.1/src/Ammo.cpp Examining data/chromium-bsu-0.9.16.1/src/EnemyAircraft_Tank.cpp Examining data/chromium-bsu-0.9.16.1/src/gettext.h Examining data/chromium-bsu-0.9.16.1/src/HeroAmmo.h Examining data/chromium-bsu-0.9.16.1/src/Explosions.cpp Examining data/chromium-bsu-0.9.16.1/src/Global.cpp Examining data/chromium-bsu-0.9.16.1/src/HeroAircraft.cpp Examining data/chromium-bsu-0.9.16.1/src/AudioOpenAL.h Examining data/chromium-bsu-0.9.16.1/src/GroundMetalSegment.cpp Examining data/chromium-bsu-0.9.16.1/src/EnemyAircraft_Boss01.cpp Examining data/chromium-bsu-0.9.16.1/src/Image.cpp Examining data/chromium-bsu-0.9.16.1/src/MainToolkit.cpp Examining data/chromium-bsu-0.9.16.1/src/EnemyAircraft_Tank.h Examining data/chromium-bsu-0.9.16.1/src/MainSDL.h Examining data/chromium-bsu-0.9.16.1/src/GroundMetalSegment.h Examining data/chromium-bsu-0.9.16.1/src/MainGLUT.cpp Examining data/chromium-bsu-0.9.16.1/src/GroundMetal.cpp Examining data/chromium-bsu-0.9.16.1/src/PowerUps.h Examining data/chromium-bsu-0.9.16.1/src/HiScore.cpp Examining data/chromium-bsu-0.9.16.1/src/ScreenItemAdd.h Examining data/chromium-bsu-0.9.16.1/src/MainGL.cpp Examining data/chromium-bsu-0.9.16.1/src/AudioSDLMixer.h Examining data/chromium-bsu-0.9.16.1/src/MainToolkit.h Examining data/chromium-bsu-0.9.16.1/src/GroundMetal.h Examining data/chromium-bsu-0.9.16.1/src/EnemyAircraft_Boss00.cpp Examining data/chromium-bsu-0.9.16.1/src/define.h Examining data/chromium-bsu-0.9.16.1/src/EnemyFleet.h Examining data/chromium-bsu-0.9.16.1/src/Text.cpp Examining data/chromium-bsu-0.9.16.1/src/GroundSegment.cpp Examining data/chromium-bsu-0.9.16.1/src/EnemyAmmo.cpp Examining data/chromium-bsu-0.9.16.1/src/EnemyAircraft_RayGun.h Examining data/chromium-bsu-0.9.16.1/src/GroundSeaSegment.cpp Examining data/chromium-bsu-0.9.16.1/src/StatusDisplay.h Examining data/chromium-bsu-0.9.16.1/src/Config.h Examining data/chromium-bsu-0.9.16.1/src/MainGL.h Examining data/chromium-bsu-0.9.16.1/src/MainGLUT.h Examining data/chromium-bsu-0.9.16.1/src/EnemyAircraft_Gnat.h Examining data/chromium-bsu-0.9.16.1/src/PowerUps.cpp Examining data/chromium-bsu-0.9.16.1/src/EnemyAircraft.h Examining data/chromium-bsu-0.9.16.1/src/EnemyAircraft_Boss01.h Examining data/chromium-bsu-0.9.16.1/src/EnemyAircraft_Straight.cpp Examining data/chromium-bsu-0.9.16.1/src/Audio.cpp Examining data/chromium-bsu-0.9.16.1/src/main.cpp Examining data/chromium-bsu-0.9.16.1/src/EnemyAircraft_Straight.h Examining data/chromium-bsu-0.9.16.1/src/EnemyAmmo.h Examining data/chromium-bsu-0.9.16.1/src/StatusDisplay.cpp Examining data/chromium-bsu-0.9.16.1/src/textGeometry.h Examining data/chromium-bsu-0.9.16.1/src/Audio.h Examining data/chromium-bsu-0.9.16.1/src/AudioSDLMixer.cpp FINAL RESULTS: data/chromium-bsu-0.9.16.1/src/Audio.cpp:280:16: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int status = system(command.c_str()); data/chromium-bsu-0.9.16.1/src/AudioOpenAL.cpp:215:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf( stderr, msg, ap ); data/chromium-bsu-0.9.16.1/src/AudioOpenAL.cpp:554:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(nameBuffer, "%s", dataLoc(fileNames[i])); data/chromium-bsu-0.9.16.1/src/AudioOpenAL.cpp:716:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(configFilename, "%s/%s", homeDir, CONFIG_MUSIC_FILE); data/chromium-bsu-0.9.16.1/src/AudioOpenAL.cpp:722:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(configOldFilename, "%s/.chromium-music" CONFIG_EXT, homeDir); data/chromium-bsu-0.9.16.1/src/AudioOpenAL.cpp:745:7: [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(musicFile[musicMax], buffer); data/chromium-bsu-0.9.16.1/src/AudioOpenAL.cpp:751:8: [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(musicFile[musicMax], buffer); data/chromium-bsu-0.9.16.1/src/AudioOpenAL.cpp:762:8: [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(musicFile[musicMax], buffer); data/chromium-bsu-0.9.16.1/src/Config.cpp:155:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(configFilename, "%s/%s", homeDir, CONFIG_FILE); data/chromium-bsu-0.9.16.1/src/Config.cpp:168:2: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(configFilename, "%s/.chromium" CONFIG_EXT, homeDir); data/chromium-bsu-0.9.16.1/src/Config.cpp:273:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(configFilename, "%s/%s", homeDir, CONFIG_FILE); data/chromium-bsu-0.9.16.1/src/HiScore.cpp:166: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(configFilename, envFile); data/chromium-bsu-0.9.16.1/src/HiScore.cpp:173:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(configFilename, "%s/%s", homeDir, CONFIG_SCORE_FILE); data/chromium-bsu-0.9.16.1/src/HiScore.cpp:190:2: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(configFilename, "%s/.chromium-score" CONFIG_EXT, homeDir); data/chromium-bsu-0.9.16.1/src/HiScore.cpp:374: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(hiScoreName[skill][i+1], hiScoreName[skill][i]); data/chromium-bsu-0.9.16.1/src/HiScore.cpp:381: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(hiScoreName[skill][rank], name); data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:437: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(mssgText, gettext(mssgHelpText[mssgIndex%NumMssg])); data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:467:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s", skillString(tmp)); data/chromium-bsu-0.9.16.1/src/main.cpp:201:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "%s/%s", getenv("CHROMIUM_BSU_DATA"), filename); data/chromium-bsu-0.9.16.1/src/main.cpp:207:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "%s/." PACKAGE "-data/%s", getenv("HOME"), filename); data/chromium-bsu-0.9.16.1/src/main.cpp:214:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "%s/%s", PKGDATADIR, filename); data/chromium-bsu-0.9.16.1/src/main.cpp:227:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "%s/%s", DATADIR, filename); data/chromium-bsu-0.9.16.1/src/main.cpp:258: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(extstr, extstr_in); data/chromium-bsu-0.9.16.1/src/AudioOpenAL.cpp:710:24: [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. const char *homeDir = getenv("HOME"); data/chromium-bsu-0.9.16.1/src/Config.cpp:150:24: [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. const char *homeDir = getenv("HOME"); data/chromium-bsu-0.9.16.1/src/Config.cpp:163:24: [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. const char *homeDir = getenv("HOME"); data/chromium-bsu-0.9.16.1/src/Config.cpp:268:24: [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. const char *homeDir = getenv("HOME"); data/chromium-bsu-0.9.16.1/src/HiScore.cpp:163:24: [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. const char *envFile = getenv("CHROMIUM_BSU_SCORE"); data/chromium-bsu-0.9.16.1/src/HiScore.cpp:170:25: [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. const char *homeDir = getenv("HOME"); data/chromium-bsu-0.9.16.1/src/HiScore.cpp:187:24: [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. const char *homeDir = getenv("HOME"); data/chromium-bsu-0.9.16.1/src/HiScore.cpp:270:16: [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 *tz = getenv("TZ"); data/chromium-bsu-0.9.16.1/src/HiScore.cpp:379: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 *name = getenv("USER"); data/chromium-bsu-0.9.16.1/src/TextFTGL.cpp:84: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. CHECK_FONT_PATH(getenv("CHROMIUM_BSU_FONT")) data/chromium-bsu-0.9.16.1/src/TextGLC.cpp:57:14: [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( NULL != getenv("CHROMIUM_BSU_FONT") ){ data/chromium-bsu-0.9.16.1/src/TextGLC.cpp:59:34: [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. glcNewFontFromFamily(userFont, getenv("CHROMIUM_BSU_FONT")); data/chromium-bsu-0.9.16.1/src/main.cpp:146: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/chromium-bsu-0.9.16.1/src/main.cpp:199:5: [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(getenv("CHROMIUM_BSU_DATA") != NULL && ((strlen(getenv("CHROMIUM_BSU_DATA"))+strlen(filename)) < 254) ) data/chromium-bsu-0.9.16.1/src/main.cpp:199:53: [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(getenv("CHROMIUM_BSU_DATA") != NULL && ((strlen(getenv("CHROMIUM_BSU_DATA"))+strlen(filename)) < 254) ) data/chromium-bsu-0.9.16.1/src/main.cpp:201:28: [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. sprintf(buffer, "%s/%s", getenv("CHROMIUM_BSU_DATA"), filename); data/chromium-bsu-0.9.16.1/src/main.cpp:205:5: [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(getenv("HOME") != NULL && ((strlen(getenv("HOME"))+strlen(filename)) < 239) ) data/chromium-bsu-0.9.16.1/src/main.cpp:205:40: [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(getenv("HOME") != NULL && ((strlen(getenv("HOME"))+strlen(filename)) < 239) ) data/chromium-bsu-0.9.16.1/src/main.cpp:207:46: [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. sprintf(buffer, "%s/." PACKAGE "-data/%s", getenv("HOME"), filename); data/chromium-bsu-0.9.16.1/src/Audio.cpp:108: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 buf[64]; data/chromium-bsu-0.9.16.1/src/Audio.cpp:114: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(buf, _("UNKNOWN(type=%d)"), t); data/chromium-bsu-0.9.16.1/src/Audio.h:68: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 *fileNames[NumSoundTypes]; /**< base filenames for sound effects */ data/chromium-bsu-0.9.16.1/src/Audio.h:72: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 musicFile[MAX_MUSIC][256]; /**< array of filenames for playlist */ data/chromium-bsu-0.9.16.1/src/AudioOpenAL.cpp:553: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 nameBuffer[256]; data/chromium-bsu-0.9.16.1/src/AudioOpenAL.cpp:706: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[1024]; data/chromium-bsu-0.9.16.1/src/AudioOpenAL.cpp:707: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 configFilename[256]; data/chromium-bsu-0.9.16.1/src/AudioOpenAL.cpp:718: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(configFilename, "r"); data/chromium-bsu-0.9.16.1/src/AudioOpenAL.cpp:721: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 configOldFilename[256]; data/chromium-bsu-0.9.16.1/src/AudioOpenAL.cpp:725: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). file = fopen(configFilename, "r"); data/chromium-bsu-0.9.16.1/src/AudioOpenAL.cpp:974: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, "rb"); data/chromium-bsu-0.9.16.1/src/AudioOpenAL.cpp:1026: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). file = fopen(filename, "rb"); data/chromium-bsu-0.9.16.1/src/Config.cpp:149: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 configFilename[256]; data/chromium-bsu-0.9.16.1/src/Config.cpp:162: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 configFilename[256]; data/chromium-bsu-0.9.16.1/src/Config.cpp:175: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 configStrings[32][64]; data/chromium-bsu-0.9.16.1/src/Config.cpp:230: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(configFilename, "r"); data/chromium-bsu-0.9.16.1/src/Config.cpp:239: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). file = fopen(configFilename, "r"); data/chromium-bsu-0.9.16.1/src/Config.cpp:266: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 configFilename[256]; data/chromium-bsu-0.9.16.1/src/Config.cpp:275: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(configFilename, "w"); data/chromium-bsu-0.9.16.1/src/EnemyAmmo.cpp:104: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[256]; data/chromium-bsu-0.9.16.1/src/EnemyAmmo.cpp:107: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(filename, "png/enemyAmmo%02d.png", i); data/chromium-bsu-0.9.16.1/src/EnemyFleet.cpp:61: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[256]; data/chromium-bsu-0.9.16.1/src/EnemyFleet.cpp:64: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(filename, "png/enemy%02d.png", i); data/chromium-bsu-0.9.16.1/src/HeroAmmo.cpp:88: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[256]; data/chromium-bsu-0.9.16.1/src/HeroAmmo.cpp:91: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(filename, "png/heroAmmo%02d.png", i); data/chromium-bsu-0.9.16.1/src/HiScore.cpp:58: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(hiScoreName[i][j], _("nobody")); data/chromium-bsu-0.9.16.1/src/HiScore.cpp:162: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 configFilename[256]; data/chromium-bsu-0.9.16.1/src/HiScore.cpp:186: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 configFilename[256]; data/chromium-bsu-0.9.16.1/src/HiScore.cpp:205: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(getFileName(), "w"); data/chromium-bsu-0.9.16.1/src/HiScore.cpp:259: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, "r"); data/chromium-bsu-0.9.16.1/src/HiScore.cpp:278: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 name[100]; data/chromium-bsu-0.9.16.1/src/HiScore.cpp:339: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). file = fopen(fileName, "r"); data/chromium-bsu-0.9.16.1/src/HiScore.cpp:375: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(&(hiScoreDate[skill][i+1]), &(hiScoreDate[skill][i]), sizeof(time_t)); data/chromium-bsu-0.9.16.1/src/HiScore.cpp:383: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(hiScoreName[skill][rank], "player"); data/chromium-bsu-0.9.16.1/src/HiScore.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 hiScoreName[10][HI_SCORE_HIST][100]; data/chromium-bsu-0.9.16.1/src/MainGL.cpp:308: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[256]; data/chromium-bsu-0.9.16.1/src/MainGL.cpp:311: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(buffer, _("new high score!\n\n%d"), (int)heroScore); data/chromium-bsu-0.9.16.1/src/MainGL.cpp:316: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(buffer, _("n o t b a d !\nrank : %d\n\n%d"), hiScore->check(skill, heroScore), (int)heroScore); data/chromium-bsu-0.9.16.1/src/MainGL.cpp:378: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[512]; data/chromium-bsu-0.9.16.1/src/MainGL.cpp:379: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(buffer, _("congratulations!\n \nl e v e l\n %d \nc o m p l e t e\n \n"), game->gameLevel); data/chromium-bsu-0.9.16.1/src/MainGL.cpp:400: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 *index[10] = { 0,0,0,0,0,0,0,0,0,0 }; data/chromium-bsu-0.9.16.1/src/MainGL.cpp:401: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[128]; data/chromium-bsu-0.9.16.1/src/MainSDL_Event.cpp:212: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 buffer[256] = { "-1 :K: 2 0 0 0 0 0"}; data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:42: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 mssgHelpText[NumMssg][128] = { data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:294: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 buf[16]; data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:319: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(buf, "%d", (int)hiScore->getScore(config->intSkill(), i) ); data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:452:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:462: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(buf, "%d", game->gameLevel); data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:473:13: [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. case 0: sprintf(buf, _("low")); break; data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:474:13: [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. case 1: sprintf(buf, _("med")); break; data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:475:13: [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. case 2: sprintf(buf, _("high")); break; data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:480: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(buf, _("%dx%d"), config->screenW(), config->screenH()); data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:484:29: [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. if(config->fullScreen()) sprintf(buf, _("true")); data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:485:9: [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(buf, _("false")); data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:489: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(buf, "%d", (int)((level+0.05)*10.0)); data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:493: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(buf, "%d", (int)((level+0.05)*10.0)); data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:497: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(buf, "%d", (int)((level+0.005)*100.0)); data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:791: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(mssgText, _("---- error setting full screen mode ----")); data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:793: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(mssgText, _("---- error setting window mode ----")); data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:834: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(mssgText, _("---- you must complete level %d before you can select level %d ----"), config->maxLevel(), game->gameLevel); data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:850: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(mssgText, _("---- error setting screen size ----")); data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:864: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(mssgText, _("---- error setting full screen mode ----")); data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:921: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(mssgText, _("---- error setting screen size ----")); data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:935: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(mssgText, _("---- error setting full screen mode ----")); data/chromium-bsu-0.9.16.1/src/MenuGL.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 *menuText[NumSelections]; data/chromium-bsu-0.9.16.1/src/MenuGL.h:90: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 mssgText[512]; data/chromium-bsu-0.9.16.1/src/StatusDisplay.cpp:76: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[128]; data/chromium-bsu-0.9.16.1/src/StatusDisplay.cpp:90: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(filename, "png/heroAmmoFlash%02d.png", i); data/chromium-bsu-0.9.16.1/src/StatusDisplay.cpp:96: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(filename, "png/useItem%02d.png", i); data/chromium-bsu-0.9.16.1/src/StatusDisplay.cpp:146: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 scoreBuf[32]; data/chromium-bsu-0.9.16.1/src/StatusDisplay.cpp:174: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(scoreBuf, "%07d", (int)hero->getScore()); data/chromium-bsu-0.9.16.1/src/StatusDisplay.cpp:183: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(scoreBuf, "%3.1f", game->fps); data/chromium-bsu-0.9.16.1/src/main.cpp:196: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 buffer[256]; data/chromium-bsu-0.9.16.1/src/AudioOpenAL.cpp:732:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int tmp = strlen(buffer); data/chromium-bsu-0.9.16.1/src/AudioOpenAL.cpp:736: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). if(strlen(buffer) > 255) data/chromium-bsu-0.9.16.1/src/AudioOpenAL.cpp:740:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if(strlen(buffer) > 4) data/chromium-bsu-0.9.16.1/src/HiScore.cpp:164: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). if(envFile && strlen(envFile) < 256) data/chromium-bsu-0.9.16.1/src/HiScore.cpp:262:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int chr = fgetc(file); data/chromium-bsu-0.9.16.1/src/HiScore.cpp:286:15: [1] (buffer) fscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. fields = fscanf(file, data/chromium-bsu-0.9.16.1/src/HiScore.cpp:302:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(hiScoreName[i][j], name, 99); data/chromium-bsu-0.9.16.1/src/MainGL.cpp:412:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer, string, 128); data/chromium-bsu-0.9.16.1/src/MainGL.cpp:427:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(index[l] && strlen(index[l]) > 0) data/chromium-bsu-0.9.16.1/src/MenuGL.cpp:86:2: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. sprintf(mssgText, " "); data/chromium-bsu-0.9.16.1/src/main.cpp:199:46: [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(getenv("CHROMIUM_BSU_DATA") != NULL && ((strlen(getenv("CHROMIUM_BSU_DATA"))+strlen(filename)) < 254) ) data/chromium-bsu-0.9.16.1/src/main.cpp:199:82: [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(getenv("CHROMIUM_BSU_DATA") != NULL && ((strlen(getenv("CHROMIUM_BSU_DATA"))+strlen(filename)) < 254) ) data/chromium-bsu-0.9.16.1/src/main.cpp:205:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(getenv("HOME") != NULL && ((strlen(getenv("HOME"))+strlen(filename)) < 239) ) data/chromium-bsu-0.9.16.1/src/main.cpp:205:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(getenv("HOME") != NULL && ((strlen(getenv("HOME"))+strlen(filename)) < 239) ) data/chromium-bsu-0.9.16.1/src/main.cpp:212: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(PKGDATADIR)+strlen(filename)) < 254) ) data/chromium-bsu-0.9.16.1/src/main.cpp:212:27: [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(PKGDATADIR)+strlen(filename)) < 254) ) data/chromium-bsu-0.9.16.1/src/main.cpp:225: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). if( (strlen(DATADIR)+strlen(filename)) < 254) data/chromium-bsu-0.9.16.1/src/main.cpp:225: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). if( (strlen(DATADIR)+strlen(filename)) < 254) data/chromium-bsu-0.9.16.1/src/main.cpp:255:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(extstr_in); ANALYSIS SUMMARY: Hits = 134 Lines analyzed = 24709 in approximately 1.10 seconds (22565 lines/second) Physical Source Lines of Code (SLOC) = 18301 Hits@level = [0] 211 [1] 19 [2] 73 [3] 19 [4] 23 [5] 0 Hits@level+ = [0+] 345 [1+] 134 [2+] 115 [3+] 42 [4+] 23 [5+] 0 Hits/KSLOC@level+ = [0+] 18.8514 [1+] 7.322 [2+] 6.28381 [3+] 2.29496 [4+] 1.25676 [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.