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/viruskiller-1.03-1+dfsg1/data/defines.h Examining data/viruskiller-1.03-1+dfsg1/src/CVirus.cpp Examining data/viruskiller-1.03-1+dfsg1/src/filesAndDirectories.cpp Examining data/viruskiller-1.03-1+dfsg1/src/CPak.h Examining data/viruskiller-1.03-1+dfsg1/src/CMedalServer.h Examining data/viruskiller-1.03-1+dfsg1/src/CBase.cpp Examining data/viruskiller-1.03-1+dfsg1/src/particles.cpp Examining data/viruskiller-1.03-1+dfsg1/src/CFileData.cpp Examining data/viruskiller-1.03-1+dfsg1/src/title.cpp Examining data/viruskiller-1.03-1+dfsg1/src/CVirus.h Examining data/viruskiller-1.03-1+dfsg1/src/CGameObject.cpp Examining data/viruskiller-1.03-1+dfsg1/src/items.h Examining data/viruskiller-1.03-1+dfsg1/src/filesAndDirectories.h Examining data/viruskiller-1.03-1+dfsg1/src/items.cpp Examining data/viruskiller-1.03-1+dfsg1/src/CData.cpp Examining data/viruskiller-1.03-1+dfsg1/src/CWidget.h Examining data/viruskiller-1.03-1+dfsg1/src/game.h Examining data/viruskiller-1.03-1+dfsg1/src/CGameData.h Examining data/viruskiller-1.03-1+dfsg1/src/highscores.h Examining data/viruskiller-1.03-1+dfsg1/src/defines.h Examining data/viruskiller-1.03-1+dfsg1/src/CDirectory.h Examining data/viruskiller-1.03-1+dfsg1/src/CData.h Examining data/viruskiller-1.03-1+dfsg1/src/CMedalServer.cpp Examining data/viruskiller-1.03-1+dfsg1/src/headers.h Examining data/viruskiller-1.03-1+dfsg1/src/CMath.cpp Examining data/viruskiller-1.03-1+dfsg1/src/CCollision.cpp Examining data/viruskiller-1.03-1+dfsg1/src/CAudio.h Examining data/viruskiller-1.03-1+dfsg1/src/CItem.h Examining data/viruskiller-1.03-1+dfsg1/src/pak.h Examining data/viruskiller-1.03-1+dfsg1/src/CGraphics.cpp Examining data/viruskiller-1.03-1+dfsg1/src/title.h Examining data/viruskiller-1.03-1+dfsg1/src/CSprite.h Examining data/viruskiller-1.03-1+dfsg1/src/CFileData.h Examining data/viruskiller-1.03-1+dfsg1/src/resources.cpp Examining data/viruskiller-1.03-1+dfsg1/src/CItem.cpp Examining data/viruskiller-1.03-1+dfsg1/src/main.cpp Examining data/viruskiller-1.03-1+dfsg1/src/game.cpp Examining data/viruskiller-1.03-1+dfsg1/src/CEngine.h Examining data/viruskiller-1.03-1+dfsg1/src/particles.h Examining data/viruskiller-1.03-1+dfsg1/src/CParticle.h Examining data/viruskiller-1.03-1+dfsg1/src/init.h Examining data/viruskiller-1.03-1+dfsg1/src/CGameObject.h Examining data/viruskiller-1.03-1+dfsg1/src/CCollision.h Examining data/viruskiller-1.03-1+dfsg1/src/CSprite.cpp Examining data/viruskiller-1.03-1+dfsg1/src/CGraphics.h Examining data/viruskiller-1.03-1+dfsg1/src/CHighScore.h Examining data/viruskiller-1.03-1+dfsg1/src/widgets.h Examining data/viruskiller-1.03-1+dfsg1/src/CParticle.cpp Examining data/viruskiller-1.03-1+dfsg1/src/resources.h Examining data/viruskiller-1.03-1+dfsg1/src/CBase.h Examining data/viruskiller-1.03-1+dfsg1/src/CMath.h Examining data/viruskiller-1.03-1+dfsg1/src/main.h Examining data/viruskiller-1.03-1+dfsg1/src/viruses.cpp Examining data/viruskiller-1.03-1+dfsg1/src/defs.h Examining data/viruskiller-1.03-1+dfsg1/src/init.cpp Examining data/viruskiller-1.03-1+dfsg1/src/CFile.cpp Examining data/viruskiller-1.03-1+dfsg1/src/CList.cpp Examining data/viruskiller-1.03-1+dfsg1/src/widgets.cpp Examining data/viruskiller-1.03-1+dfsg1/src/CWidget.cpp Examining data/viruskiller-1.03-1+dfsg1/src/highscores.cpp Examining data/viruskiller-1.03-1+dfsg1/src/CHighScore.cpp Examining data/viruskiller-1.03-1+dfsg1/src/viruses.h Examining data/viruskiller-1.03-1+dfsg1/src/CList.h Examining data/viruskiller-1.03-1+dfsg1/src/CFile.h Examining data/viruskiller-1.03-1+dfsg1/src/CAudio.cpp Examining data/viruskiller-1.03-1+dfsg1/src/CPak.cpp Examining data/viruskiller-1.03-1+dfsg1/src/CGameData.cpp Examining data/viruskiller-1.03-1+dfsg1/src/CDirectory.cpp Examining data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp Examining data/viruskiller-1.03-1+dfsg1/src/pak.cpp FINAL RESULTS: data/viruskiller-1.03-1+dfsg1/src/CAudio.cpp:94:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempPath, "%smusic.mod", engine->userHomeDirectory); data/viruskiller-1.03-1+dfsg1/src/CData.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(this->key, key); data/viruskiller-1.03-1+dfsg1/src/CData.cpp:44: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(this->value, value); data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:78: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(line, lastInput); data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:85:4: [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(line, lastKeyPressed); data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:107: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(lastInput, line); data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:136:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(lastKeyPressed, SDL_GetKeyName(event.key.keysym.sym)); data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:253: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(userHomeDirectory, path); data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:309:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempPath, "%smusic.mod", userHomeDirectory); data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:315:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempPath, "%sfont.ttf", userHomeDirectory); data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:459:3: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(line, "%s", token); data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:464:3: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(line, "%*s %s %s %*c %[^\"] %*c %*c %[^\"] %*c %d %d %d %d", name, groupName, label, options, &x, &y, &min, &max); data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:482: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(label, translate(label)); data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:797:4: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(token, "%*s %s %[^\n]", string[0], string[1]); data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:925: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(line, realLine); data/viruskiller-1.03-1+dfsg1/src/CGameData.cpp:34: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(directorySearchPath, getenv("PROGRAMFILES")); data/viruskiller-1.03-1+dfsg1/src/CGameData.cpp:149: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(string, name); data/viruskiller-1.03-1+dfsg1/src/CGraphics.cpp:432:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempPath, "%sfont.ttf", engine->userHomeDirectory); data/viruskiller-1.03-1+dfsg1/src/CGraphics.cpp:494: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(sprite->name, name); data/viruskiller-1.03-1+dfsg1/src/CGraphics.cpp:770:2: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(textstring, in, argp); data/viruskiller-1.03-1+dfsg1/src/CGraphics.cpp:791:2: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(textstring, in, argp); data/viruskiller-1.03-1+dfsg1/src/CGraphics.cpp:902:2: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(message, error, param); data/viruskiller-1.03-1+dfsg1/src/CHighScore.cpp:33: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(this->name, name); data/viruskiller-1.03-1+dfsg1/src/CMedalServer.cpp:53: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(this->privateKey, privateKey); data/viruskiller-1.03-1+dfsg1/src/CMedalServer.cpp:73: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(medal, str); data/viruskiller-1.03-1+dfsg1/src/CMedalServer.cpp:96:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(out, "GET /addMedal/%s/%s HTTP/1.1\nHost: %s\nUser-Agent:VK%.2f-%d\n\n", privateKey, medal, MEDAL_SERVER_HOST, VERSION, RELEASE); data/viruskiller-1.03-1+dfsg1/src/CMedalServer.cpp:126:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(rubyMessage, message); data/viruskiller-1.03-1+dfsg1/src/CPak.cpp:54:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PAKFULLPATH"\n\n"); data/viruskiller-1.03-1+dfsg1/src/CPak.cpp:64: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(this->pakFilename, pakFilename); data/viruskiller-1.03-1+dfsg1/src/CWidget.cpp:52: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(this->name, name); data/viruskiller-1.03-1+dfsg1/src/CWidget.cpp:53: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(this->groupName, groupName); data/viruskiller-1.03-1+dfsg1/src/CWidget.cpp:54: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(this->label, label); data/viruskiller-1.03-1+dfsg1/src/CWidget.cpp:55: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(this->options, options); data/viruskiller-1.03-1+dfsg1/src/defs.h:185:43: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define debug(x) {printf("*** DEBUG: "); printf x;} data/viruskiller-1.03-1+dfsg1/src/filesAndDirectories.cpp:28: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(string, file->name); data/viruskiller-1.03-1+dfsg1/src/filesAndDirectories.cpp:39: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(string, previousName); data/viruskiller-1.03-1+dfsg1/src/filesAndDirectories.cpp:99:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(filename, "%s/%s", dirName, dfile->d_name); data/viruskiller-1.03-1+dfsg1/src/game.cpp:69: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(data, tname); data/viruskiller-1.03-1+dfsg1/src/init.cpp:87:15: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. char *name = getlogin(); data/viruskiller-1.03-1+dfsg1/src/init.cpp:104: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(gameData.directorySearchPath, userHome); data/viruskiller-1.03-1+dfsg1/src/init.cpp:111:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dir, "%s/.parallelrealities", userHome); data/viruskiller-1.03-1+dfsg1/src/init.cpp:115:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dir, "%s/.parallelrealities/virusKiller", userHome); data/viruskiller-1.03-1+dfsg1/src/init.cpp:120:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(gameSavePath, "%s/.parallelrealities/virusKiller/", userHome); data/viruskiller-1.03-1+dfsg1/src/init.cpp:137:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(keyPath, "%smedalKey", engine.userHomeDirectory); data/viruskiller-1.03-1+dfsg1/src/init.cpp:149:2: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. fscanf(fp, "%s", privateKey); data/viruskiller-1.03-1+dfsg1/src/init.cpp:165:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(configPath, "%sconfig", engine.userHomeDirectory); data/viruskiller-1.03-1+dfsg1/src/init.cpp:198:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(configPath, "%sconfig", engine.userHomeDirectory); data/viruskiller-1.03-1+dfsg1/src/init.cpp:286:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempPath, "%sfont.ttf", engine.userHomeDirectory); data/viruskiller-1.03-1+dfsg1/src/init.cpp:357:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempPath, "%smusic.mod", engine.userHomeDirectory); data/viruskiller-1.03-1+dfsg1/src/init.cpp:361:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempPath, "%sfont.ttf", engine.userHomeDirectory); data/viruskiller-1.03-1+dfsg1/src/main.cpp:73: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(gameData.directorySearchPath, SAFEDIR); data/viruskiller-1.03-1+dfsg1/src/pak.cpp:65:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(filename, "%s/%s", dirName, dfile->d_name); data/viruskiller-1.03-1+dfsg1/src/pak.cpp:118:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(filename, "%s/%s", dirName, namelist[n]->d_name); data/viruskiller-1.03-1+dfsg1/src/title.cpp:181: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(widget->label, GAMEPLAYMANUAL); data/viruskiller-1.03-1+dfsg1/src/widgets.cpp:64:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(token, "%s%c", token, *c); data/viruskiller-1.03-1+dfsg1/src/CGameData.cpp:34:31: [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. strcpy(directorySearchPath, getenv("PROGRAMFILES")); data/viruskiller-1.03-1+dfsg1/src/init.cpp:281: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/viruskiller-1.03-1+dfsg1/src/CAudio.cpp:92: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 tempPath[PATH_MAX]; data/viruskiller-1.03-1+dfsg1/src/CData.h:25: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 key[50]; data/viruskiller-1.03-1+dfsg1/src/CData.h:26: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 value[50]; data/viruskiller-1.03-1+dfsg1/src/CDirectory.h:29: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/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:43:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(language, "en"); data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:77:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[50]; data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:303: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 tempPath[PATH_MAX]; data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:310: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). fp = fopen(tempPath, "wb"); data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:316: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). fp = fopen(tempPath, "wb"); data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:343:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(filename, "rb"); data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:448: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 token[50], name[50], groupName[50], label[50], options[100], *line; data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:780: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 string[2][1024]; data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:826:10: [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). rtn = atoi(data->value); data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:922: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 line[1024]; data/viruskiller-1.03-1+dfsg1/src/CEngine.h:34: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 lastKeyPressed[25]; data/viruskiller-1.03-1+dfsg1/src/CEngine.h: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 keyState[350]; data/viruskiller-1.03-1+dfsg1/src/CEngine.h:42: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 lastInput[50]; data/viruskiller-1.03-1+dfsg1/src/CEngine.h:44: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 language[5]; data/viruskiller-1.03-1+dfsg1/src/CEngine.h:50: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 userHomeDirectory[PATH_MAX]; data/viruskiller-1.03-1+dfsg1/src/CFile.h:26: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/viruskiller-1.03-1+dfsg1/src/CFileData.h:25: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[PAK_MAX_FILENAME]; data/viruskiller-1.03-1+dfsg1/src/CGameData.cpp:31:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(directorySearchPath, "/home"); data/viruskiller-1.03-1+dfsg1/src/CGameData.cpp:146: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 string[1024]; data/viruskiller-1.03-1+dfsg1/src/CGameData.h:33: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 directorySearchPath[PATH_MAX]; data/viruskiller-1.03-1+dfsg1/src/CGameData.h:40: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 map[5][5]; data/viruskiller-1.03-1+dfsg1/src/CGraphics.cpp:159: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(screenshot, "screenshots/screenshot%.3d.bmp", screenShotNumber); data/viruskiller-1.03-1+dfsg1/src/CGraphics.cpp:430: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 tempPath[PATH_MAX]; data/viruskiller-1.03-1+dfsg1/src/CGraphics.cpp:901: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 message[256]; data/viruskiller-1.03-1+dfsg1/src/CGraphics.h:39: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 screenshot[100]; data/viruskiller-1.03-1+dfsg1/src/CGraphics.h:41: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 textstring[256]; data/viruskiller-1.03-1+dfsg1/src/CHighScore.h:25: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[25]; data/viruskiller-1.03-1+dfsg1/src/CMedalServer.cpp: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 medal[128]; data/viruskiller-1.03-1+dfsg1/src/CMedalServer.cpp:94:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char out[1024]; data/viruskiller-1.03-1+dfsg1/src/CMedalServer.h:25: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 privateKey[20]; data/viruskiller-1.03-1+dfsg1/src/CMedalServer.h:26: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 message[128]; data/viruskiller-1.03-1+dfsg1/src/CMedalServer.h:27: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 rubyMessage[128]; data/viruskiller-1.03-1+dfsg1/src/CPak.cpp:68:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *pak = fopen(pakFilename, "rb"); data/viruskiller-1.03-1+dfsg1/src/CPak.cpp:126:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *pak = fopen(pakFilename, "rb"); data/viruskiller-1.03-1+dfsg1/src/CPak.h:32: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 pakFilename[1024]; data/viruskiller-1.03-1+dfsg1/src/CPak.h:34: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[60]; data/viruskiller-1.03-1+dfsg1/src/CSprite.h:25: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/viruskiller-1.03-1+dfsg1/src/CSprite.h:28: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. unsigned char frameLength[10]; data/viruskiller-1.03-1+dfsg1/src/CWidget.h:25: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], groupName[50], label[50], options[100]; data/viruskiller-1.03-1+dfsg1/src/filesAndDirectories.cpp:25: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 string[1024]; data/viruskiller-1.03-1+dfsg1/src/filesAndDirectories.cpp:78: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[PATH_MAX]; data/viruskiller-1.03-1+dfsg1/src/highscores.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 place[5]; data/viruskiller-1.03-1+dfsg1/src/highscores.cpp:84:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(place, "1st"); data/viruskiller-1.03-1+dfsg1/src/highscores.cpp:87:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(place, "2nd"); data/viruskiller-1.03-1+dfsg1/src/highscores.cpp:90:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(place, "3rd"); data/viruskiller-1.03-1+dfsg1/src/highscores.cpp:93: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(place, "%dth", position + 1); data/viruskiller-1.03-1+dfsg1/src/highscores.cpp:151: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(engine.lastInput, "Anonymous"); data/viruskiller-1.03-1+dfsg1/src/init.cpp:39: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 line[255]; data/viruskiller-1.03-1+dfsg1/src/init.cpp:108:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dir[PATH_MAX]; data/viruskiller-1.03-1+dfsg1/src/init.cpp:119: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 gameSavePath[PATH_MAX]; data/viruskiller-1.03-1+dfsg1/src/init.cpp:134: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 keyPath[PATH_MAX]; data/viruskiller-1.03-1+dfsg1/src/init.cpp:135: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 privateKey[20]; data/viruskiller-1.03-1+dfsg1/src/init.cpp:141:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(keyPath, "rb"); data/viruskiller-1.03-1+dfsg1/src/init.cpp:163: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 configPath[PATH_MAX]; data/viruskiller-1.03-1+dfsg1/src/init.cpp:169:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(configPath, "rb"); data/viruskiller-1.03-1+dfsg1/src/init.cpp:196: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 configPath[PATH_MAX]; data/viruskiller-1.03-1+dfsg1/src/init.cpp:200:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(configPath, "wb"); data/viruskiller-1.03-1+dfsg1/src/init.cpp:285: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 tempPath[PATH_MAX]; data/viruskiller-1.03-1+dfsg1/src/init.cpp:340: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 tempPath[PATH_MAX]; data/viruskiller-1.03-1+dfsg1/src/pak.cpp:56:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filename[1024]; data/viruskiller-1.03-1+dfsg1/src/pak.cpp:95:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filename[1024]; data/viruskiller-1.03-1+dfsg1/src/pak.cpp:129: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). infile = fopen(filename, "rb"); data/viruskiller-1.03-1+dfsg1/src/pak.cpp:207:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). pak = fopen(argv[argc - 1], "wb"); data/viruskiller-1.03-1+dfsg1/src/widgets.cpp:31: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 token[100]; data/viruskiller-1.03-1+dfsg1/src/CData.cpp:25:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(key, ""); data/viruskiller-1.03-1+dfsg1/src/CData.cpp:26:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(value, ""); data/viruskiller-1.03-1+dfsg1/src/CData.cpp:37: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(key) > 50) || (strlen(value) > 50)) data/viruskiller-1.03-1+dfsg1/src/CData.cpp:37:29: [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(key) > 50) || (strlen(value) > 50)) data/viruskiller-1.03-1+dfsg1/src/CDirectory.cpp:25:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(name, ""); data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:28:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(lastInput, ""); data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:34:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(lastKeyPressed, ""); data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:79: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 size = strlen(line); data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:81:6: [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(lastKeyPressed) == 1) data/viruskiller-1.03-1+dfsg1/src/CEngine.cpp:103:5: [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(line, " "); data/viruskiller-1.03-1+dfsg1/src/CFile.cpp:26:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(name, ""); data/viruskiller-1.03-1+dfsg1/src/CFileData.cpp:25:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(filename, ""); data/viruskiller-1.03-1+dfsg1/src/CFileData.cpp:33:6: [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(filename) > PAK_MAX_FILENAME - 1) data/viruskiller-1.03-1+dfsg1/src/CFileData.cpp:38:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(this->filename, filename, PAK_MAX_FILENAME - 1); data/viruskiller-1.03-1+dfsg1/src/CGameData.cpp:176:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dir->name, name, 49); data/viruskiller-1.03-1+dfsg1/src/CHighScore.cpp:25:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(name, ""); data/viruskiller-1.03-1+dfsg1/src/CMedalServer.cpp:31:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(message, ""); data/viruskiller-1.03-1+dfsg1/src/CMedalServer.cpp:32:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(rubyMessage, ""); data/viruskiller-1.03-1+dfsg1/src/CMedalServer.cpp:75: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). for (unsigned int i = 0 ; i < strlen(medal) ; i++) data/viruskiller-1.03-1+dfsg1/src/CMedalServer.cpp:100: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). int len = strlen(out) + 1; data/viruskiller-1.03-1+dfsg1/src/CPak.cpp:32:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(pakFilename, ""); data/viruskiller-1.03-1+dfsg1/src/CPak.cpp:33:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(filename, ""); data/viruskiller-1.03-1+dfsg1/src/CPak.cpp:166: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). unsigned int length = strlen(filename); data/viruskiller-1.03-1+dfsg1/src/CWidget.cpp:25:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(name, ""); data/viruskiller-1.03-1+dfsg1/src/CWidget.cpp:26:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(groupName, ""); data/viruskiller-1.03-1+dfsg1/src/CWidget.cpp:27:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(label, ""); data/viruskiller-1.03-1+dfsg1/src/CWidget.cpp:28:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(options, ""); data/viruskiller-1.03-1+dfsg1/src/CWidget.cpp:46: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(name) > 50) || (strlen(groupName) > 50) || (strlen(label) > 50) || (strlen(options) > 100)) data/viruskiller-1.03-1+dfsg1/src/CWidget.cpp:46:30: [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(name) > 50) || (strlen(groupName) > 50) || (strlen(label) > 50) || (strlen(options) > 100)) data/viruskiller-1.03-1+dfsg1/src/CWidget.cpp:46:58: [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(name) > 50) || (strlen(groupName) > 50) || (strlen(label) > 50) || (strlen(options) > 100)) data/viruskiller-1.03-1+dfsg1/src/CWidget.cpp:46: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 ((strlen(name) > 50) || (strlen(groupName) > 50) || (strlen(label) > 50) || (strlen(options) > 100)) data/viruskiller-1.03-1+dfsg1/src/filesAndDirectories.cpp:111:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(file->name, dfile->d_name, 49); data/viruskiller-1.03-1+dfsg1/src/highscores.cpp:97:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(engine.lastInput, ""); data/viruskiller-1.03-1+dfsg1/src/highscores.cpp:135: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(engine.lastInput) > 0) data/viruskiller-1.03-1+dfsg1/src/highscores.cpp:150:6: [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(engine.lastInput) == 0) data/viruskiller-1.03-1+dfsg1/src/init.cpp:109:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(dir, ""); data/viruskiller-1.03-1+dfsg1/src/pak.cpp:67: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(filename) > PAK_MAX_FILENAME - 1) data/viruskiller-1.03-1+dfsg1/src/widgets.cpp:32:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(token, ""); data/viruskiller-1.03-1+dfsg1/src/widgets.cpp:60:4: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(token, ""); ANALYSIS SUMMARY: Hits = 164 Lines analyzed = 9266 in approximately 0.24 seconds (37830 lines/second) Physical Source Lines of Code (SLOC) = 6082 Hits@level = [0] 79 [1] 39 [2] 68 [3] 2 [4] 55 [5] 0 Hits@level+ = [0+] 243 [1+] 164 [2+] 125 [3+] 57 [4+] 55 [5+] 0 Hits/KSLOC@level+ = [0+] 39.954 [1+] 26.9648 [2+] 20.5524 [3+] 9.37192 [4+] 9.04308 [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.