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/nexuiz-data-2.5.2/data/qcsrc/menu/item.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/item/checkbox.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/item/modalcontroller.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/item/slider.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/item/inputbox.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/item/image.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/item/container.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/item/tab.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/item/listbox.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/item/label.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/item/gecko.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/item/textslider.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/item/nexposee.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/item/radiobutton.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/item/dialog.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/item/inputcontainer.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/item/button.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/item/borderimage.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/oo/constructors.h Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/oo/base.h Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/oo/implementation.h Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/oo/classdefs.h Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/checkbox.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/slider.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/maplist.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/credits.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/campaign.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_settings_misc_cvars.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/cvarlist.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/inputbox.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_teamselect.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_join.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/image.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/crosshairbutton.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_singleplayer_winner.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_demo.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/serverlist.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/rootdialog.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/skinlist.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/tab.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/listbox.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_quit.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_settings_audio.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_playersetup.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/commandbutton.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/charmap.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_playersetup_radar.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/colorpicker.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/slider_resolution.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_settings_input_userbind.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_settings_misc.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_settings.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/checkbox_slider_invalid.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/weaponslist.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_join_serverinfo.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/slider_decibels.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/textslider.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/nexposee.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_advanced.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/demolist.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/radiobutton.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_credits.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_singleplayer.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_news.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/mainwindow.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/textlabel.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_settings_video.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/gametypebutton.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/playerlist.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_settings_effects.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/colorbutton.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/bigbutton.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_settings_input.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mapinfo.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/button.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/playermodel.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_settings_network.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/bigcommandbutton.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_playersetup_weapons.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/modbutton.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/tabcontroller.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/keybinder.c Examining data/nexuiz-data-2.5.2/data/qcsrc/menu/classes.c Examining data/nexuiz-data-2.5.2/data/qcsrc/server/progdefs.h Examining data/nexuiz-data-2.5.2/misc/tools/ttf2conchars/ttf2conchars.c Examining data/nexuiz-data-2.5.2/misc/tools/hslimage.c Examining data/nexuiz-data-2.5.2/misc/tools/spherefunc2skybox.c Examining data/nexuiz-data-2.5.2/misc/tools/crc16.c Examining data/nexuiz-data-2.5.2/misc/tools/brightspot.c Examining data/nexuiz-data-2.5.2/misc/tools/hitplot2tga.c FINAL RESULTS: data/nexuiz-data-2.5.2/data/qcsrc/menu/item/gecko.c:25:29: [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). me.texturePath = strzone( strcat( "_dynamic/gecko/menu/", ftos( _gecko_instanceNumber ) ) ); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/gecko.c:43:26: [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). draw_Picture( '0 0 0', strcat( "/", me.texturePath ), data/nexuiz-data-2.5.2/data/qcsrc/menu/item/inputbox.c:84:17: [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). me.setText(me, strcat(substring(me.text, 0, me.cursorPos), ch, substring(me.text, me.cursorPos, strlen(me.text) - me.cursorPos))); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/inputbox.c:115:20: [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). me.setText(me, strcat(substring(me.text, 0, me.cursorPos), substring(me.text, me.cursorPos + 1, strlen(me.text) - me.cursorPos - 1))); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/inputbox.c:122:20: [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). me.setText(me, strcat(substring(me.text, 0, me.cursorPos), substring(me.text, me.cursorPos + 1, strlen(me.text) - me.cursorPos - 1))); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/inputbox.c:150:37: [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). totalSizeInWidths = draw_TextWidth(strcat(me.text, CURSOR), 0) * me.realFontSize_x; data/nexuiz-data-2.5.2/data/qcsrc/menu/item/inputbox.c:186:24: [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). w = draw_TextWidth(strcat(ch, ch2), 0) * me.realFontSize_x; data/nexuiz-data-2.5.2/data/qcsrc/menu/item/inputbox.c:208:19: [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). draw_Text(p, strcat(ch, ch2), me.realFontSize, theColor, theAlpha, 0); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/inputbox.c:294:19: [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). draw_Text(p, strcat(ch, ch2), me.realFontSize, theColor, theAlpha, 0); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/listbox.c:287:21: [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). draw_Text('0 0 0', strcat("Item ", ftos(i)), eX * (8 / absSize_x) + eY * (8 / absSize_y), (selected ? '0 1 0' : '1 1 1'), 1, 0); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/campaign.c:79:9: [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). r = strcat(r, s, "\n"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/campaign.c:121:24: [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). me.cvarName = strzone(strcat("g_campaign", campaign_name, "_index")); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/campaign.c:158:8: [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). s = strcat("maps/campaign", campaign_name, ".txt"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/campaign.c:166:9: [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). s = strcat("maps/campaign", cvar_defstring("g_campaign_name"), ".txt"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/campaign.c:278:44: [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). draw_Picture(me.columnPreviewOrigin * eX, strcat("/maps/", campaign_mapname[i]), me.columnPreviewSize * eX + eY, '1 1 1', theAlpha); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/campaign.c:285:30: [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). s = draw_TextShortenToWidth(strcat("Level ", ftos(i + 1), ": ", s), me.columnNameSize / me.realFontSize_x, 0); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/crosshairbutton.c:35:20: [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). me.src3 = strzone(strcat("/gfx/crosshair", ftos(me.cvarValueFloat))); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/demolist.c:63:8: [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). s=strcat("demos/*", me.filterString, "*.dem"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mapinfo.c:62:38: [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). me.currentMapPreviewImage = strzone(strcat("/maps/", MapInfo_Map_bspname)); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:121:29: [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). cvar_set("g_weaponarena", strcat(me.cvarValue, suffix)); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/keybinder.c:312:9: [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). s = strcat(s, keynumtostring(k)); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/maplist.c:97:30: [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). me.g_maplistCache = strzone(strcat(a, b, c)); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/maplist.c:187:44: [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). draw_Picture(me.columnPreviewOrigin * eX, strcat("/maps/", MapInfo_Map_bspname), me.columnPreviewSize * eX + eY, '1 1 1', theAlpha); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/maplist.c:208:23: [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). draw_PreloadPicture(strcat("/maps/", MapInfo_BSPName_ByID(i))); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/maplist.c:213:7: [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). s = strcat(s, s); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/maplist.c:339:11: [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). save = strcat(me.typeToSearchString, ch); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/modbutton.c:22:11: [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). thecmd = strcat("\nmenu_restart"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/modbutton.c:28:12: [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). thecmd = strcat("\ngamedir data", thecmd); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/modbutton.c:30:12: [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). thecmd = strcat("\ngamedir havoc", thecmd); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/playermodel.c:79:34: [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). me.currentModelName = strzone(strcat("/", nm)); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/playermodel.c:88:34: [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). me.currentModelDescription = strcat(me.currentModelDescription, l); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/playermodel.c:141:32: [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). me.currentModelName = strzone(strcat("/", fgets(fh))); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/playermodel.c:150:32: [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). me.currentModelDescription = strcat(me.currentModelDescription, l); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/playermodel.c:171:11: [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). localcmd(strcat("playermodel ", me.currentModel, "\nplayerskin ", ftos(me.currentSkin), "\n")); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/serverlist.c:125:36: [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). cvar_set("net_slist_favorites", strcat(s0, s1, s2)); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/serverlist.c:377:6: [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). s = strcat(s, substring(me.filterString, m+1, strlen(me.filterString) - m - 1)); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/skinlist.c:107:58: [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). bufstr_set(buf, i * SKINPARM_COUNT + SKINPARM_PREVIEW, strcat("/gfx/menu/", substring(s, 9, strlen(s) - 24), "/skinpreview")); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/weaponslist.c:89:7: [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). s = strcat(s, e.message, ", "); data/nexuiz-data-2.5.2/misc/tools/hitplot2tga.c:14: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, fmt, list); data/nexuiz-data-2.5.2/misc/tools/hitplot2tga.c:25:5: [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, fmt, list); data/nexuiz-data-2.5.2/misc/tools/ttf2conchars/ttf2conchars.c:10:9: [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. #define snprintf _snprintf data/nexuiz-data-2.5.2/misc/tools/ttf2conchars/ttf2conchars.c:10:18: [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. #define snprintf _snprintf data/nexuiz-data-2.5.2/misc/tools/ttf2conchars/ttf2conchars.c:19: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, fmt, list); data/nexuiz-data-2.5.2/misc/tools/ttf2conchars/ttf2conchars.c:29: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, fmt, list); data/nexuiz-data-2.5.2/misc/tools/ttf2conchars/ttf2conchars.c:38: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, fmt, list); data/nexuiz-data-2.5.2/misc/tools/ttf2conchars/ttf2conchars.c:49: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, fmt, list); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_singleplayer.c:22:11: [3] (random) random: 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. i = ceil(random() * search_getsize(glob)) - 1; data/nexuiz-data-2.5.2/misc/tools/ttf2conchars/ttf2conchars.c:771: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("FORCE_FIXED")) data/nexuiz-data-2.5.2/data/qcsrc/menu/item/button.c:107:33: [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. draw_ButtonPicture(bOrigin, strcat(me.src, "_d", me.srcSuffix), bSize, me.colorD, 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/button.c:109:33: [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. draw_ButtonPicture(bOrigin, strcat(me.src, "_c", me.srcSuffix), bSize, me.colorC, 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/button.c:111:33: [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. draw_ButtonPicture(bOrigin, strcat(me.src, "_f", me.srcSuffix), bSize, me.colorF, 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/button.c:113:33: [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. draw_ButtonPicture(bOrigin, strcat(me.src, "_n", me.srcSuffix), bSize, me.color, 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/button.c:128:27: [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. draw_Picture(bOrigin, strcat(me.src, "_d", me.srcSuffix), bSize, me.colorD, 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/button.c:130:27: [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. draw_Picture(bOrigin, strcat(me.src, "_c", me.srcSuffix), bSize, me.colorC, 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/button.c:132:27: [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. draw_Picture(bOrigin, strcat(me.src, "_f", me.srcSuffix), bSize, me.colorF, 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/button.c:134:27: [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. draw_Picture(bOrigin, strcat(me.src, "_n", me.srcSuffix), bSize, me.color, 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/checkbox.c:27:9: [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. return strcat(toStringLabel(me), ", ", me.checked ? "checked" : "unchecked"); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/inputbox.c:143:32: [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. draw_ButtonPicture('0 0 0', strcat(me.src, "_f"), '1 1 0', me.colorF, 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/inputbox.c:145:32: [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. draw_ButtonPicture('0 0 0', strcat(me.src, "_n"), '1 1 0', me.color, 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/listbox.c:249:54: [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. draw_VertButtonPicture(eX * (1 - me.controlWidth), strcat(me.src, "_s"), eX * me.controlWidth + eY, me.color2, 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/listbox.c:256:31: [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. draw_VertButtonPicture(o, strcat(me.src, "_c"), s, me.colorC, 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/listbox.c:258:31: [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. draw_VertButtonPicture(o, strcat(me.src, "_f"), s, me.colorF, 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/listbox.c:260:31: [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. draw_VertButtonPicture(o, strcat(me.src, "_n"), s, me.color, 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/slider.c:50:9: [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. return strcat(ftos(me.value), " (", me.valueToText(me, me.value), ")"); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/slider.c:236:30: [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. draw_ButtonPicture('0 0 0', strcat(me.src, "_s"), eX * (1 - me.textSpace) + eY, me.color2, 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/slider.c:241:35: [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. draw_Picture(eX * controlLeft, strcat(me.src, "_d"), eX * me.controlWidth + eY, me.colorD, 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/slider.c:243:35: [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. draw_Picture(eX * controlLeft, strcat(me.src, "_c"), eX * me.controlWidth + eY, me.colorC, 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/slider.c:245:35: [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. draw_Picture(eX * controlLeft, strcat(me.src, "_f"), eX * me.controlWidth + eY, me.colorF, 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/slider.c:247:35: [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. draw_Picture(eX * controlLeft, strcat(me.src, "_n"), eX * me.controlWidth + eY, me.color, 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/campaign.c:86:7: [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. r = strcat(r, "...\n"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/colorpicker.c:131:29: [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. draw_Picture(me.imgOrigin, strcat(me.src, "_m"), me.imgSize, '0 0 0', aC); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/colorpicker.c:132:29: [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. draw_Picture(me.imgOrigin, strcat(me.src, "_m"), me.imgSize, me.color, B); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/cvarlist.c:76:17: [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. me.cvarType = strcat(me.cvarType, ", will be saved to config.cfg"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/cvarlist.c:78:17: [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. me.cvarType = strcat(me.cvarType, ", will not be saved"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/cvarlist.c:80:17: [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. me.cvarType = strcat(me.cvarType, ", private"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/cvarlist.c:82:17: [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. me.cvarType = strcat(me.cvarType, ", engine setting"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/cvarlist.c:84:17: [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. me.cvarType = strcat(me.cvarType, ", read only"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:53:9: [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. s = strcat(s, " & ", e.message); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:56:6: [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. s = strcat(substring(s, 3, strlen(s) - 3), " Arena"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:68:7: [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. s = strcat(s, ", MinstaGib"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:70:7: [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. s = strcat(s, ", NixNex"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:72:7: [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. s = strcat(s, ", ", WeaponArenaString()); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:74:7: [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. s = strcat(s, ", No start weapons"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:76:7: [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. s = strcat(s, ", Low gravity"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:78:7: [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. s = strcat(s, ", Cloaked"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:80:7: [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. s = strcat(s, ", Steps"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:82:7: [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. s = strcat(s, ", Hook"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:84:7: [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. s = strcat(s, ", LG missiles"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:86:7: [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. s = strcat(s, ", Midair"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:88:7: [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. s = strcat(s, ", Vampire"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:90:7: [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. s = strcat(s, ", Pinata"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:92:7: [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. s = strcat(s, ", Weapons stay"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:94:7: [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. s = strcat(s, ", Bloodloss"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:96:7: [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. s = strcat(s, ", Jet pack"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:141:8: [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. s = strcat(s, " laser"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_singleplayer.c:23: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). fh = fopen(search_getfilename(glob, i), FILE_READ); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/keybinder.c:48: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). fh = fopen("keybinds.txt", FILE_READ); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/keybinder.c:155:11: [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. cvar_set(strcat(descr, "_description"), theName); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/keybinder.c:156:11: [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. cvar_set(strcat(descr, "_press"), theCommandPress); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/keybinder.c:157:11: [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. cvar_set(strcat(descr, "_release"), theCommandRelease); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/keybinder.c:176:72: [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. me.userbindEditDialog.loadUserBind(me.userbindEditDialog, cvar_string(strcat(descr, "_description")), cvar_string(strcat(descr, "_press")), cvar_string(strcat(descr, "_release"))); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/keybinder.c:176:116: [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. me.userbindEditDialog.loadUserBind(me.userbindEditDialog, cvar_string(strcat(descr, "_description")), cvar_string(strcat(descr, "_press")), cvar_string(strcat(descr, "_release"))); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/keybinder.c:176:154: [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. me.userbindEditDialog.loadUserBind(me.userbindEditDialog, cvar_string(strcat(descr, "_description")), cvar_string(strcat(descr, "_press")), cvar_string(strcat(descr, "_release"))); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/keybinder.c:292:23: [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. descr = cvar_string(strcat(s, "_description")); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/keybinder.c:295:18: [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. if(cvar_string(strcat(s, "_press")) == "") data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/keybinder.c:296:19: [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. if(cvar_string(strcat(s, "_release")) == "") data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/keybinder.c:311:10: [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. s = strcat(s, ", "); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/maplist.c:190:30: [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. s = draw_TextShortenToWidth(strcat(MapInfo_Map_bspname, ": ", MapInfo_Map_title), me.columnNameSize / me.realFontSize_x, 0); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/modbutton.c:25:12: [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. thecmd = strcat(thecmd, "\ntogglemenu\ndefer 0.1 \"menu_cmd directmenu ", me.destination,"\"\n"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/playermodel.c:71: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). fh = fopen(fn, FILE_READ); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/playermodel.c:136: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). fh = fopen(me.currentModelTxtName, FILE_READ); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/skinlist.c:108: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). fh = fopen(s, FILE_READ); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/skinlist.c:162:6: [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. s = strcat(s, ": ", me.skinParameter(me, i, SKINPARM_TITLE)); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/slider_decibels.c:92:9: [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. return strcat(valueToTextSlider(me, v), " dB"); data/nexuiz-data-2.5.2/misc/tools/brightspot.c:147:11: [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 picture[6][512][512]; data/nexuiz-data-2.5.2/misc/tools/brightspot.c:158:6: [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). f = fopen(argv[1], "rb"); data/nexuiz-data-2.5.2/misc/tools/hitplot2tga.c:49:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *file = fopen(fn, "wb"); data/nexuiz-data-2.5.2/misc/tools/hitplot2tga.c: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 buf[1024]; data/nexuiz-data-2.5.2/misc/tools/hitplot2tga.c:97:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *infile = fopen(fn, "r"); data/nexuiz-data-2.5.2/misc/tools/spherefunc2skybox.c:191:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *file = fopen(fn, "wb"); data/nexuiz-data-2.5.2/misc/tools/spherefunc2skybox.c:231: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[1024]; data/nexuiz-data-2.5.2/misc/tools/spherefunc2skybox.c:245:12: [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). int res = atoi(argv[2]); data/nexuiz-data-2.5.2/misc/tools/ttf2conchars/ttf2conchars.c:84:13: [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(out, data + y * width * 4, width * 4); data/nexuiz-data-2.5.2/misc/tools/ttf2conchars/ttf2conchars.c:109:6: [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). f = fopen(filename, "wb"); data/nexuiz-data-2.5.2/misc/tools/ttf2conchars/ttf2conchars.c:606: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 widthfilename[512]; data/nexuiz-data-2.5.2/misc/tools/ttf2conchars/ttf2conchars.c:614:17: [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). referenceTop = atoi(argv[2]); data/nexuiz-data-2.5.2/misc/tools/ttf2conchars/ttf2conchars.c:615:20: [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). referenceBottom = atoi(argv[3]); data/nexuiz-data-2.5.2/misc/tools/ttf2conchars/ttf2conchars.c:616:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). cell = atoi(argv[4]); data/nexuiz-data-2.5.2/misc/tools/ttf2conchars/ttf2conchars.c:717:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[2]; data/nexuiz-data-2.5.2/misc/tools/ttf2conchars/ttf2conchars.c:778: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). widthfile = fopen(widthfilename, "w"); data/nexuiz-data-2.5.2/misc/tools/ttf2conchars/ttf2conchars.c:789:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[2]; str[0] = i; str[1] = 0; data/nexuiz-data-2.5.2/data/qcsrc/menu/item/inputbox.c:79: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). for(i = 0; i < strlen(ch); ++i) data/nexuiz-data-2.5.2/data/qcsrc/menu/item/inputbox.c:82:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(ch) + strlen(me.text) > me.maxLength) data/nexuiz-data-2.5.2/data/qcsrc/menu/item/inputbox.c:82: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(strlen(ch) + strlen(me.text) > me.maxLength) data/nexuiz-data-2.5.2/data/qcsrc/menu/item/inputbox.c:84:98: [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). me.setText(me, strcat(substring(me.text, 0, me.cursorPos), ch, substring(me.text, me.cursorPos, strlen(me.text) - me.cursorPos))); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/inputbox.c:85: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). me.cursorPos += strlen(ch); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/inputbox.c:109:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). me.cursorPos = strlen(me.text); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/inputbox.c:115:101: [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). me.setText(me, strcat(substring(me.text, 0, me.cursorPos), substring(me.text, me.cursorPos + 1, strlen(me.text) - me.cursorPos - 1))); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/inputbox.c:122:101: [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). me.setText(me, strcat(substring(me.text, 0, me.cursorPos), substring(me.text, me.cursorPos + 1, strlen(me.text) - me.cursorPos - 1))); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/inputbox.c:148:40: [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). me.cursorPos = bound(0, me.cursorPos, strlen(me.text)); data/nexuiz-data-2.5.2/data/qcsrc/menu/item/inputbox.c:178: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). n = strlen(me.text); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/button.c:39:44: [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. me.tooltip = getZonedTooltipForIdentifier(strcat(currentDialog.classname, "/", me.text)); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/campaign.c:70:9: [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. r = strcat(r, "\n"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/campaign.c:84:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). while(substring(r, strlen(r) - 1, 1) == "\n") data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/campaign.c:85: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). r = substring(r, 0, strlen(r) - 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/campaign.c:88: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). campaign_longdesc_wrapped[i] = strzone(substring(r, 0, strlen(r) - 1)); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/campaign.c:183: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). s = substring(s, 13, strlen(s) - 17); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/credits.c:69: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). s = substring(s, 2, strlen(s) - 2); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/credits.c:75: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). s = substring(s, 1, strlen(s) - 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/cvarlist.c:85:50: [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). me.cvarType = strzone(substring(me.cvarType, 2, strlen(me.cvarType) - 2)); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/cvarlist.c:95: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). me.cvarValueBox.cursorPos = strlen(s); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/cvarlist.c:170: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). me.cvarValueBox.cursorPos = strlen(me.cvarDefault); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/demolist.c:52: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). s = substring(s, 6, strlen(s) - 6 - 4); // demos/, .dem data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:56: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). s = strcat(substring(s, 3, strlen(s) - 3), " Arena"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:100:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return substring(s, 2, strlen(s) - 2); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:140: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(me.checked && substring(s, strlen(s) - 6, 6) != " laser") data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:142:39: [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(!me.checked && substring(s, strlen(s) - 6, 6) == " laser") data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c:143: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). s = substring(s, 0, strlen(s) - 6); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_multiplayer_join_serverinfo.c:90:39: [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. me.currentServerNumPlayers = strzone(strcat(numh,"/",maxp)); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/dialog_singleplayer.c:30: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). s = substring(s, 4, strlen(s) - 4); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/inputbox.c:45: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). me.cursorPos = strlen(me.text); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/keybinder.c:152: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). descr = substring(descr, 1, strlen(descr) - 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/keybinder.c:173: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). descr = substring(descr, 1, strlen(descr) - 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/keybinder.c:291: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). s = substring(descr, 1, strlen(descr) - 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/maplist.c:95: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). c = substring(s, i+1, strlen(s) - (i+1)); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/maplist.c:102:25: [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. cvar_set("g_maplist", strcat(bspname, " ", cvar_string("g_maplist"))); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/maplist.c:109:9: [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. s = strcat(s, " ", argv(i)); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/maplist.c:110:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cvar_set("g_maplist", substring(s, 1, strlen(s) - 1)); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/maplist.c:219:8: [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. s = strcat( data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/maplist.c:246:7: [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. s = strcat(s, " ", MapInfo_BSPName_ByID(i)); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/maplist.c:247:40: [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). cvar_set("g_maplist", substring(s, 1, strlen(s) - 1)); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/maplist.c:320:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). save = substring(me.typeToSearchString, 0, strlen(me.typeToSearchString) - 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/maplist.c:325: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(me.typeToSearchString)) data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/playerlist.c:118:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(substring(score, strlen(score) - 10, 10) == ":spectator") data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/playermodel.c:87:35: [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. me.currentModelDescription = strcat(me.currentModelDescription, "\n"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/playermodel.c:149:33: [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. me.currentModelDescription = strcat(me.currentModelDescription, "\n"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/serverlist.c:132:34: [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. cvar_set("net_slist_favorites", strcat(s, " ", srv)); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/serverlist.c:171: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). me.ipAddressBox.cursorPos = strlen(me.selectedServer); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/serverlist.c:196:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). s = substring(s, m + 1, strlen(s) - m - 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/serverlist.c:198: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). s = substring(s, 1, strlen(s) - 1); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/serverlist.c:212:54: [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. sethostcachemaskstring(++m, SLIST_FIELD_QCSTATUS, strcat(typestr, ":"), SLIST_TEST_STARTSWITH); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/serverlist.c:216: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). sethostcachemaskstring(++m, SLIST_FIELD_MOD, resolvemod(substring(modstr, 1, strlen(modstr) - 1)), SLIST_TEST_NOTEQUAL); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/serverlist.c:226:54: [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. sethostcachemaskstring(++m, SLIST_FIELD_QCSTATUS, strcat(s, ":"), SLIST_TEST_STARTSWITH); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/serverlist.c:303: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). me.ipAddressBox.cursorPos = strlen(me.selectedServer); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/serverlist.c:376:7: [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. s = strcat(s, ":"); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/serverlist.c:377:48: [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). s = strcat(s, substring(me.filterString, m+1, strlen(me.filterString) - m - 1)); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/serverlist.c:573:6: [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. s = strcat(ftos(gethostcachenumber(SLIST_FIELD_NUMHUMANS, i)), "/", ftos(gethostcachenumber(SLIST_FIELD_MAXPLAYERS, i))); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/skinlist.c:104:71: [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). bufstr_set(buf, i * SKINPARM_COUNT + SKINPARM_NAME, substring(s, 9, strlen(s) - 24)); // the * part data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/skinlist.c:107:95: [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). bufstr_set(buf, i * SKINPARM_COUNT + SKINPARM_PREVIEW, strcat("/gfx/menu/", substring(s, 9, strlen(s) - 24), "/skinpreview")); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/skinlist.c:118:74: [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). bufstr_set(buf, i * SKINPARM_COUNT + SKINPARM_TITLE, substring(s, 6, strlen(s) - 6)); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/skinlist.c:120:75: [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). bufstr_set(buf, i * SKINPARM_COUNT + SKINPARM_AUTHOR, substring(s, 7, strlen(s) - 7)); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/slider_resolution.c:28:26: [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. me.addValue(me, strzone(strcat(ftos(w), "x", ftos(h))), strzone(strcat(ftos(w), " ", ftos(h), " ", ftos(cw), " ", ftos(ch)))); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/slider_resolution.c:28:66: [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. me.addValue(me, strzone(strcat(ftos(w), "x", ftos(h))), strzone(strcat(ftos(w), " ", ftos(h), " ", ftos(cw), " ", ftos(ch)))); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/slider_resolution.c:66:32: [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. me.setValueFromIdentifier(me, strcat(cvar_string("vid_width"), " ", cvar_string("vid_height"), " ", cvar_string("menu_vid_conwidth"), " ", cvar_string("menu_vid_conheight"))); data/nexuiz-data-2.5.2/data/qcsrc/menu/nexuiz/weaponslist.c:91: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). return substring(s, 0, strlen(s) - 2); data/nexuiz-data-2.5.2/misc/tools/ttf2conchars/ttf2conchars.c:650:68: [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). snprintf(widthfilename, sizeof(widthfilename), "%.*s.width", (int)strlen(outfilename) - 4, outfilename); ANALYSIS SUMMARY: Hits = 196 Lines analyzed = 11965 in approximately 5.27 seconds (2269 lines/second) Physical Source Lines of Code (SLOC) = 10523 Hits@level = [0] 26 [1] 65 [2] 83 [3] 2 [4] 46 [5] 0 Hits@level+ = [0+] 222 [1+] 196 [2+] 131 [3+] 48 [4+] 46 [5+] 0 Hits/KSLOC@level+ = [0+] 21.0966 [1+] 18.6259 [2+] 12.4489 [3+] 4.56144 [4+] 4.37138 [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.