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/fvwm1-1.24r/version.h Examining data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c Examining data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.h Examining data/fvwm1-1.24r/modules/GoodStuff/icons.c Examining data/fvwm1-1.24r/modules/FvwmBanner/FvwmBanner.c Examining data/fvwm1-1.24r/modules/FvwmDebug/FvwmDebug.h Examining data/fvwm1-1.24r/modules/FvwmDebug/FvwmDebug.c Examining data/fvwm1-1.24r/modules/FvwmClean/FvwmClean.c Examining data/fvwm1-1.24r/modules/FvwmClean/FvwmClean.h Examining data/fvwm1-1.24r/modules/FvwmSave/FvwmSave.c Examining data/fvwm1-1.24r/modules/FvwmSave/FvwmSave.h Examining data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.h Examining data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c Examining data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c Examining data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.h Examining data/fvwm1-1.24r/modules/FvwmPager/x_pager.c Examining data/fvwm1-1.24r/modules/FvwmWinList/Colors.c Examining data/fvwm1-1.24r/modules/FvwmWinList/Colors.h Examining data/fvwm1-1.24r/modules/FvwmWinList/List.c Examining data/fvwm1-1.24r/modules/FvwmWinList/List.h Examining data/fvwm1-1.24r/modules/FvwmWinList/Mallocs.c Examining data/fvwm1-1.24r/modules/FvwmWinList/Mallocs.h Examining data/fvwm1-1.24r/modules/FvwmWinList/ButtonArray.c Examining data/fvwm1-1.24r/modules/FvwmWinList/ButtonArray.h Examining data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.h Examining data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.c Examining data/fvwm1-1.24r/modules/FvwmScroll/FvwmScroll.c Examining data/fvwm1-1.24r/modules/FvwmScroll/FvwmScroll.h Examining data/fvwm1-1.24r/modules/FvwmScroll/GrabWindow.c Examining data/fvwm1-1.24r/modules/FvwmBacker/Mallocs.c Examining data/fvwm1-1.24r/modules/FvwmBacker/Mallocs.h Examining data/fvwm1-1.24r/modules/FvwmBacker/FvwmBacker.c Examining data/fvwm1-1.24r/modules/FvwmBacker/FvwmBacker.h Examining data/fvwm1-1.24r/modules/FvwmBacker/root_bits.c Examining data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c Examining data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c Examining data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.h Examining data/fvwm1-1.24r/modules/FvwmIconBox/icons.c Examining data/fvwm1-1.24r/modules/FvwmSaveDesk/FvwmSaveDesk.c Examining data/fvwm1-1.24r/modules/FvwmSaveDesk/FvwmSaveDesk.h Examining data/fvwm1-1.24r/modules/FvwmAuto/FvwmAuto.c Examining data/fvwm1-1.24r/xpmroot/xpmroot.c Examining data/fvwm1-1.24r/fvwm/add_window.c Examining data/fvwm1-1.24r/fvwm/borders.c Examining data/fvwm1-1.24r/fvwm/functions.c Examining data/fvwm1-1.24r/fvwm/events.c Examining data/fvwm1-1.24r/fvwm/menus.c Examining data/fvwm1-1.24r/fvwm/icons.c Examining data/fvwm1-1.24r/fvwm/module.c Examining data/fvwm1-1.24r/fvwm/move.c Examining data/fvwm1-1.24r/fvwm/resize.c Examining data/fvwm1-1.24r/fvwm/windows.c Examining data/fvwm1-1.24r/fvwm/misc.h Examining data/fvwm1-1.24r/fvwm/module.h Examining data/fvwm1-1.24r/fvwm/parse.h Examining data/fvwm1-1.24r/fvwm/fvwm.h Examining data/fvwm1-1.24r/fvwm/placement.c Examining data/fvwm1-1.24r/fvwm/sun_headers.h Examining data/fvwm1-1.24r/fvwm/misc.c Examining data/fvwm1-1.24r/fvwm/colormaps.c Examining data/fvwm1-1.24r/fvwm/style.c Examining data/fvwm1-1.24r/fvwm/decorations.c Examining data/fvwm1-1.24r/fvwm/screen.h Examining data/fvwm1-1.24r/fvwm/alpha_header.h Examining data/fvwm1-1.24r/fvwm/configure.c Examining data/fvwm1-1.24r/fvwm/fvwm.c Examining data/fvwm1-1.24r/fvwm/menus.h Examining data/fvwm1-1.24r/fvwm/pager.c Examining data/fvwm1-1.24r/libs/wild.c Examining data/fvwm1-1.24r/libs/fvwmlib.h Examining data/fvwm1-1.24r/libs/strncmp.c Examining data/fvwm1-1.24r/libs/CatString3.c Examining data/fvwm1-1.24r/libs/ReadPacket.c Examining data/fvwm1-1.24r/libs/CopyString.c Examining data/fvwm1-1.24r/libs/safemalloc.c Examining data/fvwm1-1.24r/libs/findIconFile.c Examining data/fvwm1-1.24r/libs/sleep.c Examining data/fvwm1-1.24r/libs/mygetostype.c Examining data/fvwm1-1.24r/libs/GetFdWidth.c Examining data/fvwm1-1.24r/libs/SendInfo.c Examining data/fvwm1-1.24r/libs/SendText.c Examining data/fvwm1-1.24r/libs/hostname.c Examining data/fvwm1-1.24r/libs/mystrcasecmp.c Examining data/fvwm1-1.24r/configure.h FINAL RESULTS: data/fvwm1-1.24r/fvwm/configure.c:355:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(home_file,config_file); data/fvwm1-1.24r/fvwm/configure.c:360:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(home_file,Home); data/fvwm1-1.24r/fvwm/configure.c:362: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). strcat(home_file,&config_file[2]); data/fvwm1-1.24r/fvwm/configure.c:367:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(home_file,Home); data/fvwm1-1.24r/fvwm/configure.c:369: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). strcat(home_file,config_file); data/fvwm1-1.24r/fvwm/configure.c:993:7: [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. n = sscanf(tline,"%d %s %s %s %d %d",&button,context,modifiers,function, data/fvwm1-1.24r/fvwm/configure.c:996:9: [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. n = sscanf(tline,"%d %s %s %s %d%c %d%c",&button,context,modifiers,function, data/fvwm1-1.24r/fvwm/configure.c:1131:7: [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. n = sscanf(tline,"%s %s %s %s %d %d",name,context,modifiers,function, data/fvwm1-1.24r/fvwm/configure.c:1134:9: [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. n = sscanf(tline,"%s %s %s %s %d%c %d%c",name,context,modifiers,function, data/fvwm1-1.24r/fvwm/configure.c:1936:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(cp, name); data/fvwm1-1.24r/fvwm/configure.c:1940:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(cp, m4_startquote); data/fvwm1-1.24r/fvwm/configure.c:1941:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(cp, m4_startquote); data/fvwm1-1.24r/fvwm/configure.c:1944:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(cp, def); data/fvwm1-1.24r/fvwm/configure.c:1947:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(cp, m4_endquote); data/fvwm1-1.24r/fvwm/configure.c:1948:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(cp, m4_endquote); data/fvwm1-1.24r/fvwm/configure.c:1988:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp_name, vc); data/fvwm1-1.24r/fvwm/configure.c:1993:10: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). vc = mktemp(tmp_name); data/fvwm1-1.24r/fvwm/configure.c:2012:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(options, "%s %s %s > %s\n", data/fvwm1-1.24r/fvwm/configure.c:2017:12: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. tmpf = popen(options, "w"); data/fvwm1-1.24r/fvwm/configure.c:2035: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(server, XDisplayName(host)); data/fvwm1-1.24r/fvwm/configure.c:2039:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(server, client); /* must be connected to :0 or unix:0 */ data/fvwm1-1.24r/fvwm/functions.c:374:6: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (execl("/bin/sh", "/bin/sh", "-c", action, (char *)0)==-1) data/fvwm1-1.24r/fvwm/fvwm.c:200:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(m4_options, argv[i]); data/fvwm1-1.24r/fvwm/fvwm.c:208: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(m4_startquote, argv[i]); data/fvwm1-1.24r/fvwm/fvwm.c:216: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(m4_endquote, argv[i]); data/fvwm1-1.24r/fvwm/fvwm.c:224: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(m4_prog, argv[i]); data/fvwm1-1.24r/fvwm/fvwm.c:279:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(message,"%s -d %s",argv[0],XDisplayString(dpy)); data/fvwm1-1.24r/fvwm/fvwm.c:283:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(message,num); data/fvwm1-1.24r/fvwm/fvwm.c:288:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(message,config_file); data/fvwm1-1.24r/fvwm/fvwm.c:290:3: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system(message); data/fvwm1-1.24r/fvwm/fvwm.c:301:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(display_string,"DISPLAY=%s",XDisplayString(dpy)); data/fvwm1-1.24r/fvwm/fvwm.c:311:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(rdisplay_string,"HOSTDISPLAY=%s:%s",client,&display_string[9]); data/fvwm1-1.24r/fvwm/fvwm.c:319:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(rdisplay_string,"HOSTDISPLAY=%s:%s",client, data/fvwm1-1.24r/fvwm/fvwm.c:327:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(rdisplay_string,"HOSTDISPLAY=%s",XDisplayString(dpy)); data/fvwm1-1.24r/fvwm/fvwm.c:932:2: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(command,my_argv); data/fvwm1-1.24r/fvwm/fvwm.c:935:7: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(g_argv[0], g_argv); /* that _should_ work */ data/fvwm1-1.24r/fvwm/fvwm.c:989:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr,message,arg1,arg2,arg3); data/fvwm1-1.24r/fvwm/fvwm.c:1001:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr,USAGE,VERSION); data/fvwm1-1.24r/fvwm/module.c:107: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(command,action); data/fvwm1-1.24r/fvwm/module.c:221:7: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(arg1,args); data/fvwm1-1.24r/fvwm/module.c:301:11: [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. n = sscanf(text,"%s %d %d",function,&func_val_1,&func_val_2); data/fvwm1-1.24r/fvwm/module.c:303:6: [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. n = sscanf(text,"%s %d%c %d%c",function,&func_val_1,&unit_1,&func_val_2,&unit_2); data/fvwm1-1.24r/fvwm/module.c:562: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((char *)&body[6],name); data/fvwm1-1.24r/fvwm/module.c:592: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((char *)&body[6],name); data/fvwm1-1.24r/fvwm/sun_headers.h:14:12: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. extern int system(char *command); data/fvwm1-1.24r/fvwm/sun_headers.h:22:14: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). extern char *mktemp(char *); data/fvwm1-1.24r/fvwm/sun_headers.h:24:12: [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. If the scanf format is influenceable by an attacker, it's exploitable. extern int sscanf(char *input, char *format, ...); data/fvwm1-1.24r/fvwm/sun_headers.h:25:12: [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. extern int printf(char *format, ...); data/fvwm1-1.24r/fvwm/sun_headers.h:26:12: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. extern int fprintf(FILE *file,char *format, ...); data/fvwm1-1.24r/fvwm/windows.c:97:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(t_hot, "&%c. %s", scut, name); /* Generate label */ data/fvwm1-1.24r/fvwm/windows.c:104: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). strcat(tname,loc); data/fvwm1-1.24r/fvwm/windows.c:109: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). strcat(tname, loc); data/fvwm1-1.24r/fvwm/windows.c:114: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). strcat(tname, loc); data/fvwm1-1.24r/fvwm/windows.c:125: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). strcat(tname, loc); data/fvwm1-1.24r/fvwm/windows.c:127: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). strcat(tname, loc); data/fvwm1-1.24r/libs/CatString3.c:18: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(CatS, a); data/fvwm1-1.24r/libs/CatString3.c:19:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(CatS, b); data/fvwm1-1.24r/libs/CatString3.c:20:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(CatS, c); data/fvwm1-1.24r/libs/findIconFile.c:39:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(path, icon); data/fvwm1-1.24r/libs/findIconFile.c:46:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(path, icon); data/fvwm1-1.24r/libs/findIconFile.c:60: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(path, pathlist); data/fvwm1-1.24r/libs/findIconFile.c:63: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). strcat(path, icon); data/fvwm1-1.24r/libs/findIconFile.c:64:11: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(path, type) == 0) data/fvwm1-1.24r/libs/findIconFile.c:67:11: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(path, type) == 0) data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:160:2: [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(MyName, temp); data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:222: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(host, rplay_default_host()); data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:242:6: [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(audio_play_cmd_line, p); data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:248:6: [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(audio_play_dir, p); data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:282:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(host, p); data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:327:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(sound_table[i],sound); data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:489:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf,"%s %s", audio_play_cmd_line, sound_table[sound]); data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:493:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf,"%s %s/%s", audio_play_cmd_line, audio_play_dir, data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:496:10: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return system(buf); data/fvwm1-1.24r/modules/FvwmBacker/FvwmBacker.c:247:4: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system(commands[body[0]].cmdStr); data/fvwm1-1.24r/modules/FvwmBacker/FvwmBacker.c:308:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(line2,"*%sDesk",Module); data/fvwm1-1.24r/modules/FvwmBacker/FvwmBacker.c:381:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(commands[num].cmdStr,temp); data/fvwm1-1.24r/modules/FvwmBacker/Mallocs.c:60: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(*string,value); data/fvwm1-1.24r/modules/FvwmClean/FvwmClean.c:69:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(MyName, temp); data/fvwm1-1.24r/modules/FvwmClean/FvwmClean.c:87:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(MyName, temp); data/fvwm1-1.24r/modules/FvwmClean/FvwmClean.c:116:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(command[num_commands],tline); data/fvwm1-1.24r/modules/FvwmDebug/FvwmDebug.c:51:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(MyName, temp); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:172: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(MyName, temp); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:659:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(label, "(%s)", item->name); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:661:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(label, item->name); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:1614: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(tline, "%s %s", p, s); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:2135:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(str, item); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:98:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(MyName, temp); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:665: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(geometry, loc); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:672:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(geometry, loc); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:679:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(geometry, loc); data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:100: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(MyName, temp); data/fvwm1-1.24r/modules/FvwmSave/FvwmSave.c:68:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(MyName, temp); data/fvwm1-1.24r/modules/FvwmSave/FvwmSave.c:297:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tname, "%s/new.xinitrc", getenv( "HOME" ) ); data/fvwm1-1.24r/modules/FvwmSave/FvwmSave.c:335: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). strcat(tname, loc); data/fvwm1-1.24r/modules/FvwmSave/FvwmSave.c:343: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). strcat(tname, loc); data/fvwm1-1.24r/modules/FvwmSaveDesk/FvwmSaveDesk.c:81:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(MyName, temp); data/fvwm1-1.24r/modules/FvwmSaveDesk/FvwmSaveDesk.c:335: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(tname, loc); data/fvwm1-1.24r/modules/FvwmSaveDesk/FvwmSaveDesk.c:343: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(tname, loc); data/fvwm1-1.24r/modules/FvwmSaveDesk/FvwmSaveDesk.c:424:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fnbuf, "%s/.fvwmdesk", getenv( "HOME" ) ); data/fvwm1-1.24r/modules/FvwmScroll/FvwmScroll.c:83:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(MyName, temp); data/fvwm1-1.24r/modules/FvwmWinList/ButtonArray.c:65: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(new->title,title); data/fvwm1-1.24r/modules/FvwmWinList/ButtonArray.c:90:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(temp->title,title); data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.c:120:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(Module, temp); data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.c:361:3: [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(filep,fmt,args); data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.c:566:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(ptr,string); data/fvwm1-1.24r/modules/FvwmWinList/Mallocs.c:60: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(*string,value); data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:108: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(MyName, temp); data/fvwm1-1.24r/fvwm/configure.c:347:10: [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. Home = getenv("HOME"); data/fvwm1-1.24r/fvwm/configure.c:1987:13: [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 ((vc=getenv("TMPDIR"))) { data/fvwm1-1.24r/fvwm/configure.c:2059:25: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. fputs(MkDef("HOME", getenv("HOME")), tmpf); data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:274:25: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. for (c1 = (char *)getenv(p+1); *c1 && (*c1 != ':'); c1++) data/fvwm1-1.24r/modules/FvwmSave/FvwmSave.c:297:36: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. sprintf(tname, "%s/new.xinitrc", getenv( "HOME" ) ); data/fvwm1-1.24r/modules/FvwmSaveDesk/FvwmSaveDesk.c:424:34: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. sprintf(fnbuf, "%s/.fvwmdesk", getenv( "HOME" ) ); data/fvwm1-1.24r/fvwm/add_window.c:234:18: [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). Desk = atoi(rm_value.addr); data/fvwm1-1.24r/fvwm/configure.c:316: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 line[256],*tline; data/fvwm1-1.24r/fvwm/configure.c:372: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). config_fd = fopen(home_file,"r"); data/fvwm1-1.24r/fvwm/configure.c:376:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). config_fd = fopen(system_file,"r"); data/fvwm1-1.24r/fvwm/configure.c:399:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). config_fd = fopen(fvwm_file, "r"); data/fvwm1-1.24r/fvwm/configure.c:890: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 newline[256]; data/fvwm1-1.24r/fvwm/configure.c:980: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 context[256],modifiers[256],function[256],*ptr; data/fvwm1-1.24r/fvwm/configure.c:1119: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 context[256],modifiers[256],function[256],*ptr; data/fvwm1-1.24r/fvwm/configure.c:1120: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[256]; data/fvwm1-1.24r/fvwm/configure.c:1870: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). desknumber = atoi (p); data/fvwm1-1.24r/fvwm/configure.c:1931: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(cp, "m4_define("); data/fvwm1-1.24r/fvwm/configure.c:1934:7: [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(cp, "define("); data/fvwm1-1.24r/fvwm/configure.c:1954:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(cp, "m4_"); data/fvwm1-1.24r/fvwm/configure.c:1957:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(cp, "dnl\n"); data/fvwm1-1.24r/fvwm/configure.c:1964:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char num[20]; data/fvwm1-1.24r/fvwm/configure.c:1966:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(num, "%d", def); data/fvwm1-1.24r/fvwm/configure.c:1974:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char client[MAXHOSTNAME], server[MAXHOSTNAME], *colon; data/fvwm1-1.24r/fvwm/configure.c:1975:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ostype[BUFSIZ]; data/fvwm1-1.24r/fvwm/configure.c:1976:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char options[BUFSIZ]; data/fvwm1-1.24r/fvwm/configure.c:1977:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char tmp_name[BUFSIZ]; data/fvwm1-1.24r/fvwm/configure.c:1990:7: [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(tmp_name, "/tmp"); data/fvwm1-1.24r/fvwm/configure.c:1992:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(tmp_name, "/fvwmrcXXXXXX"); data/fvwm1-1.24r/fvwm/configure.c:2001:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(tmp_name, O_WRONLY|O_EXCL|O_CREAT, 0600)) < 0) { data/fvwm1-1.24r/fvwm/configure.c:2110:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(options, "SHAPE "); data/fvwm1-1.24r/fvwm/configure.c:2113:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(options, "XPM "); data/fvwm1-1.24r/fvwm/configure.c:2116:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(options, "M4 "); data/fvwm1-1.24r/fvwm/configure.c:2119:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(options, "NO_PAGER "); data/fvwm1-1.24r/fvwm/configure.c:2122:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(options, "NON_VIRTUAL "); data/fvwm1-1.24r/fvwm/configure.c:2125:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(options, "NO_SAVEUNDERS "); data/fvwm1-1.24r/fvwm/configure.c:2128:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(options, "NO_WINDOWLIST "); data/fvwm1-1.24r/fvwm/configure.c:2131:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(options, "PRUNE "); data/fvwm1-1.24r/fvwm/fvwm.c:108:1: [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 m4_options[BUFSIZ]; /* Command line options to m4 */ data/fvwm1-1.24r/fvwm/fvwm.c:109:1: [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 m4_prog[BUFSIZ]; /* Name of the m4 program */ data/fvwm1-1.24r/fvwm/fvwm.c:111:1: [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 m4_startquote[16]; /* Left quote characters for m4 */ data/fvwm1-1.24r/fvwm/fvwm.c:112:1: [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 m4_endquote[16]; /* Right quote characters for m4 */ data/fvwm1-1.24r/fvwm/fvwm.c:149:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[255]; data/fvwm1-1.24r/fvwm/fvwm.c:150:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char num[10]; data/fvwm1-1.24r/fvwm/fvwm.c:160:5: [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(m4_prog, "m4"); data/fvwm1-1.24r/fvwm/fvwm.c:282: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(num,"%d",i); data/fvwm1-1.24r/fvwm/fvwm.c:284:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(message," -s "); data/fvwm1-1.24r/fvwm/fvwm.c:286:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(message," -debug"); data/fvwm1-1.24r/fvwm/fvwm.c:287:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(message," -f "); data/fvwm1-1.24r/fvwm/fvwm.c:289:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(message," &\n"); data/fvwm1-1.24r/fvwm/fvwm.c:308:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char client[MAXHOSTNAME], *rdisplay_string; data/fvwm1-1.24r/fvwm/fvwm.c:316: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 client[MAXHOSTNAME], *rdisplay_string; data/fvwm1-1.24r/fvwm/fvwm.c:906: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 *my_argv[10]; data/fvwm1-1.24r/fvwm/module.c:91: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 command[256]; data/fvwm1-1.24r/fvwm/module.c:94: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 *args[10]; data/fvwm1-1.24r/fvwm/module.c:96:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char arg2[40]; data/fvwm1-1.24r/fvwm/module.c:97: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 arg3[40]; data/fvwm1-1.24r/fvwm/module.c:98: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 arg5[40]; data/fvwm1-1.24r/fvwm/module.c:99: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 arg6[40]; data/fvwm1-1.24r/fvwm/module.c:204:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(arg2,"%d",app_to_fvwm[1]); data/fvwm1-1.24r/fvwm/module.c:205:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(arg3,"%d",fvwm_to_app[0]); data/fvwm1-1.24r/fvwm/module.c:206:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(arg5,"%lx",(unsigned long)win); data/fvwm1-1.24r/fvwm/module.c:207:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(arg6,"%lx",(unsigned long)context); data/fvwm1-1.24r/fvwm/module.c:238:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[256]; data/fvwm1-1.24r/fvwm/module.c:280:7: [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 function[256],*ptr; data/fvwm1-1.24r/fvwm/module.c:623:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(d,ptr,size); data/fvwm1-1.24r/fvwm/move.c:317: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 [100]; data/fvwm1-1.24r/fvwm/move.c:320:10: [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. (void) sprintf (str, " %+-4d %+-4d ", x, y); data/fvwm1-1.24r/fvwm/resize.c:423: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[100]; data/fvwm1-1.24r/fvwm/resize.c:440:10: [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. (void) sprintf (str, " %4d x %-4d ", dwidth, dheight); data/fvwm1-1.24r/fvwm/windows.c:45: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 loc[40],*name=NULL; data/fvwm1-1.24r/fvwm/windows.c:47: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 tlabel[50]; data/fvwm1-1.24r/fvwm/windows.c:54: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(tlabel,"CurrentDesk: %d",Scr.CurrentDesk); data/fvwm1-1.24r/fvwm/windows.c:103:8: [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(loc,"%d:",t->Desk); data/fvwm1-1.24r/fvwm/windows.c:106: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(loc,"+%d",t->frame_x); data/fvwm1-1.24r/fvwm/windows.c:108: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(loc,"%d",t->frame_x); data/fvwm1-1.24r/fvwm/windows.c:111: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(loc,"+%d",t->frame_y); data/fvwm1-1.24r/fvwm/windows.c:113: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(loc,"%d",t->frame_y); data/fvwm1-1.24r/fvwm/windows.c:124:8: [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(loc,"x%d",dwidth); data/fvwm1-1.24r/fvwm/windows.c:126:8: [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(loc,"x%d",dheight); data/fvwm1-1.24r/libs/CatString3.c:10:1: [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 CatS[256]; data/fvwm1-1.24r/libs/findIconFile.c:66: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. strcat(path, ".gz"); data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:92:1: [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 audio_play_cmd_line[BUFSIZE], audio_play_dir[BUFSIZE]; data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:107:1: [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 *messages[MAX_MESSAGES+MAX_BUILTIN] = data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:134:1: [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 *sound_table[MAX_MESSAGES+MAX_BUILTIN]; data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:165: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). fd[0] = atoi(argv[1]); data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:166: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). fd[1] = atoi(argv[2]); data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:194: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[BUFSIZE]; data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:200: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 host[128]; data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:205: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(config_file, "r"); data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:254: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). audio_delay = atoi(p); data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:290:15: [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). volume = atoi(p); data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:297: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). priority = atoi(p); data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:463:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[BUFSIZE]; data/fvwm1-1.24r/modules/FvwmAuto/FvwmAuto.c:63: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 mask_mesg[80]; data/fvwm1-1.24r/modules/FvwmAuto/FvwmAuto.c:74:11: [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). fd[0] = atoi(argv[1]); data/fvwm1-1.24r/modules/FvwmAuto/FvwmAuto.c:75:11: [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). fd[1] = atoi(argv[2]); data/fvwm1-1.24r/modules/FvwmAuto/FvwmAuto.c:77:13: [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). timeout = atoi(argv[6]); data/fvwm1-1.24r/modules/FvwmAuto/FvwmAuto.c:82: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(mask_mesg,"SET_MASK %lu\n",(unsigned long)(M_FOCUS_CHANGE)); data/fvwm1-1.24r/modules/FvwmBacker/FvwmBacker.c:108:16: [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). Fvwm_fd[0] = atoi(argv[1]); data/fvwm1-1.24r/modules/FvwmBacker/FvwmBacker.c:109:16: [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). Fvwm_fd[1] = atoi(argv[2]); data/fvwm1-1.24r/modules/FvwmBacker/FvwmBacker.c:125: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). logFile = fopen(LOGFILE,"a"); data/fvwm1-1.24r/modules/FvwmBacker/FvwmBacker.c:304:1: [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[256]; data/fvwm1-1.24r/modules/FvwmBacker/FvwmBacker.c:305:1: [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 line2[40]; data/fvwm1-1.24r/modules/FvwmBacker/FvwmBacker.c:309: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). ptr=fopen(file,"r"); data/fvwm1-1.24r/modules/FvwmBacker/FvwmBacker.c:333:7: [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). num=atoi(temp); data/fvwm1-1.24r/modules/FvwmBanner/FvwmBanner.c:103:15: [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). fd[0] = atoi(argv[1]); data/fvwm1-1.24r/modules/FvwmBanner/FvwmBanner.c:104:15: [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). fd[1] = atoi(argv[2]); data/fvwm1-1.24r/modules/FvwmClean/FvwmClean.c:43:1: [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 command[3][256]; data/fvwm1-1.24r/modules/FvwmClean/FvwmClean.c:92:11: [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). fd[0] = atoi(argv[1]); data/fvwm1-1.24r/modules/FvwmClean/FvwmClean.c:93:11: [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). fd[1] = atoi(argv[2]); data/fvwm1-1.24r/modules/FvwmClean/FvwmClean.c:96:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file = fopen(argv[3],"r"); data/fvwm1-1.24r/modules/FvwmClean/FvwmClean.c:99:7: [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[256]; data/fvwm1-1.24r/modules/FvwmDebug/FvwmDebug.c:63:11: [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). fd[0] = atoi(argv[1]); data/fvwm1-1.24r/modules/FvwmDebug/FvwmDebug.c:64:11: [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). fd[1] = atoi(argv[2]); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:162: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 set_mask_mesg[50]; data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:183:11: [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). fd[0] = atoi(argv[1]); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:184:11: [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). fd[1] = atoi(argv[2]); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:205: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(set_mask_mesg,"SET_MASK %lu\n", data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:595: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 label[256]; data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:1434: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 line[256]; data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:1438: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). fd = fopen(filename,"r"); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:1513:21: [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). interval = max(0,atoi(&tline[Clength+8])); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:1516:18: [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). Lines = max(1,atoi(&tline[Clength+6])); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:1546:16: [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). ClickTime = atoi(&tline[9]); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:1612: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 p[240], s[240]; data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:75:1: [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 id[15], desktop[10], swidth[10], sheight[10], borderw[10], geometry[30]; data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:111:11: [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). fd[0] = atoi(argv[1]); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:112:11: [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). fd[1] = atoi(argv[2]); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:134:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file = fopen(argv[3],"r"); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:137:7: [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[256]; data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:584: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 loc[20]; data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:590: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(desktop, "%ld", target.desktop); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:591: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(id, "0x%x", (unsigned int)target.id); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:592: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(swidth, "%d", width); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:593: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(sheight, "%d", height); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:594: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(borderw, "%ld", target.border_w); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:664: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(loc,"%dx%d",width,height); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:669:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(loc,"-%d",x2); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:671:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(loc,"+%d",x1); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:676:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(loc,"-%d",y2); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:678:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(loc,"+%d",y1); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.h:10:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char res[256]; data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.h:11: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 class[256]; data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.h:12: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[256]; data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.h:13: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 icon_name[256]; data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:90: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 line[100]; data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:91: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 mask_mesg[50]; data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:119:11: [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). fd[0] = atoi(argv[1]); data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:120:11: [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). fd[1] = atoi(argv[2]); data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:126:11: [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). desk1 = atoi(cptr); data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:129:11: [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). desk2 = atoi(cptr); data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:141:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(line,"Desk %d",i+desk1); data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:163: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(mask_mesg,"SET_MASK %lu\n",(unsigned long)(M_ADD_WINDOW| data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:295:17: [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. (*prev)->t = (char *)body[2]; data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:338:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. t->t = (char *)body[2]; data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:575:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. t->t = (char *)body[2]; data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:770: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 line[256]; data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:790: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). fd = fopen(filename,"r"); data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:625: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[100],*sptr; data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:658: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(str,"Desk %d",Scr.CurrentDesk); data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:724: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[15], *ptr; data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:769:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str,"%d",d); data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:833: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 command[256]; data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:835: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(command,"Desk 0 %d\n",Desk+desk1); data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:843: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 command[256]; data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:847: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(command,"GotoPage %d %d\n", data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:854: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(command,"Desk 0 %d\n",Desk+desk1); data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:863: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 command[256]; data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:866: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(command,"GotoPage %d %d\n", data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:1133: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 command[256]; data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:1160:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(command,"Scroll %d %d\n",sx,sy); data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:1171: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 command[256]; data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:1193:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(command,"Scroll %d %d\n",sx,sy); data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:1203: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 command[100]; data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:1303: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(command,"WindowsDesk %d", NewDesk); data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:1383:8: [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(command,"WindowsDesk %d", NewDesk + desk1); data/fvwm1-1.24r/modules/FvwmSave/FvwmSave.c:91:11: [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). fd[0] = atoi(argv[1]); data/fvwm1-1.24r/modules/FvwmSave/FvwmSave.c:92:11: [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). fd[1] = atoi(argv[2]); data/fvwm1-1.24r/modules/FvwmSave/FvwmSave.c:290: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 tname[200],loc[30]; data/fvwm1-1.24r/modules/FvwmSave/FvwmSave.c:298: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). out = fopen( tname, "w+" ); data/fvwm1-1.24r/modules/FvwmSave/FvwmSave.c:328:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tname,"%dx%d",dwidth,dheight); data/fvwm1-1.24r/modules/FvwmSave/FvwmSave.c:332:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(loc,"-%d",x2); data/fvwm1-1.24r/modules/FvwmSave/FvwmSave.c:334:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(loc,"+%d",x1+(int)tVx); data/fvwm1-1.24r/modules/FvwmSave/FvwmSave.c:340:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(loc,"-%d",y2); data/fvwm1-1.24r/modules/FvwmSave/FvwmSave.c:342:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(loc,"+%d",y1+(int)tVy); data/fvwm1-1.24r/modules/FvwmSaveDesk/FvwmSaveDesk.c:104:11: [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). fd[0] = atoi(argv[1]); data/fvwm1-1.24r/modules/FvwmSaveDesk/FvwmSaveDesk.c:105:11: [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). fd[1] = atoi(argv[2]); data/fvwm1-1.24r/modules/FvwmSaveDesk/FvwmSaveDesk.c:295: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 tname[200],loc[30]; data/fvwm1-1.24r/modules/FvwmSaveDesk/FvwmSaveDesk.c:328: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(tname,"%dx%d",dwidth,dheight); data/fvwm1-1.24r/modules/FvwmSaveDesk/FvwmSaveDesk.c:332:6: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(loc,"-%d",x2); data/fvwm1-1.24r/modules/FvwmSaveDesk/FvwmSaveDesk.c:334:6: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(loc,"+%d",x1+(int)tVx); data/fvwm1-1.24r/modules/FvwmSaveDesk/FvwmSaveDesk.c:340:6: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(loc,"-%d",y2); data/fvwm1-1.24r/modules/FvwmSaveDesk/FvwmSaveDesk.c:342:6: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(loc,"+%d",y1+(int)tVy); data/fvwm1-1.24r/modules/FvwmSaveDesk/FvwmSaveDesk.c:414: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 fnbuf[200]; data/fvwm1-1.24r/modules/FvwmSaveDesk/FvwmSaveDesk.c:425: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). out = fopen( fnbuf, "w" ); data/fvwm1-1.24r/modules/FvwmScroll/FvwmScroll.c:100:21: [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). Reduction_H = atoi(cptr); data/fvwm1-1.24r/modules/FvwmScroll/FvwmScroll.c:103:21: [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). Reduction_V = atoi(cptr); data/fvwm1-1.24r/modules/FvwmScroll/FvwmScroll.c:108:11: [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). fd[0] = atoi(argv[1]); data/fvwm1-1.24r/modules/FvwmScroll/FvwmScroll.c:109:11: [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). fd[1] = atoi(argv[2]); data/fvwm1-1.24r/modules/FvwmScroll/FvwmScroll.c:131:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file = fopen(argv[3],"r"); data/fvwm1-1.24r/modules/FvwmScroll/FvwmScroll.c:134:7: [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[256]; data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.c:94:1: [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 *ClickAction[3]={"Iconify -1,Raise","Iconify","Lower"},*EnterAction, data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.c:134:16: [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). Fvwm_fd[0] = atoi(argv[1]); data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.c:135:16: [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). Fvwm_fd[1] = atoi(argv[2]); data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.c:372:16: [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). if ((console=fopen("/dev/console","w"))==NULL) { data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.c:387:1: [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[256]; data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.c:390: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). ptr=fopen(file,"r"); data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.c:426:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[10]; data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:99: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 set_mask_mesg[50]; data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:135:11: [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). fd[0] = atoi(argv[1]); data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:136:11: [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). fd[1] = atoi(argv[2]); data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:157: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(set_mask_mesg,"SET_MASK %lu\n", data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:924: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 line[256]; data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:928: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). fd = fopen(filename,"r"); data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:1118: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(ptr,"Exec "); data/fvwm1-1.24r/fvwm/alpha_header.h:15:15: [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). extern size_t strlen(char *); data/fvwm1-1.24r/fvwm/borders.c:182:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). t->icon_name, strlen(t->icon_name)); data/fvwm1-1.24r/fvwm/borders.c:478: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). w=XTextWidth(Scr.WindowFont.font,t->name,strlen(t->name)); data/fvwm1-1.24r/fvwm/borders.c:512: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). t->name, strlen(t->name)); data/fvwm1-1.24r/fvwm/borders.c:518: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). t->name, strlen(t->name)); data/fvwm1-1.24r/fvwm/configure.c:350: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). HomeLen = strlen(Home); data/fvwm1-1.24r/fvwm/configure.c:354: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). home_file = safemalloc(strlen(config_file)+1); data/fvwm1-1.24r/fvwm/configure.c:359: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). home_file = safemalloc(HomeLen + strlen(&config_file[2])+3); data/fvwm1-1.24r/fvwm/configure.c:361: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. strcat(home_file,"/"); data/fvwm1-1.24r/fvwm/configure.c:366:38: [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). home_file = safemalloc(HomeLen+strlen(config_file)+3); data/fvwm1-1.24r/fvwm/configure.c:368: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. strcat(home_file,"/"); data/fvwm1-1.24r/fvwm/configure.c:414:11: [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(&tline[0])>1)&&(tline[0]!='#')&&(tline[0]!='*')) data/fvwm1-1.24r/fvwm/configure.c:1075:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). mi->strlen = strlen(mi->item); data/fvwm1-1.24r/fvwm/configure.c:1199:11: [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(i<strlen(string)) data/fvwm1-1.24r/fvwm/configure.c:1242: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((!matched)&&(strlen(table[j].keyword)>0)) data/fvwm1-1.24r/fvwm/configure.c:1244:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(mystrncasecmp(text,table[j].keyword,strlen(table[j].keyword))==0) data/fvwm1-1.24r/fvwm/configure.c:1248: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). table[j].action(&text[strlen(table[j].keyword)], data/fvwm1-1.24r/fvwm/configure.c:1290:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cur->strlen))>>1; data/fvwm1-1.24r/fvwm/configure.c:1423:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp->strlen = strlen(item); data/fvwm1-1.24r/fvwm/configure.c:1432: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). tmp->strlen2 = strlen(item2); data/fvwm1-1.24r/fvwm/configure.c:1471:51: [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). width = XTextWidth(Scr.StdFont.font, item, tmp->strlen); data/fvwm1-1.24r/fvwm/configure.c:1618:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(source); data/fvwm1-1.24r/fvwm/configure.c:1626:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ptr,source,len); data/fvwm1-1.24r/fvwm/configure.c:1684:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ptr,source,count); data/fvwm1-1.24r/fvwm/configure.c:1856: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(name) == 0) data/fvwm1-1.24r/fvwm/configure.c:1912: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). n = EXTRA + strlen(name) + strlen(def); data/fvwm1-1.24r/fvwm/configure.c:1912: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). n = EXTRA + strlen(name) + strlen(def); data/fvwm1-1.24r/fvwm/configure.c:1939: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(cp, ","); data/fvwm1-1.24r/fvwm/configure.c:1951: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(cp, ")"); data/fvwm1-1.24r/fvwm/decorations.c:355: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). (mystrncasecmp(mi->item,MOVE_STRING,strlen(MOVE_STRING))==0)) data/fvwm1-1.24r/fvwm/decorations.c:359:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (mystrncasecmp(mi->item,RESIZE_STRING1,strlen(RESIZE_STRING1))==0)) data/fvwm1-1.24r/fvwm/decorations.c:363:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (mystrncasecmp(mi->item,RESIZE_STRING2,strlen(RESIZE_STRING2))==0)) data/fvwm1-1.24r/fvwm/decorations.c:368:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (mystrncasecmp(mi->item,MINIMIZE_STRING,strlen(MINIMIZE_STRING))==0)) data/fvwm1-1.24r/fvwm/decorations.c:372:44: [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). (mystrncasecmp(mi->item,MINIMIZE_STRING2,strlen(MINIMIZE_STRING2))==0)) data/fvwm1-1.24r/fvwm/decorations.c:376:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (mystrncasecmp(mi->item,MAXIMIZE_STRING,strlen(MAXIMIZE_STRING))==0)) data/fvwm1-1.24r/fvwm/decorations.c:380: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). (mystrncasecmp(mi->item,CLOSE_STRING1,strlen(CLOSE_STRING1))==0)) data/fvwm1-1.24r/fvwm/decorations.c:384: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). (mystrncasecmp(mi->item,CLOSE_STRING2,strlen(CLOSE_STRING2))==0)) data/fvwm1-1.24r/fvwm/decorations.c:388: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). (mystrncasecmp(mi->item,CLOSE_STRING3,strlen(CLOSE_STRING3))==0)) data/fvwm1-1.24r/fvwm/decorations.c:392: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). (mystrncasecmp(mi->item,CLOSE_STRING4,strlen(CLOSE_STRING4))==0)) data/fvwm1-1.24r/fvwm/events.c:1440:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(readPipes[i],&targetWindow, sizeof(Window))) >0) data/fvwm1-1.24r/fvwm/functions.c:468: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). tmp_win->icon_name, strlen(tmp_win->icon_name)); data/fvwm1-1.24r/fvwm/functions.c:763: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). if (action && (strlen(action) > 0)&& data/fvwm1-1.24r/fvwm/fvwm.c:163:5: [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(m4_startquote, "`"); data/fvwm1-1.24r/fvwm/fvwm.c:164:5: [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(m4_endquote, "'"); data/fvwm1-1.24r/fvwm/fvwm.c:201:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(m4_options, " "); data/fvwm1-1.24r/fvwm/fvwm.c:280:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(message); data/fvwm1-1.24r/fvwm/fvwm.c:299:11: [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). len = strlen(XDisplayString(dpy)); data/fvwm1-1.24r/fvwm/fvwm.c:310: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). rdisplay_string = safemalloc(len+14 + strlen(client)); data/fvwm1-1.24r/fvwm/fvwm.c:318: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). rdisplay_string = safemalloc(len+14 + strlen(client)); data/fvwm1-1.24r/fvwm/icons.c:94:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(tmp_win->icon_name)); data/fvwm1-1.24r/fvwm/icons.c:318: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). Tmp_win->icon_name, strlen(Tmp_win->icon_name)); data/fvwm1-1.24r/fvwm/icons.c:347:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(Tmp_win->icon_name)); data/fvwm1-1.24r/fvwm/menus.c:271:67: [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). XDrawString(dpy, mr->w, currentGC,mi->x,text_y, mi->item, mi->strlen); data/fvwm1-1.24r/fvwm/menus.h:69:11: [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). short strlen; /* strlen(item) */ data/fvwm1-1.24r/fvwm/module.c:245:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n = read(readPipes[channel], &size, sizeof(int)); data/fvwm1-1.24r/fvwm/module.c:260:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n = read(readPipes[channel],text, size); data/fvwm1-1.24r/fvwm/module.c:268:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n = read(readPipes[channel],&cont, sizeof(int)); data/fvwm1-1.24r/fvwm/module.c:278: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(text)>0) data/fvwm1-1.24r/fvwm/module.c:552: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). l=strlen(name)/(sizeof(unsigned long))+7; data/fvwm1-1.24r/fvwm/module.c:582: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). l=strlen(name)/(sizeof(unsigned long))+7; data/fvwm1-1.24r/fvwm/move.c:337: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). - XTextWidth(Scr.StdFont.font,str,strlen(str)))/2; data/fvwm1-1.24r/fvwm/move.c:341:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). str, strlen(str)); data/fvwm1-1.24r/fvwm/pager.c:76: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). Scr.Hilite->icon_name, strlen(Scr.Hilite->icon_name)); data/fvwm1-1.24r/fvwm/pager.c:96: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). t->icon_name, strlen(t->icon_name)); data/fvwm1-1.24r/fvwm/resize.c:442: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). - XTextWidth(Scr.StdFont.font,str,strlen(str)))/2; data/fvwm1-1.24r/fvwm/style.c:71:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(icon_name,restofline,len); data/fvwm1-1.24r/fvwm/style.c:95:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(forecolor,restofline,len); data/fvwm1-1.24r/fvwm/style.c:116:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(backcolor,restofline,len); data/fvwm1-1.24r/fvwm/style.c:138:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(forecolor,restofline,len); data/fvwm1-1.24r/fvwm/style.c:160:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(backcolor,restofline,len); data/fvwm1-1.24r/fvwm/sun_headers.h:20:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). extern int fgetc(FILE *); data/fvwm1-1.24r/fvwm/windows.c:96: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). t_hot = safemalloc(strlen(name) + 8); data/fvwm1-1.24r/fvwm/windows.c:102:3: [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(tname, "("); data/fvwm1-1.24r/fvwm/windows.c:129:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(tname, ")"); data/fvwm1-1.24r/libs/CatString3.c:14: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(a)+strlen(b)+strlen(c) > 255) data/fvwm1-1.24r/libs/CatString3.c:14: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). if (strlen(a)+strlen(b)+strlen(c) > 255) data/fvwm1-1.24r/libs/CatString3.c:14:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(a)+strlen(b)+strlen(c) > 255) data/fvwm1-1.24r/libs/CopyString.c:34:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(*dest,start,len); data/fvwm1-1.24r/libs/ReadPacket.c:28:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((count = read(fd,header,3*sizeof(unsigned long))) >0) data/fvwm1-1.24r/libs/ReadPacket.c:40:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(fd,&cbody[total], data/fvwm1-1.24r/libs/SendInfo.c:18:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). w=strlen(message); data/fvwm1-1.24r/libs/SendText.c:17:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). w=strlen(message); data/fvwm1-1.24r/libs/findIconFile.c:25:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l1 = strlen(icon); data/fvwm1-1.24r/libs/findIconFile.c:30:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l2 = strlen(pathlist); data/fvwm1-1.24r/libs/findIconFile.c:56:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(path, pathlist, dir_end - pathlist); data/fvwm1-1.24r/libs/findIconFile.c:62: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. strcat(path, "/"); data/fvwm1-1.24r/libs/hostname.c:14:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(client,sysname.nodename,length); data/fvwm1-1.24r/libs/mygetostype.c:14:5: [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 (buf,""); data/fvwm1-1.24r/libs/mygetostype.c:16:5: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat (strcpy(buf,""), sysname.sysname, max); data/fvwm1-1.24r/libs/mygetostype.c:16:14: [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. strncat (strcpy(buf,""), sysname.sysname, max); data/fvwm1-1.24r/libs/mygetostype.c:22:3: [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 (buf,""); data/fvwm1-1.24r/libs/mystrcasecmp.c:11: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). n=strlen(s1); data/fvwm1-1.24r/libs/mystrcasecmp.c:12: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). n2=strlen(s2); data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:158: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). MyName = safemalloc(strlen(temp)+2); data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:159: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(MyName,"*"); data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:227: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). buf[strlen(buf)-1] = '\0'; data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:235:34: [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 (mystrncasecmp(buf, MyName, strlen(MyName)) == 0) data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:326: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). sound_table[i]=safemalloc(strlen(sound)+1); data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:369:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((count = read(fd[1],header,3*sizeof(unsigned long))) > 0) data/fvwm1-1.24r/modules/FvwmAudio/FvwmAudio.c:391:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((count2=read(fd[1],&cbody[total], data/fvwm1-1.24r/modules/FvwmBacker/FvwmBacker.c:267:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(temp_msg,hold,(temp-hold)); data/fvwm1-1.24r/modules/FvwmBacker/FvwmBacker.c:274: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). w=strlen(temp_msg); data/fvwm1-1.24r/modules/FvwmBacker/FvwmBacker.c:315:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(tline)>1) { data/fvwm1-1.24r/modules/FvwmBacker/FvwmBacker.c:316:38: [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(mystrncasecmp(tline,line2,strlen(line2))==0) data/fvwm1-1.24r/modules/FvwmBacker/FvwmBacker.c:317: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). AddCommand(&tline[strlen(line2)]); data/fvwm1-1.24r/modules/FvwmBacker/FvwmBacker.c:380:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). commands[num].cmdStr = (char *)safemalloc(strlen(temp)+1); data/fvwm1-1.24r/modules/FvwmBacker/Mallocs.c:58:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (*string==NULL) *string=(char *)safemalloc(strlen(value)+1); data/fvwm1-1.24r/modules/FvwmBacker/Mallocs.c:59: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). else *string=(char *)realloc(*string,strlen(value)+1); data/fvwm1-1.24r/modules/FvwmClean/FvwmClean.c:67: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). MyName = safemalloc(strlen(temp)+2); data/fvwm1-1.24r/modules/FvwmClean/FvwmClean.c:68:3: [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(MyName,"*"); data/fvwm1-1.24r/modules/FvwmClean/FvwmClean.c:85: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). MyName = safemalloc(strlen(temp)+2); data/fvwm1-1.24r/modules/FvwmClean/FvwmClean.c:86:3: [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(MyName,"*"); data/fvwm1-1.24r/modules/FvwmClean/FvwmClean.c:106:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if((strlen(&tline[0])>1)&& data/fvwm1-1.24r/modules/FvwmClean/FvwmClean.c:107:36: [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). (mystrncasecmp(tline, MyName,strlen(MyName))==0)) data/fvwm1-1.24r/modules/FvwmClean/FvwmClean.c:109: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). sscanf(&tline[strlen(MyName)],"%ld",&period[num_commands]); data/fvwm1-1.24r/modules/FvwmDebug/FvwmDebug.c:49: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). MyName = safemalloc(strlen(temp)+2); data/fvwm1-1.24r/modules/FvwmDebug/FvwmDebug.c:50:3: [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(MyName,"*"); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:171: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). MyName = safemalloc(strlen(temp)+1); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:663:11: [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). len = strlen(label); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:1239:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(temp_msg,hold,(temp-hold)); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:1247:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). w=strlen(temp_msg); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:1447: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). Clength = strlen(MyName); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:1455:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(&tline[0])>1){ data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:1461:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp[strlen(tmp)-1] = 0; data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:1480:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp[strlen(tmp)-1] = 0; data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:1593:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ptr, start, len); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:1688:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ptr, start, len); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:1719:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(nptr, start, nlen); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:1738:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(aptr, start, alen); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:2134: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). str = (char *)safemalloc(strlen(item)+1); data/fvwm1-1.24r/modules/FvwmIconBox/FvwmIconBox.c:2448:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ptr,source,count); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:96: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). MyName = safemalloc(strlen(temp)+2); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:97:3: [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(MyName,"*"); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:99: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). Clength = strlen(MyName); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:144: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(tline)>1) data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:288:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(target.name,(char *)&body[3],255); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:301:7: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(target.icon_name,(char *)&body[3],255); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:315:7: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(target.class,(char *)&body[3],255); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:329:7: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(target.res,(char *)&body[3],255); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:524:15: [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). cur->col1,strlen(cur->col1)); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:527:15: [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). cur->col2,strlen(cur->col2)); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:561: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). tw1 = XTextWidth(font, s1, strlen(s1)); data/fvwm1-1.24r/modules/FvwmIdent/FvwmIdent.c:562: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). tw2 = XTextWidth(font, s2, strlen(s2)); data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:99: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). MyName = safemalloc(strlen(temp)+2); data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:799: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). Clength = strlen(MyName); data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:807:11: [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(&tline[0])>1)&& data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:815:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp[strlen(tmp)-1] = 0; data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:833:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&& data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:842:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp[strlen(tmp)-1] = 0; data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:858:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&& data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:872:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&& data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:880:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&& data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:885:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&& data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:890:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&& data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:896:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&& data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:902:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&& data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:908:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&& data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:914:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&& data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:920:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&& data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:926:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&& data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:932:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&& data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:937:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&& data/fvwm1-1.24r/modules/FvwmPager/FvwmPager.c:944:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&& data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:766: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). w=XTextWidth(font,ptr,strlen(ptr)); data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:771: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). w=XTextWidth(font,ptr,strlen(ptr)); data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:778: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). ptr, strlen(ptr)); data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:781: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). ptr, strlen(ptr)); data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:1462: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). t->icon_name, strlen(t->icon_name)); data/fvwm1-1.24r/modules/FvwmPager/x_pager.c:1497: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). t->icon_name, strlen(t->icon_name)); data/fvwm1-1.24r/modules/FvwmSave/FvwmSave.c:66: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). MyName = safemalloc(strlen(temp)+2); data/fvwm1-1.24r/modules/FvwmSave/FvwmSave.c:67:3: [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(MyName,"*"); data/fvwm1-1.24r/modules/FvwmSave/FvwmSave.c:249:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(line); data/fvwm1-1.24r/modules/FvwmSaveDesk/FvwmSaveDesk.c:79: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). MyName = safemalloc(strlen(temp)+2); data/fvwm1-1.24r/modules/FvwmSaveDesk/FvwmSaveDesk.c:80:3: [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(MyName,"*"); data/fvwm1-1.24r/modules/FvwmSaveDesk/FvwmSaveDesk.c:264:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(line); data/fvwm1-1.24r/modules/FvwmScroll/FvwmScroll.c:81: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). MyName = safemalloc(strlen(temp)+2); data/fvwm1-1.24r/modules/FvwmScroll/FvwmScroll.c:82:3: [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(MyName,"*"); data/fvwm1-1.24r/modules/FvwmScroll/FvwmScroll.c:84: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). Clength = strlen(MyName); data/fvwm1-1.24r/modules/FvwmScroll/FvwmScroll.c:141: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(tline)>1) data/fvwm1-1.24r/modules/FvwmWinList/ButtonArray.c:64: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). new->title=safemalloc(strlen(title)+1); data/fvwm1-1.24r/modules/FvwmWinList/ButtonArray.c:67: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). new->tw=XTextWidth(ButtonFont,title,strlen(title)); data/fvwm1-1.24r/modules/FvwmWinList/ButtonArray.c:89: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). temp->title=(char *)realloc(temp->title,strlen(title)+1); data/fvwm1-1.24r/modules/FvwmWinList/ButtonArray.c:91:44: [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). temp->tw=XTextWidth(ButtonFont,title,strlen(title)); data/fvwm1-1.24r/modules/FvwmWinList/ButtonArray.c:182:70: [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). XDrawString(dpy,win,graph,x+newx,y+3+ButtonFont->ascent,ptr->title,strlen(ptr->title)); data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.c:118: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). Module = safemalloc(strlen(temp)+2); data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.c:119:3: [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(Module,"*"); data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.c:121: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). Clength = strlen(Module); data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.c:297:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(temp_msg,hold,(temp-hold)); data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.c:304: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). w=strlen(temp_msg); data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.c:396:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(tline)>1) { data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.c:531:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tw=10+XTextWidth(ButtonFont,temp,strlen(temp)); data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.c:563: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). ptr=safemalloc(strlen(string)+3); data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.c:564:24: [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. if (flags&ICONIFIED) strcpy(ptr,"("); data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.c:565:8: [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. else strcpy(ptr,""); data/fvwm1-1.24r/modules/FvwmWinList/FvwmWinList.c:567:24: [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. if (flags&ICONIFIED) strcat(ptr,")"); data/fvwm1-1.24r/modules/FvwmWinList/Mallocs.c:58:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (*string==NULL) *string=(char *)safemalloc(strlen(value)+1); data/fvwm1-1.24r/modules/FvwmWinList/Mallocs.c:59: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). else *string=(char *)realloc(*string,strlen(value)+1); data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:107: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). MyName = safemalloc(strlen(temp)+1); data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:355:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(Buttons[CurrentButton].hangon, data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:435: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). len = strlen(Buttons[button].title); data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:937: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). Clength = strlen(MyName); data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:945:11: [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(&tline[0])>1)&& data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:953:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp[strlen(tmp)-1] = 0; data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:965:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&& data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:970:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&& data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:977:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&& data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:984:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&& data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:989:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&& data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:994:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&& data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:1000:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&&(mystrncasecmp(tline,"IconPath",8)==0)) data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:1004:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if((strlen(&tline[0])>1)&&(mystrncasecmp(tline,"PixmapPath",10)==0)) data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:1057:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ptr,start,len); data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:1073:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ptr,start,len); data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:1097:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(Buttons[num_buttons].hangon,&tline[i+1],i2-i-1); data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:1104: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). len = strlen(&tline[n]); data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:1119: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). i2 = strlen(ptr); data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:1120:7: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(ptr,&tline[n],len); data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:1128: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). len = strlen(tline); data/fvwm1-1.24r/modules/GoodStuff/GoodStuff.c:1136:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ptr,tline,len); data/fvwm1-1.24r/xpmroot/xpmroot.c:108: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). n=strlen(s1); data/fvwm1-1.24r/xpmroot/xpmroot.c:109: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). n2=strlen(s2); ANALYSIS SUMMARY: Hits = 543 Lines analyzed = 32083 in approximately 0.97 seconds (33004 lines/second) Physical Source Lines of Code (SLOC) = 23586 Hits@level = [0] 285 [1] 221 [2] 209 [3] 6 [4] 107 [5] 0 Hits@level+ = [0+] 828 [1+] 543 [2+] 322 [3+] 113 [4+] 107 [5+] 0 Hits/KSLOC@level+ = [0+] 35.1056 [1+] 23.0221 [2+] 13.6522 [3+] 4.79098 [4+] 4.53659 [5+] 0 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.