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/pd-ggee-0.26/experimental/pvocfreq.c Examining data/pd-ggee-0.26/experimental/stk.h Examining data/pd-ggee-0.26/experimental/stk.cpp Examining data/pd-ggee-0.26/experimental/tabwrite4~.c Examining data/pd-ggee-0.26/experimental/fofsynth~.c Examining data/pd-ggee-0.26/control/rl.c Examining data/pd-ggee-0.26/control/getdir.c Examining data/pd-ggee-0.26/control/stripdir.c Examining data/pd-ggee-0.26/control/sinh.c Examining data/pd-ggee-0.26/control/unserialize.c Examining data/pd-ggee-0.26/control/serial_bird.c Examining data/pd-ggee-0.26/control/serial_ms.c Examining data/pd-ggee-0.26/control/qread.c Examining data/pd-ggee-0.26/control/inv.c Examining data/pd-ggee-0.26/control/rtout.c Examining data/pd-ggee-0.26/control/sl.c Examining data/pd-ggee-0.26/control/serialize.c Examining data/pd-ggee-0.26/control/unwonk.c Examining data/pd-ggee-0.26/control/serial_mt.c Examining data/pd-ggee-0.26/control/constant.c Examining data/pd-ggee-0.26/control/shell.c Examining data/pd-ggee-0.26/gui/state.c Examining data/pd-ggee-0.26/gui/envgen.h Examining data/pd-ggee-0.26/gui/image.c Examining data/pd-ggee-0.26/gui/gcanvas.c Examining data/pd-ggee-0.26/gui/slider.c Examining data/pd-ggee-0.26/gui/ticker.c Examining data/pd-ggee-0.26/gui/sliderh.c Examining data/pd-ggee-0.26/gui/envgen.c Examining data/pd-ggee-0.26/gui/toddle.c Examining data/pd-ggee-0.26/gui/fatom.c Examining data/pd-ggee-0.26/gui/fatom.h Examining data/pd-ggee-0.26/gui/w_envgen.h Examining data/pd-ggee-0.26/gui/button.c Examining data/pd-ggee-0.26/other/messages.c Examining data/pd-ggee-0.26/other/vbap.c Examining data/pd-ggee-0.26/filters/bandpass.c Examining data/pd-ggee-0.26/filters/notch.c Examining data/pd-ggee-0.26/filters/hlshelf.c Examining data/pd-ggee-0.26/filters/moog~.c Examining data/pd-ggee-0.26/filters/lowpass.c Examining data/pd-ggee-0.26/filters/highshelf.c Examining data/pd-ggee-0.26/filters/equalizer.c Examining data/pd-ggee-0.26/filters/lowshelf.c Examining data/pd-ggee-0.26/filters/highpass.c Examining data/pd-ggee-0.26/filters/filters.h Examining data/pd-ggee-0.26/signal/streamin~.c Examining data/pd-ggee-0.26/signal/streamout~.c Examining data/pd-ggee-0.26/signal/sfwrite~.c Examining data/pd-ggee-0.26/signal/stream.h Examining data/pd-ggee-0.26/signal/atan2~.c Examining data/pd-ggee-0.26/signal/mixer~.c FINAL RESULTS: data/pd-ggee-0.26/control/qread.c:72:6: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. fscanf(x->x_file,"%s",name); data/pd-ggee-0.26/control/rl.c:57:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(mysym,"%s%p",s->s_name,canvas_getcurrent()); data/pd-ggee-0.26/control/shell.c:248:4: [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(s->s_name,argv); data/pd-ggee-0.26/control/shell.c:252:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(cmd,s->s_name); data/pd-ggee-0.26/control/shell.c:256:16: [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(cmd,tcmd); data/pd-ggee-0.26/control/shell.c:260: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(cmd); data/pd-ggee-0.26/control/sl.c:57:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(mysym,"%s%p",s->s_name,canvas_getcurrent()); data/pd-ggee-0.26/gui/image.c:67:9: [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(buf, fname->s_name); data/pd-ggee-0.26/gui/image.c:71:13: [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(buf, atom_getsymbolarg(i, argc, argv)->s_name); data/pd-ggee-0.26/gui/state.c:82: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(dirstr,dir->s_name); data/pd-ggee-0.26/gui/state.c:89:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(name,"%s%s.%s",dirstr,x->x_name->s_name,x->x_symslot->s_name); data/pd-ggee-0.26/gui/state.c:91:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(name,"%s%s.%d",dirstr,x->x_name->s_name,x->x_slot); data/pd-ggee-0.26/gui/state.c:107:5: [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(fp,EMPTYSYMBOL"\n"); data/pd-ggee-0.26/gui/state.c:185: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(dirstr,dir->s_name); data/pd-ggee-0.26/gui/state.c:193:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(name,"%s%s.%s",dirstr,x->x_name->s_name,x->x_symslot->s_name); data/pd-ggee-0.26/gui/state.c:195:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(name,"%s%s.%d",dirstr,x->x_name->s_name,x->x_slot); data/pd-ggee-0.26/gui/state.c:217:11: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. if (fscanf(fp,"%s",name)<=0) continue; data/pd-ggee-0.26/gui/w_envgen.h:228: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(buf,num); data/pd-ggee-0.26/gui/w_envgen.h:232:6: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(buf,num); data/pd-ggee-0.26/gui/w_envgen.h:262: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(buf,num); data/pd-ggee-0.26/control/qread.c:31:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fname[MAXPDSTRING]; data/pd-ggee-0.26/control/qread.c:46:24: [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 (!(x->x_file = fopen(fname,"r"))) data/pd-ggee-0.26/control/qread.c:59:6: [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[MAXLINE]; data/pd-ggee-0.26/control/rl.c:55: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 mysym[MAXPDSTRING]; data/pd-ggee-0.26/control/serial_bird.c:42:6: [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 x_c[MAXBUFFER]; data/pd-ggee-0.26/control/serial_ms.c:13:6: [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 x_c[4]; data/pd-ggee-0.26/control/serial_mt.c:13:6: [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 x_c[4]; data/pd-ggee-0.26/control/shell.c:137:6: [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[INBUFSIZE]; data/pd-ggee-0.26/control/shell.c:182:6: [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 tmp[MAXPDSTRING]; data/pd-ggee-0.26/control/sl.c:55: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 mysym[MAXPDSTRING]; data/pd-ggee-0.26/gui/button.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 text[MAXPDSTRING]; data/pd-ggee-0.26/gui/button.c:300: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 buf[256]; data/pd-ggee-0.26/gui/button.c:314:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf,"button%lx", (long unsigned int)x); data/pd-ggee-0.26/gui/envgen.c:24: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 dumpy[2000]; data/pd-ggee-0.26/gui/fatom.h:394: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 buf[256]; data/pd-ggee-0.26/gui/fatom.h:414:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf,"fatom%x",x); data/pd-ggee-0.26/gui/image.c:28:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fname[MAXPDSTRING]; data/pd-ggee-0.26/gui/image.c:66: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. char buf[MAXPDSTRING]; data/pd-ggee-0.26/gui/state.c:70:6: [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[255]; data/pd-ggee-0.26/gui/state.c:74:6: [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 dirstr[255]; data/pd-ggee-0.26/gui/state.c:93:11: [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(name,"w"); data/pd-ggee-0.26/gui/state.c:172:6: [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[255]; data/pd-ggee-0.26/gui/state.c:177:6: [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 dirstr[255]; data/pd-ggee-0.26/gui/state.c:197:11: [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(name,"r"); data/pd-ggee-0.26/gui/w_envgen.h:129:6: [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 guistr[255]; data/pd-ggee-0.26/gui/w_envgen.h:137: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(guistr,".x%x.c create oval %d %d %d %d -tags %xD%d",(unsigned int)glist_getcanvas(glist), data/pd-ggee-0.26/gui/w_envgen.h:144:27: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. if (i == x->w.grabbed) strcat(guistr," -fill red\n"); data/pd-ggee-0.26/gui/w_envgen.h:206:13: [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[1024]; data/pd-ggee-0.26/gui/w_envgen.h:209:6: [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[40]; data/pd-ggee-0.26/gui/w_envgen.h:224: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(buf,".x%x.c create line",(unsigned int)glist_getcanvas(glist)); data/pd-ggee-0.26/gui/w_envgen.h:226: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(num," %d %d ",(int)(xpos + x->duration[i]*xscale), data/pd-ggee-0.26/gui/w_envgen.h:231: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(num,"-tags %pP\n",x); data/pd-ggee-0.26/gui/w_envgen.h:241:13: [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[1024]; data/pd-ggee-0.26/gui/w_envgen.h:243:6: [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[40]; data/pd-ggee-0.26/gui/w_envgen.h:257: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(buf,".x%x.c coords %pP",(unsigned int)glist_getcanvas(glist),x); data/pd-ggee-0.26/gui/w_envgen.h:260: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(num," %d %d ",(int)(xpos + x->duration[i]*xscale), data/pd-ggee-0.26/other/vbap.c:113:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fname[MAXPDSTRING]; data/pd-ggee-0.26/other/vbap.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). if((fp=fopen(fname,"r"))==NULL){ data/pd-ggee-0.26/other/vbap.c:221:6: [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 c[1000]; data/pd-ggee-0.26/signal/sfwrite~.c:59: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 w_fileid[4]; /* chunk id 'RIFF' */ data/pd-ggee-0.26/signal/sfwrite~.c:61: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 w_waveid[4]; /* wave chunk id 'WAVE' */ data/pd-ggee-0.26/signal/sfwrite~.c:62: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 w_fmtid[4]; /* format chunk id 'fmt ' */ data/pd-ggee-0.26/signal/sfwrite~.c:70: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 w_datachunkid[4]; /* data chunk id 'data' */ data/pd-ggee-0.26/signal/sfwrite~.c:110:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fname[MAXPDSTRING]; data/pd-ggee-0.26/signal/sfwrite~.c:126:23: [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 ((x->x_file = open(fname,OPENPARAMS,0664)) < 0) data/pd-ggee-0.26/signal/stream.h:58:6: [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 extension[5]; data/pd-ggee-0.26/signal/streamout~.c:131:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&server.sin_addr, (char *)hp->h_addr, hp->h_length); data/pd-ggee-0.26/control/shell.c:144:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, buf,INBUFSIZE-1); data/pd-ggee-0.26/control/shell.c:169: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). binbuf_text(bbuf, buf, strlen(buf)); data/pd-ggee-0.26/control/shell.c:190: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). size=strlen(tmp); data/pd-ggee-0.26/control/shell.c:195:31: [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). write(x->fdinpipe[0],tmp,strlen(tmp)); data/pd-ggee-0.26/control/shell.c:255:9: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(cmd," "); data/pd-ggee-0.26/control/stripdir.c:24: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). int len = strlen(s->s_name); data/pd-ggee-0.26/gui/button.c:104:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(text,x->x_text->s_name,MAXPDSTRING); data/pd-ggee-0.26/gui/button.c:105: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(text); data/pd-ggee-0.26/gui/button.c:312: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). x->x_width += strlen(x->x_text->s_name)*5.2; data/pd-ggee-0.26/gui/image.c:70:13: [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(buf, " "); data/pd-ggee-0.26/gui/state.c:85:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(dirstr,"/"); data/pd-ggee-0.26/gui/state.c:104: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(TATOM(a)->a_w.w_symbol->s_name)) data/pd-ggee-0.26/gui/state.c:188:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(dirstr,"/"); data/pd-ggee-0.26/gui/w_envgen.h:145:9: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. else strcat(guistr,"\n"); data/pd-ggee-0.26/gui/w_envgen.h:264:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(buf,"\n"); data/pd-ggee-0.26/signal/sfwrite~.c:78:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(w->w_fileid,"RIFF",4); /* chunk id 'RIFF' */ data/pd-ggee-0.26/signal/sfwrite~.c:80:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(w->w_waveid,"WAVE",4); /* wave chunk id 'WAVE' */ data/pd-ggee-0.26/signal/sfwrite~.c:81:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(w->w_fmtid,"fmt ",4); /* format chunk id 'fmt '*/ data/pd-ggee-0.26/signal/sfwrite~.c:89:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(w->w_datachunkid,"data",4); /* data chunk id 'data'*/ ANALYSIS SUMMARY: Hits = 86 Lines analyzed = 8721 in approximately 0.23 seconds (38678 lines/second) Physical Source Lines of Code (SLOC) = 6313 Hits@level = [0] 34 [1] 19 [2] 47 [3] 0 [4] 20 [5] 0 Hits@level+ = [0+] 120 [1+] 86 [2+] 67 [3+] 20 [4+] 20 [5+] 0 Hits/KSLOC@level+ = [0+] 19.0084 [1+] 13.6227 [2+] 10.613 [3+] 3.16807 [4+] 3.16807 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.