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/planetblupi-1.14.2/src/action.cxx Examining data/planetblupi-1.14.2/src/action.h Examining data/planetblupi-1.14.2/src/blupi.cxx Examining data/planetblupi-1.14.2/src/blupi.h Examining data/planetblupi-1.14.2/src/button.cxx Examining data/planetblupi-1.14.2/src/button.h Examining data/planetblupi-1.14.2/src/decblupi.cxx Examining data/planetblupi-1.14.2/src/decgoal.cxx Examining data/planetblupi-1.14.2/src/decgoal.h Examining data/planetblupi-1.14.2/src/decio.cxx Examining data/planetblupi-1.14.2/src/decmap.cxx Examining data/planetblupi-1.14.2/src/decmove.cxx Examining data/planetblupi-1.14.2/src/decmove.h Examining data/planetblupi-1.14.2/src/decor.cxx Examining data/planetblupi-1.14.2/src/decor.h Examining data/planetblupi-1.14.2/src/decstat.cxx Examining data/planetblupi-1.14.2/src/def.h Examining data/planetblupi-1.14.2/src/display.cxx Examining data/planetblupi-1.14.2/src/display.h Examining data/planetblupi-1.14.2/src/event.cxx Examining data/planetblupi-1.14.2/src/event.h Examining data/planetblupi-1.14.2/src/fifo.cxx Examining data/planetblupi-1.14.2/src/fifo.h Examining data/planetblupi-1.14.2/src/fix.cxx Examining data/planetblupi-1.14.2/src/fog.cxx Examining data/planetblupi-1.14.2/src/gettext.h Examining data/planetblupi-1.14.2/src/json/json.hpp Examining data/planetblupi-1.14.2/src/menu.cxx Examining data/planetblupi-1.14.2/src/menu.h Examining data/planetblupi-1.14.2/src/misc.cxx Examining data/planetblupi-1.14.2/src/misc.h Examining data/planetblupi-1.14.2/src/movie.cxx Examining data/planetblupi-1.14.2/src/movie.h Examining data/planetblupi-1.14.2/src/obstacle.cxx Examining data/planetblupi-1.14.2/src/path.cxx Examining data/planetblupi-1.14.2/src/pixmap.cxx Examining data/planetblupi-1.14.2/src/pixmap.h Examining data/planetblupi-1.14.2/src/platform.h Examining data/planetblupi-1.14.2/src/platform/platform_js.cxx Examining data/planetblupi-1.14.2/src/platform/platform_sdl.cxx Examining data/planetblupi-1.14.2/src/progress.cxx Examining data/planetblupi-1.14.2/src/progress.h Examining data/planetblupi-1.14.2/src/sound.cxx Examining data/planetblupi-1.14.2/src/sound.h Examining data/planetblupi-1.14.2/src/text.cxx Examining data/planetblupi-1.14.2/src/text.h FINAL RESULTS: data/planetblupi-1.14.2/src/blupi.cxx:512:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (buffer, msg); data/planetblupi-1.14.2/src/blupi.cxx:1154:5: [4] (shell) execv: 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. execv (argv0.c_str (), const_cast<char **> (&_argv[0])); data/planetblupi-1.14.2/src/event.cxx:4957:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (m_libelle, text); data/planetblupi-1.14.2/src/event.cxx:4966:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf (string, sizeof (string), buffer, term.nbMaxBlupi); data/planetblupi-1.14.2/src/event.cxx:4968:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (m_libelle, string); data/planetblupi-1.14.2/src/menu.cxx:331:11: [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 (text, pText + 1); data/planetblupi-1.14.2/src/misc.h:55:17: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. size_t size = snprintf (nullptr, 0, format.c_str (), args...) + 1; data/planetblupi-1.14.2/src/misc.h:57:3: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf (buf.get (), size, format.c_str (), args...); data/planetblupi-1.14.2/src/pixmap.cxx:27:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. #define access _access data/planetblupi-1.14.2/src/pixmap.cxx:348:17: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. Sint32 access, ow, w, oh, h; data/planetblupi-1.14.2/src/pixmap.cxx:349:40: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. SDL_QueryTexture (texture, &format, &access, &ow, &oh); data/planetblupi-1.14.2/src/blupi.cxx:784:8: [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 ("ALSA_CONFIG_DIR")) data/planetblupi-1.14.2/src/blupi.cxx:1137:9: [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 ("APPIMAGE")) data/planetblupi-1.14.2/src/blupi.cxx:1138: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. argv0 = getenv ("APPIMAGE"); data/planetblupi-1.14.2/src/blupi.cxx:509:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[100]; data/planetblupi-1.14.2/src/blupi.cxx:511: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 (buffer, "Error ("); data/planetblupi-1.14.2/src/blupi.cxx:532: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 (&(mem->buffer[mem->size]), ptr, realsize); data/planetblupi-1.14.2/src/blupi.cxx:786:12: [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 env[256]; data/planetblupi-1.14.2/src/decio.cxx:38: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 buttonExist[MAXBUTTON]; data/planetblupi-1.14.2/src/decio.cxx:80: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 rankUsed[MAXUSED]; data/planetblupi-1.14.2/src/decio.cxx:103: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 reserve2[2]; data/planetblupi-1.14.2/src/decio.cxx:128: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.c_str (), "wb"); data/planetblupi-1.14.2/src/decio.cxx:221: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.c_str (), "rb"); data/planetblupi-1.14.2/src/decio.cxx:310:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (m_blupi + i, &oldBlupi, sizeof (OldBlupi)); data/planetblupi-1.14.2/src/decio.cxx:370: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.c_str (), "rb"); data/planetblupi-1.14.2/src/decmap.cxx:408: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 color_deffog[4] = { data/planetblupi-1.14.2/src/decmap.cxx:415: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 color_deftree[4] = { data/planetblupi-1.14.2/src/decmap.cxx:422: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 color_deffloor[4] = { data/planetblupi-1.14.2/src/decmap.cxx:429: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 color_fire[4] = { data/planetblupi-1.14.2/src/decor.cxx:241: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 filename[50]; data/planetblupi-1.14.2/src/decor.cxx:764: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 string[20]; data/planetblupi-1.14.2/src/decor.cxx:3479:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ( data/planetblupi-1.14.2/src/decor.cxx:3490:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ( data/planetblupi-1.14.2/src/decor.h:96: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 rankUsed[MAXUSED]; data/planetblupi-1.14.2/src/decor.h:119:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char reserve2[2]; data/planetblupi-1.14.2/src/decor.h:506: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 m_buttonExist[MAXBUTTON]; data/planetblupi-1.14.2/src/decor.h:538: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 m_text[50]; data/planetblupi-1.14.2/src/decstat.cxx:670: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 text[50]; data/planetblupi-1.14.2/src/event.cxx:87: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 cheat_code[9][20] = { data/planetblupi-1.14.2/src/event.cxx:2085:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (pDst, " / "); data/planetblupi-1.14.2/src/event.cxx:2120: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 res[100]; data/planetblupi-1.14.2/src/event.cxx:2121: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 text[100]; data/planetblupi-1.14.2/src/event.cxx:4211:10: [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 env[64]; data/planetblupi-1.14.2/src/event.cxx:4900: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 string[100]; data/planetblupi-1.14.2/src/event.cxx:4901:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[100]; data/planetblupi-1.14.2/src/event.cxx:4906: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 (&term, m_pDecor->GetTerminated (), sizeof (Term)); data/planetblupi-1.14.2/src/event.cxx:4956:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (m_libelle, "\n1|\n"); data/planetblupi-1.14.2/src/event.cxx:4967:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (m_libelle, "\n1|\n"); data/planetblupi-1.14.2/src/event.cxx:5006: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 (stories.c_str (), "rb"); data/planetblupi-1.14.2/src/event.cxx:5011: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 = fopen (stories.c_str (), "rb"); data/planetblupi-1.14.2/src/event.cxx:5069: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.c_str (), "wb"); data/planetblupi-1.14.2/src/event.cxx:5124: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.c_str (), "rb"); data/planetblupi-1.14.2/src/event.cxx:5254: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 (demoPath.c_str (), "wb"); data/planetblupi-1.14.2/src/event.cxx:5299: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.c_str (), "rb"); data/planetblupi-1.14.2/src/event.h:41: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 * toolTips[16]; data/planetblupi-1.14.2/src/event.h:46: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 backName[20]; data/planetblupi-1.14.2/src/event.h:240: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 m_textToolTips[50]; data/planetblupi-1.14.2/src/event.h:258: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 m_libelle[1000]; data/planetblupi-1.14.2/src/fix.cxx:29:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char tableSee[14 * 4] = data/planetblupi-1.14.2/src/fix.cxx:51:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char tableDark[13 * 4] = data/planetblupi-1.14.2/src/fix.cxx:215: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 here[4], bits[4], init[4]; data/planetblupi-1.14.2/src/fix.cxx:390:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char tableMur[5 * 15] = data/planetblupi-1.14.2/src/fix.cxx:432: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 murs[4]; data/planetblupi-1.14.2/src/fog.cxx:28: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 tableFog[15 * 4] = data/planetblupi-1.14.2/src/fog.cxx:119:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cBits[4]; data/planetblupi-1.14.2/src/fog.cxx:120: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 nBits[4]; data/planetblupi-1.14.2/src/json/json.hpp:8221:38: [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 hexify[16] = data/planetblupi-1.14.2/src/menu.cxx:244: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 text[50]; data/planetblupi-1.14.2/src/misc.cxx:207: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 (absolute.c_str (), "rb"); data/planetblupi-1.14.2/src/misc.h:65:10: [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 basename[_MAX_FNAME + _MAX_EXT]; data/planetblupi-1.14.2/src/misc.h:66: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 fname[_MAX_FNAME]; data/planetblupi-1.14.2/src/misc.h:67: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 ext[_MAX_EXT]; data/planetblupi-1.14.2/src/movie.h:65: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 m_audiobuf[AUDIOBUFFER_SIZE]; data/planetblupi-1.14.2/src/sound.cxx:175: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 name[50]; data/planetblupi-1.14.2/src/text.cxx:278: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 text[100]; data/planetblupi-1.14.2/src/text.cxx:330: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 text[100]; data/planetblupi-1.14.2/src/text.cxx:375: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 text[100]; data/planetblupi-1.14.2/src/text.cxx:460: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 string[10]; data/planetblupi-1.14.2/src/text.cxx:487: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 string[10]; data/planetblupi-1.14.2/src/blupi.cxx:513:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (buffer, ")"); data/planetblupi-1.14.2/src/decstat.cxx:756: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 (textRes) && m_statHili >= 100) data/planetblupi-1.14.2/src/decstat.cxx:775: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 (textRes)) data/planetblupi-1.14.2/src/event.cxx:2088: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). j = strlen (pDst); data/planetblupi-1.14.2/src/json/json.hpp:11359:89: [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). m_lexer(reinterpret_cast<const typename lexer::lexer_char_t*>(buff), std::strlen(buff)) data/planetblupi-1.14.2/src/misc.cxx:129:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sdlBasePath[strlen (sdlBasePath) - 1] = '\0'; data/planetblupi-1.14.2/src/text.cxx:195:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). auto length = strlen (pText); ANALYSIS SUMMARY: Hits = 86 Lines analyzed = 50822 in approximately 1.12 seconds (45323 lines/second) Physical Source Lines of Code (SLOC) = 38261 Hits@level = [0] 58 [1] 7 [2] 65 [3] 3 [4] 11 [5] 0 Hits@level+ = [0+] 144 [1+] 86 [2+] 79 [3+] 14 [4+] 11 [5+] 0 Hits/KSLOC@level+ = [0+] 3.76362 [1+] 2.24772 [2+] 2.06477 [3+] 0.365908 [4+] 0.287499 [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.