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/pgplot5-5.2.2/sys/grdate.c Examining data/pgplot5-5.2.2/sys/grgetc.c Examining data/pgplot5-5.2.2/sys/grgmem.c Examining data/pgplot5-5.2.2/sys/grtermio.c Examining data/pgplot5-5.2.2/sys/gruser.c Examining data/pgplot5-5.2.2/sys/grfileio.c Examining data/pgplot5-5.2.2/sys_alliant/grgetc.c Examining data/pgplot5-5.2.2/sys_alliant/grtermio.c Examining data/pgplot5-5.2.2/drivers/old/irdriv.c Examining data/pgplot5-5.2.2/drivers/old/svblock.c Examining data/pgplot5-5.2.2/drivers/old/svdriv.c Examining data/pgplot5-5.2.2/drivers/xmotif/XmPgplot.c Examining data/pgplot5-5.2.2/drivers/xmotif/XmPgplot.h Examining data/pgplot5-5.2.2/drivers/xmotif/XmPgplotP.h Examining data/pgplot5-5.2.2/drivers/xmotif/pgmdemo.c Examining data/pgplot5-5.2.2/drivers/x2driv.c Examining data/pgplot5-5.2.2/drivers/nexsup.c Examining data/pgplot5-5.2.2/drivers/commands.h Examining data/pgplot5-5.2.2/drivers/figdisp_comm.c Examining data/pgplot5-5.2.2/drivers/pgxwin_server.c Examining data/pgplot5-5.2.2/drivers/pgxwin.c Examining data/pgplot5-5.2.2/drivers/pgxwin.h Examining data/pgplot5-5.2.2/drivers/xmdriv.c Examining data/pgplot5-5.2.2/drivers/xwdriv.c Examining data/pgplot5-5.2.2/drivers/rvdriv.c Examining data/pgplot5-5.2.2/drivers/tkdriv.c Examining data/pgplot5-5.2.2/drivers/xtk/pgtkdemo.c Examining data/pgplot5-5.2.2/drivers/xtk/tkpgplot.c Examining data/pgplot5-5.2.2/drivers/xtk/tkpgplot.h Examining data/pgplot5-5.2.2/drivers/xtk/rvpgplot.h Examining data/pgplot5-5.2.2/drivers/xadriv.c Examining data/pgplot5-5.2.2/drivers/xathena/XaPgplot.c Examining data/pgplot5-5.2.2/drivers/xathena/XaPgplot.h Examining data/pgplot5-5.2.2/drivers/xathena/XaPgplotP.h Examining data/pgplot5-5.2.2/drivers/xathena/pgawdemo.c Examining data/pgplot5-5.2.2/drivers/cgdriv.c Examining data/pgplot5-5.2.2/drivers/defines.h Examining data/pgplot5-5.2.2/drivers/pndriv.c Examining data/pgplot5-5.2.2/cpg/cpgdemo.c Examining data/pgplot5-5.2.2/cpg/pgbind.c Examining data/pgplot5-5.2.2/sys_cray/grtermio.c Examining data/pgplot5-5.2.2/sys_cray/grfileio.c Examining data/pgplot5-5.2.2/sys_cray/grgmem.c Examining data/pgplot5-5.2.2/sys_cray/gruser.c Examining data/pgplot5-5.2.2/sys_cray/grgetc.c Examining data/pgplot5-5.2.2/sys_cray/grgenv.c Examining data/pgplot5-5.2.2/sys_cray/grdate.c Examining data/pgplot5-5.2.2/sys_cray/x2wrap.c Examining data/pgplot5-5.2.2/sys_cray/xwwrap.c Examining data/pgplot5-5.2.2/sys_cray/rvwrap.c Examining data/pgplot5-5.2.2/sys_cray/tkwrap.c Examining data/pgplot5-5.2.2/sys_cray/xmwrap.c Examining data/pgplot5-5.2.2/sys_freebsd/iand.c Examining data/pgplot5-5.2.2/sys_linux/f77_src/iand.c Examining data/pgplot5-5.2.2/sys_linux/af77_src/grdate.c Examining data/pgplot5-5.2.2/sys_linux/af77_src/grfileio.c Examining data/pgplot5-5.2.2/sys_linux/af77_src/grgenv.c Examining data/pgplot5-5.2.2/sys_linux/af77_src/grgetc.c Examining data/pgplot5-5.2.2/sys_linux/af77_src/grtermio.c Examining data/pgplot5-5.2.2/sys_linux/af77_src/gruser.c Examining data/pgplot5-5.2.2/sys_linux/af77_src/x2wrap.c Examining data/pgplot5-5.2.2/sys_linux/af77_src/xwwrap.c Examining data/pgplot5-5.2.2/sys_linux/af77_src/rvwrap.c Examining data/pgplot5-5.2.2/sys_linux/af77_src/tkwrap.c Examining data/pgplot5-5.2.2/sys_linux/af77_src/xmwrap.c Examining data/pgplot5-5.2.2/sys_next/af77_src/x2wrap.c Examining data/pgplot5-5.2.2/sys_next/af77_src/xwwrap.c Examining data/pgplot5-5.2.2/sys_next/af77_src/grdate.c Examining data/pgplot5-5.2.2/sys_next/af77_src/grgenv.c Examining data/pgplot5-5.2.2/sys_next/af77_src/grtermio.c Examining data/pgplot5-5.2.2/sys_next/af77_src/gruser.c Examining data/pgplot5-5.2.2/sys_next/af77_src/grfileio.c Examining data/pgplot5-5.2.2/sys_next/af77_src/grgetc.c Examining data/pgplot5-5.2.2/sys_next/af77_src/rvwrap.c Examining data/pgplot5-5.2.2/sys_next/af77_src/tkwrap.c Examining data/pgplot5-5.2.2/sys_next/af77_src/xmwrap.c Examining data/pgplot5-5.2.2/sys_next/gf77_src/grtermio.c Examining data/pgplot5-5.2.2/sys_next/gf77_src/grgetc.c Examining data/pgplot5-5.2.2/sys_next/pgview/Dispatch.h Examining data/pgplot5-5.2.2/sys_next/pgview/PGView.h Examining data/pgplot5-5.2.2/sys_next/pgview/pgvListener.h Examining data/pgplot5-5.2.2/sys_next/pgview/pgvSpeaker.h Examining data/pgplot5-5.2.2/sys_next/pgview/sername.h Examining data/pgplot5-5.2.2/sys_next/f2c_src/iand.c Examining data/pgplot5-5.2.2/sys_next/f2c_src/grgenv.c Examining data/pgplot5-5.2.2/sys_next/f2c_src/grtermio.c Examining data/pgplot5-5.2.2/sys_next/f2c_src/grgetc.c Examining data/pgplot5-5.2.2/pgdispd/cleanup.c Examining data/pgplot5-5.2.2/pgdispd/commands.h Examining data/pgplot5-5.2.2/pgdispd/exposelgwin.c Examining data/pgplot5-5.2.2/pgdispd/figcurs.c Examining data/pgplot5-5.2.2/pgdispd/figdisp.h Examining data/pgplot5-5.2.2/pgdispd/getcolors.c Examining data/pgplot5-5.2.2/pgdispd/getvisuals.c Examining data/pgplot5-5.2.2/pgdispd/globals.h Examining data/pgplot5-5.2.2/pgdispd/initlgluts.c Examining data/pgplot5-5.2.2/pgdispd/initlock.c Examining data/pgplot5-5.2.2/pgdispd/initwmattr.c Examining data/pgplot5-5.2.2/pgdispd/mainloop.c Examining data/pgplot5-5.2.2/pgdispd/ntoh.c Examining data/pgplot5-5.2.2/pgdispd/messages.h Examining data/pgplot5-5.2.2/pgdispd/pgdisp.c Examining data/pgplot5-5.2.2/pgdispd/proccom.c Examining data/pgplot5-5.2.2/pgdispd/resizelgwin.c Examining data/pgplot5-5.2.2/pgdispd/returnbuf.c Examining data/pgplot5-5.2.2/pgdispd/updatelgtitle.c Examining data/pgplot5-5.2.2/pgdispd/waitevent.c Examining data/pgplot5-5.2.2/pgdispd/handlexevent.c Examining data/pgplot5-5.2.2/pgdispd/initlgwin.c Examining data/pgplot5-5.2.2/pgdispd/resdb.c Examining data/pgplot5-5.2.2/pgdispd/getdata.c Examining data/pgplot5-5.2.2/sys_osf1/grgmem.c Examining data/pgplot5-5.2.2/sys_vms/grfileio.c Examining data/pgplot5-5.2.2/sys_openstep/g77_src/grtermio.c Examining data/pgplot5-5.2.2/sys_openstep/g77_src/grgetc.c Examining data/pgplot5-5.2.2/sys_openstep/pgview/demo.c Examining data/pgplot5-5.2.2/sys_openstep/pgview/dispatchobj.h Examining data/pgplot5-5.2.2/sys_openstep/pgview/hostobj.h Examining data/pgplot5-5.2.2/sys_openstep/pgview/ipanelobj.h Examining data/pgplot5-5.2.2/sys_openstep/pgview/nexsup.c Examining data/pgplot5-5.2.2/sys_openstep/pgview/pgviewobj.h Examining data/pgplot5-5.2.2/sys_openstep/pgview/portobj.h Examining data/pgplot5-5.2.2/sys_openstep/f2c_src/iand.c Examining data/pgplot5-5.2.2/sys_openstep/f2c_src/grgenv.c Examining data/pgplot5-5.2.2/sys_openstep/f2c_src/grtermio.c Examining data/pgplot5-5.2.2/sys_openstep/f2c_src/grgetc.c FINAL RESULTS: data/pgplot5-5.2.2/cpg/pgbind.c:927:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "%s.c", fn->name); data/pgplot5-5.2.2/drivers/figdisp_comm.c:259:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(&lockname[0],"%s_%d_%d",NAME_SELATOM,screen,dev); data/pgplot5-5.2.2/drivers/figdisp_comm.c:267:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(&lockname[0],"%s_%d_%d",NAME_INCRATOM,screen,dev); data/pgplot5-5.2.2/drivers/figdisp_comm.c:278:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(&lockname[0],"%s_%d_%d",NAME_PROG,screen,dev); data/pgplot5-5.2.2/drivers/figdisp_comm.c:286:5: [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(&lockname[0]); data/pgplot5-5.2.2/drivers/nexsup.c:143:22: [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(cloc, cview); data/pgplot5-5.2.2/drivers/nexsup.c:148:22: [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(cloc); data/pgplot5-5.2.2/drivers/old/irdriv.c:126:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy( STRING, dev_name ) ; data/pgplot5-5.2.2/drivers/old/svdriv.c:126:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy( STRING, sv_dev_name ) ; data/pgplot5-5.2.2/drivers/pgxwin.c:4159: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(pgx->name, name); data/pgplot5-5.2.2/drivers/pgxwin_server.c:2181:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(window_name, "%s %d", XW_WINDOW_NAME, pgw->id); data/pgplot5-5.2.2/drivers/pgxwin_server.c:2182:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(icon_name, "%s%d", XW_ICON_NAME, pgw->id); data/pgplot5-5.2.2/drivers/pgxwin_server.c:3144:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(path, "%s%s%s", dir, sep, file); data/pgplot5-5.2.2/drivers/pndriv.c:189: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(filename,dev->filename); data/pgplot5-5.2.2/drivers/pndriv.c:191:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(filename,"%s_%d",dev->filename,dev->npages); data/pgplot5-5.2.2/drivers/xathena/XaPgplot.c:340:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(xap->device, "%s/%s", xap->pgx->name, XAP_DEVICE); data/pgplot5-5.2.2/drivers/xathena/pgawdemo.c:880:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%sMenu", name); /* Menuname */ data/pgplot5-5.2.2/drivers/xathena/pgawdemo.c:953:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%sMenu", name); /* Menuname */ data/pgplot5-5.2.2/drivers/xathena/pgawdemo.c:1263:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%sShell", name); data/pgplot5-5.2.2/drivers/xmotif/XmPgplot.c:391:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(xmp->device, "%s/%s", xmp->pgx->name, XMP_DEVICE); data/pgplot5-5.2.2/drivers/xmotif/XmPgplot.c:1853:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(scroll_name, "%sSW", name); data/pgplot5-5.2.2/drivers/xtk/pgtkdemo.c:198: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(stderr, usage); data/pgplot5-5.2.2/drivers/xtk/tkpgplot.c:561:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tkpg->device, "%s/%s", name, TK_PGPLOT_DEVICE); data/pgplot5-5.2.2/drivers/xwdriv.c:3377:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(command, format, exe, display_string); data/pgplot5-5.2.2/drivers/xwdriv.c:3393:7: [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(command); data/pgplot5-5.2.2/drivers/xwdriv.c:3994:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(value, "$%s", file); data/pgplot5-5.2.2/drivers/xwdriv.c:4163:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%.*s%s%s%s", dirlen, dir, dirlen==0 ? "":sep, program, exe); data/pgplot5-5.2.2/drivers/xwdriv.c:4174:8: [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(buf, X_OK)==0 || access(buf, R_OK)==0) { data/pgplot5-5.2.2/drivers/xwdriv.c:4174:32: [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(buf, X_OK)==0 || access(buf, R_OK)==0) { data/pgplot5-5.2.2/drivers/xwdriv.c:4177: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(buf, program); data/pgplot5-5.2.2/drivers/xwdriv.c:4181:8: [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(buf, X_OK)==0) data/pgplot5-5.2.2/pgdispd/getdata.c:64:9: [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. (void)fprintf(stderr,MSG_BADGETPROP); data/pgplot5-5.2.2/pgdispd/getdata.c:76:11: [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. (void)fprintf(stderr, MSG_BADSELOWN); data/pgplot5-5.2.2/pgdispd/getdata.c:86:24: [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. if (*rbuflen) (void)fprintf(stderr,MSG_REPLYNOTSENT); data/pgplot5-5.2.2/pgdispd/getdata.c:90:15: [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. } else (void)fprintf(stderr,MSG_BADDATATYPE); data/pgplot5-5.2.2/pgdispd/getvisuals.c:70:9: [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. (void)fprintf(stderr,MSG_MALLOC); data/pgplot5-5.2.2/pgdispd/getvisuals.c:80:9: [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. (void)fprintf(stderr,MSG_MALLOC); data/pgplot5-5.2.2/pgdispd/getvisuals.c:313:9: [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. (void)fprintf(stderr, MSG_NOCOLORS); data/pgplot5-5.2.2/pgdispd/handlexevent.c:104:11: [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. (void)fprintf(stderr,MSG_NOSELOWN); data/pgplot5-5.2.2/pgdispd/initlgwin.c:136:9: [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. (void)fprintf(stderr,MSG_NOLOCK); data/pgplot5-5.2.2/pgdispd/initlgwin.c:142:9: [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. (void)fprintf(stderr,MSG_BADSELOWN); data/pgplot5-5.2.2/pgdispd/initlock.c:39:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(&lockatomstr[0],"%s_%d_%d",NAME_PROG,screen,res.id); data/pgplot5-5.2.2/pgdispd/initlock.c:42:9: [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. (void)fprintf(stderr,MSG_BADLOCKATOM); data/pgplot5-5.2.2/pgdispd/initlock.c:52:9: [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. (void)fprintf(stderr,MSG_ALREADYRUNNING); data/pgplot5-5.2.2/pgdispd/initlock.c:58:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(&lockatomstr[0],"%s_%d_%d",NAME_INCRATOM,screen,res.id); data/pgplot5-5.2.2/pgdispd/initlock.c:62:9: [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. (void)fprintf(stderr,MSG_BADINCRATOM); data/pgplot5-5.2.2/pgdispd/initlock.c:68:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(&lockatomstr[0],"%s_%d_%d",NAME_DATAATOM,screen,res.id); data/pgplot5-5.2.2/pgdispd/initlock.c:72:9: [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. (void)fprintf(stderr,MSG_BADDATAATOM); data/pgplot5-5.2.2/pgdispd/initlock.c:78:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(&lockatomstr[0],"%s_%d_%d",NAME_SELATOM,screen,res.id); data/pgplot5-5.2.2/pgdispd/initlock.c:82:9: [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. (void)fprintf(stderr,MSG_BADSELATOM); data/pgplot5-5.2.2/pgdispd/initwmattr.c:43:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(&winnamebuf[0], "%s/%s", NAME_PROG, wname); data/pgplot5-5.2.2/pgdispd/initwmattr.c:46:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(&winnamebuf[0],"%s", iname); data/pgplot5-5.2.2/pgdispd/proccom.c:185:10: [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. (void)fprintf(stderr,MSG_MALLOC); data/pgplot5-5.2.2/pgdispd/proccom.c:368:11: [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. (void)fprintf(stderr,MSG_MALLOC); data/pgplot5-5.2.2/pgdispd/proccom.c:525:11: [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. (void)fprintf(stderr,MSG_MALLOC); data/pgplot5-5.2.2/pgdispd/proccom.c:1139:11: [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. (void)fprintf(stderr,MSG_MALLOC); data/pgplot5-5.2.2/pgdispd/resdb.c:272:47: [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). if ((progname=strrchr(argv[0],'/')) == NULL) strcpy(prog,argv[0]); data/pgplot5-5.2.2/pgdispd/resdb.c:273: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). else strcpy(prog,progname+1); data/pgplot5-5.2.2/pgdispd/resdb.c:316:13: [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). else (void)strcpy(filename, env); data/pgplot5-5.2.2/pgdispd/resdb.c:318: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). (void)strcat(filename, classname); data/pgplot5-5.2.2/pgdispd/resdb.c:374:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.bm.geometry", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:395:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.lg.geometry", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:416:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.showhelp", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:426:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.lg.crosshair", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:436:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.patchgeometry", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:454:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.cmapgeometry", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:476:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.locationgeometry", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:498:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.histgeometry", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:513:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.bm.maxcolors", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:532:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.bm.mincolors", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:551:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.bm.private.maxcolors", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:570:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.bm.private.mincolors", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:590:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.lineColors", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:604:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.initLUTWrap", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:617:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.zoomIn", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:623:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.zoomNorm", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:629:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.zoomOut", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:635:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.x.zoomIn", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:641:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.x.zoomOut", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:647:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.y.zoomIn", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:653:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.y.zoomOut", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:659:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.help", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:665:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.cursor", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:671:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.recenter", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:677:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.showLoc", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:683:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.quit", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:689:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.showCmap", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:695:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.showPatch", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:701:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.row", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:707:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.imagePs", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:713:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.windowPs", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:719:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.invertCmap", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:725:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.showSee", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:731:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.column", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:737:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.decreaseSlit", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:744:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.increaseSlit", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:750:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.resetSlit", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:756:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.inhibit", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:762:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.histogram", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:768:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.increaseLUTWrap", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:774:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.decreaseLUTWrap", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:780:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.resetLUTWrap", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:786:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.mouseMode", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:792:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.box", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:799:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.font", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:812:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.psFile", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:830:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.printer", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:846:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.id", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:852:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.visual", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:884:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.sleepTime", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:899:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.forceSquare", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:910:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.saveColors", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:920:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.leaveColors", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:929:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.line.leftToRight", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:940:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.line.ascending", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:951:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.line.histogram", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:961:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.col.bottomToTop", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:971:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.col.ascending", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:981:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.row.leftToRight", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:991:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(resource, "%s.row.ascending", prog); data/pgplot5-5.2.2/pgdispd/resdb.c:1051: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). (void)strcpy(dest, ptr); data/pgplot5-5.2.2/pgdispd/resdb.c:1060:10: [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). (void)strcpy(dest, pw->pw_dir); data/pgplot5-5.2.2/pgdispd/updatelgtitle.c:31:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. char *sprintf(); data/pgplot5-5.2.2/pgdispd/waitevent.c:92:11: [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. (void)fprintf(stderr,MSG_BADSELOWN); data/pgplot5-5.2.2/sys/gruser.c:26:7: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. char *getlogin(); data/pgplot5-5.2.2/sys/gruser.c:37:16: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. char *user = getlogin(); data/pgplot5-5.2.2/sys_cray/grgenv.c:59: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(test, prefix); data/pgplot5-5.2.2/sys_cray/gruser.c:22:7: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. char *getlogin(); data/pgplot5-5.2.2/sys_cray/gruser.c:35:16: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. char *user = getlogin(); data/pgplot5-5.2.2/sys_linux/af77_src/grgenv.c:52: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(test, prefix); data/pgplot5-5.2.2/sys_linux/af77_src/gruser.c:20:7: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. char *getlogin(); data/pgplot5-5.2.2/sys_linux/af77_src/gruser.c:32:16: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. char *user = getlogin(); data/pgplot5-5.2.2/sys_next/af77_src/grgenv.c:52: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(test, prefix); data/pgplot5-5.2.2/sys_next/af77_src/gruser.c:20:7: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. char *getlogin(); data/pgplot5-5.2.2/sys_next/af77_src/gruser.c:32:16: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. char *user = getlogin(); data/pgplot5-5.2.2/sys_next/f2c_src/grgenv.c:52: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(test, prefix); data/pgplot5-5.2.2/sys_openstep/f2c_src/grgenv.c:52: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(test, prefix); data/pgplot5-5.2.2/sys_openstep/pgview/nexsup.c:143:22: [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(cloc, cview); data/pgplot5-5.2.2/sys_openstep/pgview/nexsup.c:148:22: [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(cloc); data/pgplot5-5.2.2/drivers/nexsup.c:117:29: [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. cdis = (char *) getenv("DISPLAY"); data/pgplot5-5.2.2/drivers/nexsup.c:138: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. cview = (char *) getenv("PGVIEW"); data/pgplot5-5.2.2/drivers/pgxwin_server.c:1732: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((envptr=getenv("PGPLOT_XW_WIDTH")) != NULL) { data/pgplot5-5.2.2/drivers/pgxwin_server.c:3155:17: [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. char *env = getenv("XENVIRONMENT"); data/pgplot5-5.2.2/drivers/pgxwin_server.c:3187:12: [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((home=getenv("HOME")) == NULL) { data/pgplot5-5.2.2/drivers/pndriv.c:379: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. if (! (width_string = getenv("PGPLOT_PNG_WIDTH"))) data/pgplot5-5.2.2/drivers/pndriv.c:381:26: [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 (! (height_string = getenv("PGPLOT_PNG_HEIGHT"))) data/pgplot5-5.2.2/drivers/xwdriv.c:3346:22: [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((exe=find_exe(getenv("PGPLOT_DIR"), PGXWIN_SERVER))==NULL && data/pgplot5-5.2.2/drivers/xwdriv.c:3347:22: [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. (exe=find_exe(getenv("PATH"), PGXWIN_SERVER))==NULL) { data/pgplot5-5.2.2/drivers/xwdriv.c:3362:8: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if(getenv("PGPLOT_XW_DEBUG")) data/pgplot5-5.2.2/pgdispd/resdb.c:314:11: [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 ((env=getenv("XAPPLRESDIR")) == NULL) data/pgplot5-5.2.2/pgdispd/resdb.c:339:11: [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 ((env=getenv("XENVIRONMENT")) == NULL) data/pgplot5-5.2.2/pgdispd/resdb.c:1044:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. extern char *getenv(); data/pgplot5-5.2.2/pgdispd/resdb.c:1050: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 ((ptr = getenv("HOME")) != NULL) { data/pgplot5-5.2.2/pgdispd/resdb.c:1053:14: [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 ((ptr = getenv("USER")) != NULL) { data/pgplot5-5.2.2/sys_cray/grgenv.c:65:11: [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. env = getenv(test); data/pgplot5-5.2.2/sys_linux/af77_src/grgenv.c:58:11: [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. env = getenv(test); data/pgplot5-5.2.2/sys_next/af77_src/grgenv.c:58:11: [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. env = getenv(test); data/pgplot5-5.2.2/sys_next/f2c_src/grgenv.c:58:11: [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. env = getenv(test); data/pgplot5-5.2.2/sys_openstep/f2c_src/grgenv.c:58:11: [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. env = getenv(test); data/pgplot5-5.2.2/sys_openstep/pgview/nexsup.c:117:29: [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. cdis = (char *) getenv("DISPLAY"); data/pgplot5-5.2.2/sys_openstep/pgview/nexsup.c:138: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. cview = (char *) getenv("PGVIEW"); data/pgplot5-5.2.2/cpg/pgbind.c:164: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 prototype[MAX_LINE];/* C prototype from FORTRAN header */ data/pgplot5-5.2.2/cpg/pgbind.c:165:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_LINE]; /* Lexical analyser work buffer */ data/pgplot5-5.2.2/cpg/pgbind.c:547:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). pg->hfile = fopen(pg->header, "w"); data/pgplot5-5.2.2/cpg/pgbind.c:921:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buffer[MAX_LINE]; data/pgplot5-5.2.2/cpg/pgbind.c:931: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). if((wfile = fopen(buffer, "w")) == NULL) { data/pgplot5-5.2.2/cpg/pgbind.c:1620: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). fp = fopen(fname, "r"); data/pgplot5-5.2.2/drivers/cgdriv.c:162: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). pt=fopen(filename,"wb"); data/pgplot5-5.2.2/drivers/cgdriv.c:593: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 name[60]; data/pgplot5-5.2.2/drivers/cgdriv.c:595:9: [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(name,"Picture %d",picture); data/pgplot5-5.2.2/drivers/figdisp_comm.c:243: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 lockname[40]; /* the name of the locking atom */ data/pgplot5-5.2.2/drivers/figdisp_comm.c:285: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(&lockname[0],"figdisp -id %d &",dev); data/pgplot5-5.2.2/drivers/nexsup.c:33:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmess[256]; data/pgplot5-5.2.2/drivers/nexsup.c:69:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sbuf.cmess, &replyadd.sin_port, 2); data/pgplot5-5.2.2/drivers/nexsup.c:98:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmess[256]; data/pgplot5-5.2.2/drivers/nexsup.c:102: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 cloc[256]; data/pgplot5-5.2.2/drivers/nexsup.c:130:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&server.sin_addr, hp->h_addr, hp->h_length); data/pgplot5-5.2.2/drivers/nexsup.c:183:10: [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(sbuf.cmess, cbuf, itmp); data/pgplot5-5.2.2/drivers/old/irdriv.c:87: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. static unsigned char R_table[NCOLOR] = data/pgplot5-5.2.2/drivers/old/irdriv.c:90: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. static unsigned char G_table[NCOLOR] = data/pgplot5-5.2.2/drivers/old/irdriv.c:93: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. static unsigned char B_table[NCOLOR] = data/pgplot5-5.2.2/drivers/old/svblock.c:13:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sv_R_table[NCOLOR] = data/pgplot5-5.2.2/drivers/old/svblock.c:16:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sv_G_table[NCOLOR] = data/pgplot5-5.2.2/drivers/old/svblock.c:19:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sv_B_table[NCOLOR] = data/pgplot5-5.2.2/drivers/old/svdriv.c:93: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. extern unsigned char sv_R_table[NCOLOR] ; data/pgplot5-5.2.2/drivers/old/svdriv.c:94: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. extern unsigned char sv_G_table[NCOLOR] ; data/pgplot5-5.2.2/drivers/old/svdriv.c:95: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. extern unsigned char sv_B_table[NCOLOR] ; data/pgplot5-5.2.2/drivers/pgxwin.c:749: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 errtxt[81]; /* Buffer to receive error message in */ data/pgplot5-5.2.2/drivers/pgxwin.c:3498: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 buffer[10]; /* Buffer to read key definition into */ data/pgplot5-5.2.2/drivers/pgxwin_server.c:921: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 errtxt[81]; /* Buffer to receive error message in */ data/pgplot5-5.2.2/drivers/pgxwin_server.c:2179: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 window_name[sizeof(XW_WINDOW_NAME)+10]; data/pgplot5-5.2.2/drivers/pgxwin_server.c:2180: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 icon_name[sizeof(XW_ICON_NAME)+10]; data/pgplot5-5.2.2/drivers/pgxwin_server.c:2981:19: [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). pgw->mincol = atoi(def); data/pgplot5-5.2.2/drivers/pgxwin_server.c:2991:19: [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). pgw->maxcol = atoi(def); data/pgplot5-5.2.2/drivers/pgxwin_server.c:3037:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char resource[80]; /* Buffer for returned value */ data/pgplot5-5.2.2/drivers/pgxwin_server.c:3054: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(resource, "win%d", window_id); data/pgplot5-5.2.2/drivers/pndriv.c:135: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(dev->ctable, default_colortable, 3 * NCOLORS * sizeof(ColorComponent)); data/pgplot5-5.2.2/drivers/pndriv.c:197:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (! (fp = fopen(filename,"wb"))) { data/pgplot5-5.2.2/drivers/pndriv.c:368: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(default_colortable, base_colors, 3 * 16 * sizeof(ColorComponent) ); data/pgplot5-5.2.2/drivers/pndriv.c:371:2: [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( default_colortable + (i * 3), half_colors, 3 * sizeof(ColorComponent) ); data/pgplot5-5.2.2/drivers/pndriv.c:384:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *width = atoi(width_string); data/pgplot5-5.2.2/drivers/pndriv.c:385: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). *height = atoi(height_string); data/pgplot5-5.2.2/drivers/x2driv.c:107: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 lockname[40]; /* the name of the locking atom */ data/pgplot5-5.2.2/drivers/x2driv.c:119:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpstr[20]; /* some temporary strings for CSCALE */ data/pgplot5-5.2.2/drivers/x2driv.c:120: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 tmpstr2[20]; data/pgplot5-5.2.2/drivers/x2driv.c:121: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 tmpstr3[20]; data/pgplot5-5.2.2/drivers/x2driv.c:122: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 tmpstr4[20]; data/pgplot5-5.2.2/drivers/x2driv.c:245:5: [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). i=atoi(chr); data/pgplot5-5.2.2/drivers/x2driv.c:526: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(&tmpstr[0],"%e", rbuf[0]); data/pgplot5-5.2.2/drivers/x2driv.c:527: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(&tmpstr2[0],"%e", rbuf[1]); data/pgplot5-5.2.2/drivers/x2driv.c:528: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(&tmpstr3[0],"%e", rbuf[2]); data/pgplot5-5.2.2/drivers/x2driv.c:529: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(&tmpstr4[0],"%e", rbuf[3]); data/pgplot5-5.2.2/drivers/xathena/pgawdemo.c:871: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[100]; data/pgplot5-5.2.2/drivers/xathena/pgawdemo.c:942: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[100]; data/pgplot5-5.2.2/drivers/xathena/pgawdemo.c:1262: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 buf[100]; data/pgplot5-5.2.2/drivers/xathena/pgawdemo.c:1338: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 text[80]; data/pgplot5-5.2.2/drivers/xathena/pgawdemo.c:1345: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(text, "X=%-10g Y=%-10g", wx, wy); data/pgplot5-5.2.2/drivers/xmotif/pgmdemo.c:1287: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 text[80]; data/pgplot5-5.2.2/drivers/xmotif/pgmdemo.c:1294: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(text, "X=%-10g Y=%-10g", wx, wy); data/pgplot5-5.2.2/drivers/xtk/pgtkdemo.c:1064: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 header[sizeof(REQUIRED_HEADER)]; data/pgplot5-5.2.2/drivers/xtk/pgtkdemo.c:1068:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(name, "r"); data/pgplot5-5.2.2/drivers/xtk/tkpgplot.c:131:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[81]; /* A work buffer for constructing result strings */ data/pgplot5-5.2.2/drivers/xtk/tkpgplot.c:776: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 scroll_args[60]; /* Scrollbar set-command arguments */ data/pgplot5-5.2.2/drivers/xtk/tkpgplot.c:799: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(scroll_args, " %f %f", first, last); data/pgplot5-5.2.2/drivers/xtk/tkpgplot.c:819: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(scroll_args, " %f %f", first, last); data/pgplot5-5.2.2/drivers/xtk/tkpgplot.c:1485:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (char *) tkpg, argv[2], 0)); data/pgplot5-5.2.2/drivers/xtk/tkpgplot.c:1501: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 *) tkpg, argv[2], 0)); data/pgplot5-5.2.2/drivers/xtk/tkpgplot.c:2119: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 cname[20]; /* The color as a string of the form #rrrrggggbbbb */ data/pgplot5-5.2.2/drivers/xtk/tkpgplot.c:2128: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(cname, "#%4.4hx%4.4hx%4.4hx", bg->red, bg->green, bg->blue); data/pgplot5-5.2.2/drivers/xtk/tkpgplot.c:2501: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(tkpg->buffer, "%d", xpix); data/pgplot5-5.2.2/drivers/xtk/tkpgplot.c:2505: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(tkpg->buffer, "%d", ypix); data/pgplot5-5.2.2/drivers/xtk/tkpgplot.c:2509: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(tkpg->buffer, "%d %d", xpix, ypix); data/pgplot5-5.2.2/drivers/xtk/tkpgplot.c:2543: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(tkpg->buffer, "%d", tkpg->pgslct_id); data/pgplot5-5.2.2/drivers/xwdriv.c:2224: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 buffer[10]; /* Buffer to read key definition into */ data/pgplot5-5.2.2/drivers/xwdriv.c:3257: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 errtxt[81]; /* Buffer to receive error message in */ data/pgplot5-5.2.2/drivers/xwdriv.c:3821:35: [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. data[ndone*size+icopy] = ((char *)prop)[icopy]; data/pgplot5-5.2.2/pgdispd/initlgwin.c:56:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char wintitle[80]; /* The window's title */ data/pgplot5-5.2.2/pgdispd/initlgwin.c:127: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. (void)sprintf(&wintitle[0],"line graphics #%d",res.id); data/pgplot5-5.2.2/pgdispd/initlock.c:34: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 lockatomstr[MAXSTRLEN]; /* the name of the locking atom */ data/pgplot5-5.2.2/pgdispd/initwmattr.c:23: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 winnamebuf[80]; /* a buffer for the window name */ data/pgplot5-5.2.2/pgdispd/proccom.c:189:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((char *)bothbuf,(char *)olddata, data/pgplot5-5.2.2/pgdispd/proccom.c:192:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((char *)(bothbuf+savedshorts),(char *)buf, data/pgplot5-5.2.2/pgdispd/resdb.c:252:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char prog[80]; data/pgplot5-5.2.2/pgdispd/resdb.c:263: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 dispname[256]; data/pgplot5-5.2.2/pgdispd/resdb.c:265: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 *strtype[20]; data/pgplot5-5.2.2/pgdispd/resdb.c:305:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filename[1024]; data/pgplot5-5.2.2/pgdispd/resdb.c:315:9: [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. (void)strcpy(filename, "/usr/lib/X11/app-defaults/"); data/pgplot5-5.2.2/pgdispd/resdb.c:328:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. (void)strcat(filename,"SYS$LOGIN:.Xdefaults"); data/pgplot5-5.2.2/pgdispd/resdb.c:331:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. (void)strcat(filename,"/.Xdefaults"); data/pgplot5-5.2.2/pgdispd/resdb.c:369: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 *strtype[20]; data/pgplot5-5.2.2/pgdispd/resdb.c:372: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 resource[80]; data/pgplot5-5.2.2/pgdispd/resdb.c:517:22: [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). if ((res.maxcolors=atoi(value.addr)) > BM_COLORS) data/pgplot5-5.2.2/pgdispd/resdb.c:536:22: [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). if ((res.mincolors=atoi(value.addr)) > BM_COLORS) data/pgplot5-5.2.2/pgdispd/resdb.c:555:23: [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). if ((res.maxpcolors=atoi(value.addr)) > BM_COLORS) data/pgplot5-5.2.2/pgdispd/resdb.c:574:23: [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). if ((res.minpcolors=atoi(value.addr)) > BM_COLORS) data/pgplot5-5.2.2/pgdispd/resdb.c:594: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). if ((res.lgcolors=atoi(value.addr)) < 2) data/pgplot5-5.2.2/pgdispd/resdb.c:608: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). if ((res.initwrap=atoi(value.addr)) < 1) data/pgplot5-5.2.2/pgdispd/resdb.c:848: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). res.id=atoi(value.addr); data/pgplot5-5.2.2/pgdispd/resdb.c:888:22: [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). if ((res.sleeptime=atoi(value.addr)) < MIN_USLEEP_TIME) data/pgplot5-5.2.2/pgdispd/resdb.c:914:23: [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). if ((res.savecolors=atoi(value.addr)) < 0) res.savecolors=0; data/pgplot5-5.2.2/pgdispd/resdb.c:924:24: [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). if ((res.leavecolors=atoi(value.addr)) < 0) res.leavecolors=0; data/pgplot5-5.2.2/pgdispd/updatelgtitle.c:22: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 newtitle[80]; data/pgplot5-5.2.2/pgdispd/updatelgtitle.c:23: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 tempstr[80]; data/pgplot5-5.2.2/pgdispd/updatelgtitle.c:60:25: [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. if (datval < 0) (void)sprintf(&newtitle[0], data/pgplot5-5.2.2/pgdispd/updatelgtitle.c:63:14: [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. else (void)sprintf(&newtitle[0], data/pgplot5-5.2.2/sys/grdate.c:33:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char vtime[18]; /* Output string compilation buffer */ data/pgplot5-5.2.2/sys/grfileio.c:93:12: [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). fd = open(buff, O_WRONLY | O_CREAT | O_TRUNC, 0666); data/pgplot5-5.2.2/sys/grtermio.c:34:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[64]; /* A copy of the given terminal device name */ data/pgplot5-5.2.2/sys/grtermio.c:48:12: [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(name, 2)) == -1) { data/pgplot5-5.2.2/sys_alliant/grtermio.c:20: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 name[64]; data/pgplot5-5.2.2/sys_alliant/grtermio.c:27: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(name, 2)) == -1) data/pgplot5-5.2.2/sys_cray/grdate.c:27:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char vtime[18]; /* Output string compilation buffer */ data/pgplot5-5.2.2/sys_cray/grfileio.c:92:10: [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). fd = open(buff, O_WRONLY | O_CREAT | O_TRUNC, 0666); data/pgplot5-5.2.2/sys_cray/grgenv.c:32:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char test[33]; /* PGPLOT_* Concatenation buffer */ data/pgplot5-5.2.2/sys_cray/grtermio.c:21: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[64]; /* A copy of the given terminal device name */ data/pgplot5-5.2.2/sys_cray/grtermio.c:35:12: [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(name, 2)) == -1) { data/pgplot5-5.2.2/sys_linux/af77_src/grdate.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 vtime[18]; /* Output string compilation buffer */ data/pgplot5-5.2.2/sys_linux/af77_src/grfileio.c:93:10: [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). fd = open(buff, O_WRONLY | O_CREAT | O_TRUNC, 0666); data/pgplot5-5.2.2/sys_linux/af77_src/grgenv.c:32:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char test[33]; /* PGPLOT_* Concatenation buffer */ data/pgplot5-5.2.2/sys_linux/af77_src/grtermio.c:22: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 name[64]; data/pgplot5-5.2.2/sys_linux/af77_src/grtermio.c:29: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(name, 2)) == -1) data/pgplot5-5.2.2/sys_next/af77_src/grdate.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 vtime[18]; /* Output string compilation buffer */ data/pgplot5-5.2.2/sys_next/af77_src/grfileio.c:93:10: [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). fd = open(buff, O_WRONLY | O_CREAT | O_TRUNC, 0666); data/pgplot5-5.2.2/sys_next/af77_src/grgenv.c:32:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char test[33]; /* PGPLOT_* Concatenation buffer */ data/pgplot5-5.2.2/sys_next/af77_src/grtermio.c:20: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 name[64]; data/pgplot5-5.2.2/sys_next/af77_src/grtermio.c:27: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(name, 2)) == -1) data/pgplot5-5.2.2/sys_next/f2c_src/grgenv.c:32:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char test[33]; /* PGPLOT_* Concatenation buffer */ data/pgplot5-5.2.2/sys_next/f2c_src/grtermio.c:20: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 name[64]; data/pgplot5-5.2.2/sys_next/f2c_src/grtermio.c:27: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(name, 2)) == -1) data/pgplot5-5.2.2/sys_next/gf77_src/grtermio.c:20: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 name[64]; data/pgplot5-5.2.2/sys_next/gf77_src/grtermio.c:27: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(name, 2)) == -1) data/pgplot5-5.2.2/sys_openstep/f2c_src/grgenv.c:32:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char test[33]; /* PGPLOT_* Concatenation buffer */ data/pgplot5-5.2.2/sys_openstep/f2c_src/grtermio.c:20: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 name[64]; data/pgplot5-5.2.2/sys_openstep/f2c_src/grtermio.c:27: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(name, 2)) == -1) data/pgplot5-5.2.2/sys_openstep/g77_src/grtermio.c:20: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 name[64]; data/pgplot5-5.2.2/sys_openstep/g77_src/grtermio.c:27: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(name, 2)) == -1) data/pgplot5-5.2.2/sys_openstep/pgview/nexsup.c:33:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmess[256]; data/pgplot5-5.2.2/sys_openstep/pgview/nexsup.c:69:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sbuf.cmess, &replyadd.sin_port, 2); data/pgplot5-5.2.2/sys_openstep/pgview/nexsup.c:98:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmess[256]; data/pgplot5-5.2.2/sys_openstep/pgview/nexsup.c:102: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 cloc[256]; data/pgplot5-5.2.2/sys_openstep/pgview/nexsup.c:130:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&server.sin_addr, hp->h_addr, hp->h_length); data/pgplot5-5.2.2/sys_openstep/pgview/nexsup.c:183:10: [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(sbuf.cmess, cbuf, itmp); data/pgplot5-5.2.2/sys_openstep/pgview/portobj.h:17: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 cbuf[256]; data/pgplot5-5.2.2/sys_vms/grfileio.c:107:12: [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). fd = open(buff, O_WRONLY | O_CREAT | O_TRUNC, 0); data/pgplot5-5.2.2/cpg/pgbind.c:624: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). prefix_len = strlen(PG_PREFIX); data/pgplot5-5.2.2/cpg/pgbind.c:842:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int slen = strlen(arg->name); data/pgplot5-5.2.2/cpg/pgbind.c:1277:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(length == strlen(datatypes[i].name) && data/pgplot5-5.2.2/cpg/pgbind.c:1495: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). nnew = strlen(string); data/pgplot5-5.2.2/cpg/pgbind.c:1675:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(lex->fp); data/pgplot5-5.2.2/drivers/cgdriv.c:73: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). dsc.dsc$w_length = strlen(string); \ data/pgplot5-5.2.2/drivers/cgdriv.c:161: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). length=strlen(name); data/pgplot5-5.2.2/drivers/cgdriv.c:190: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). length=strlen(name); data/pgplot5-5.2.2/drivers/cgdriv.c:218: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). length = strlen(name); data/pgplot5-5.2.2/drivers/cgdriv.c:467: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). *lchr = strlen(dev_name); data/pgplot5-5.2.2/drivers/cgdriv.c:468:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(chr, dev_name, len); data/pgplot5-5.2.2/drivers/cgdriv.c:519: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). *lchr = strlen(file_name); data/pgplot5-5.2.2/drivers/cgdriv.c:520:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(chr, file_name, len); data/pgplot5-5.2.2/drivers/cgdriv.c:561:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(filename, chr, *lchr); data/pgplot5-5.2.2/drivers/nexsup.c:78:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). *lbuf = read(msgsock, ibuf, 16); data/pgplot5-5.2.2/drivers/nexsup.c:122:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (i=0; i<strlen(cdis); i++) { data/pgplot5-5.2.2/drivers/nexsup.c:144: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). lloc=strlen(cloc); data/pgplot5-5.2.2/drivers/nexsup.c:180: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). itmp=strlen(cbuf)+1; data/pgplot5-5.2.2/drivers/old/irdriv.c:127: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). *NSTR = strlen( dev_name ) ; data/pgplot5-5.2.2/drivers/old/svdriv.c:127: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). *NSTR = strlen( sv_dev_name ) ; data/pgplot5-5.2.2/drivers/pgxwin.c:4154: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). pgx->name = (char *) malloc(strlen(name) + 1); data/pgplot5-5.2.2/drivers/pgxwin_server.c:3094:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(resource, (char *)value.addr, (int)value.size); data/pgplot5-5.2.2/drivers/pgxwin_server.c:3142: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). (strlen(dir)+strlen(sep)+strlen(file) + 1)); data/pgplot5-5.2.2/drivers/pgxwin_server.c:3142: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). (strlen(dir)+strlen(sep)+strlen(file) + 1)); data/pgplot5-5.2.2/drivers/pgxwin_server.c:3142: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). (strlen(dir)+strlen(sep)+strlen(file) + 1)); data/pgplot5-5.2.2/drivers/pndriv.c:183: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). filename = malloc(strlen(dev->filename)+EXTRA_CHARS); data/pgplot5-5.2.2/drivers/pndriv.c:252:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). text[0].text_length = strlen(text[0].text); data/pgplot5-5.2.2/drivers/pndriv.c:503:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ACTIVE_DEVICE->filename,file,length); data/pgplot5-5.2.2/drivers/pndriv.c:565:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(chr,name,len); data/pgplot5-5.2.2/drivers/pndriv.c:566: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). *lchr = strlen(name); data/pgplot5-5.2.2/drivers/pndriv.c:593: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). *lchr = strlen(DEVICE_CAPABILITIES); data/pgplot5-5.2.2/drivers/pndriv.c:594:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(chr,DEVICE_CAPABILITIES,*lchr); data/pgplot5-5.2.2/drivers/pndriv.c:599: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). *lchr = strlen(DEFAULT_FILENAME); data/pgplot5-5.2.2/drivers/pndriv.c:600:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(chr,DEFAULT_FILENAME,*lchr); data/pgplot5-5.2.2/drivers/rvdriv.c:15: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). dsc.dsc$w_length = strlen(string); \ data/pgplot5-5.2.2/drivers/tkdriv.c:15: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). dsc.dsc$w_length = strlen(string); \ data/pgplot5-5.2.2/drivers/x2driv.c:135:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). min=strlen(PGDRIVNAME); data/pgplot5-5.2.2/drivers/x2driv.c:148: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). min=strlen(PGDEFNAME); data/pgplot5-5.2.2/drivers/x2driv.c:530: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). len1=strlen(&tmpstr[0]) + 1; data/pgplot5-5.2.2/drivers/x2driv.c:531: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). len2=strlen(&tmpstr2[0]) + 1; data/pgplot5-5.2.2/drivers/x2driv.c:532: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). len3=strlen(&tmpstr3[0]) + 1; data/pgplot5-5.2.2/drivers/x2driv.c:533: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). len4=strlen(&tmpstr4[0]) + 1; data/pgplot5-5.2.2/drivers/x2driv.c:542:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(cptr, &tmpstr[0], len1); data/pgplot5-5.2.2/drivers/x2driv.c:543:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(cptr+len1, &tmpstr2[0], len2); data/pgplot5-5.2.2/drivers/x2driv.c:544:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(cptr+len1+len2, &tmpstr3[0], len3); data/pgplot5-5.2.2/drivers/x2driv.c:545:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(cptr+len1+len2+len3, &tmpstr4[0], len4); data/pgplot5-5.2.2/drivers/xadriv.c:15: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). dsc.dsc$w_length = strlen(string); \ data/pgplot5-5.2.2/drivers/xathena/XaPgplot.c:28: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). dsc.dsc$w_length = strlen(string); \ data/pgplot5-5.2.2/drivers/xathena/XaPgplot.c:337: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). (strlen(xap->pgx->name) + 1 + strlen(XAP_DEVICE) + 1)); data/pgplot5-5.2.2/drivers/xathena/XaPgplot.c:337: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). (strlen(xap->pgx->name) + 1 + strlen(XAP_DEVICE) + 1)); data/pgplot5-5.2.2/drivers/xathena/XaPgplot.c:1022:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(chr, dev_name, len); data/pgplot5-5.2.2/drivers/xathena/XaPgplot.c:1023: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). *lchr = strlen(dev_name); data/pgplot5-5.2.2/drivers/xmdriv.c:15: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). dsc.dsc$w_length = strlen(string); \ data/pgplot5-5.2.2/drivers/xmotif/XmPgplot.c:35: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). dsc.dsc$w_length = strlen(string); \ data/pgplot5-5.2.2/drivers/xmotif/XmPgplot.c:388: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). (strlen(xmp->pgx->name) + 1 + strlen(XMP_DEVICE) + 1)); data/pgplot5-5.2.2/drivers/xmotif/XmPgplot.c:388: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). (strlen(xmp->pgx->name) + 1 + strlen(XMP_DEVICE) + 1)); data/pgplot5-5.2.2/drivers/xmotif/XmPgplot.c:1129:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(chr, dev_name, len); data/pgplot5-5.2.2/drivers/xmotif/XmPgplot.c:1130: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). *lchr = strlen(dev_name); data/pgplot5-5.2.2/drivers/xmotif/XmPgplot.c:1852:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). scroll_name = (char *) XtMalloc(sizeof(char) * strlen(name) + 3); data/pgplot5-5.2.2/drivers/xmotif/pgmdemo.c:359: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). XmRString, text, strlen(text)+1, data/pgplot5-5.2.2/drivers/xmotif/pgmdemo.c:1241: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). XmNcursorPosition, (XmTextPosition) strlen(value), data/pgplot5-5.2.2/drivers/xmotif/pgmdemo.c:1297:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). XmRString, text, strlen(text)+1, data/pgplot5-5.2.2/drivers/xtk/pgtkdemo.c:1077:44: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). strcmp(header, REQUIRED_HEADER)!=0 || getc(fp) != '\n') { data/pgplot5-5.2.2/drivers/xtk/tkpgplot.c:26: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). dsc.dsc$w_length = strlen(string); \ data/pgplot5-5.2.2/drivers/xtk/tkpgplot.c:556: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). (strlen(name)+1+strlen(TK_PGPLOT_DEVICE)+1)); data/pgplot5-5.2.2/drivers/xtk/tkpgplot.c:556: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). (strlen(name)+1+strlen(TK_PGPLOT_DEVICE)+1)); data/pgplot5-5.2.2/drivers/xtk/tkpgplot.c:1180:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(chr, dev_name, len); data/pgplot5-5.2.2/drivers/xtk/tkpgplot.c:1181: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). *lchr = strlen(dev_name); data/pgplot5-5.2.2/drivers/xtk/tkpgplot.c:2621:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(first, path, length); data/pgplot5-5.2.2/drivers/xwdriv.c:111: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). dsc.dsc$w_length = strlen(string); \ data/pgplot5-5.2.2/drivers/xwdriv.c:482:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(chr, dev_name, len); data/pgplot5-5.2.2/drivers/xwdriv.c:483: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). *lchr = strlen(dev_name); data/pgplot5-5.2.2/drivers/xwdriv.c:3368: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). slen = strlen(format) + strlen(exe) + strlen(display_string); data/pgplot5-5.2.2/drivers/xwdriv.c:3368: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). slen = strlen(format) + strlen(exe) + strlen(display_string); data/pgplot5-5.2.2/drivers/xwdriv.c:3368: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). slen = strlen(format) + strlen(exe) + strlen(display_string); data/pgplot5-5.2.2/drivers/xwdriv.c:3989:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if((value = (char *) malloc(1+strlen(file)+1))==NULL) { data/pgplot5-5.2.2/drivers/xwdriv.c:4108: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). buflen = strlen(program) + 40; data/pgplot5-5.2.2/drivers/xwdriv.c:4118: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). prog_len = strlen(program); data/pgplot5-5.2.2/drivers/xwdriv.c:4152: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). path_len = dirlen + strlen(sep) + prog_len + strlen(exe) ; data/pgplot5-5.2.2/drivers/xwdriv.c:4152:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). path_len = dirlen + strlen(sep) + prog_len + strlen(exe) ; data/pgplot5-5.2.2/pgdispd/proccom.c:641: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). i= strlen(tmpptr) + 1; data/pgplot5-5.2.2/pgdispd/proccom.c:642:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). j= strlen(tmpptr+i) + 1; data/pgplot5-5.2.2/pgdispd/proccom.c:643: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). k= strlen(tmpptr+i+j) + 1; data/pgplot5-5.2.2/pgdispd/proccom.c:644: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). l= strlen(tmpptr+i+j+k) + 1; data/pgplot5-5.2.2/pgdispd/proccom.c:883: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). i=strlen(tmpptr) + 1; data/pgplot5-5.2.2/pgdispd/proccom.c:884: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). j=strlen(tmpptr+i) + 1; data/pgplot5-5.2.2/pgdispd/proccom.c:1058: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). i=strlen(tmpptr) + 1; data/pgplot5-5.2.2/pgdispd/proccom.c:1059: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). j=strlen(tmpptr+i) + 1; data/pgplot5-5.2.2/pgdispd/resdb.c:283:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(dispname, value.addr, (int) value.size); data/pgplot5-5.2.2/pgdispd/resdb.c:317:8: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. (void)strcat(filename, "/"); data/pgplot5-5.2.2/pgdispd/resdb.c:344: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). len=strlen(env); data/pgplot5-5.2.2/pgdispd/resdb.c:825:16: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). } else (void)strncpy(res.psfile, value.addr, (int)value.size); data/pgplot5-5.2.2/pgdispd/resdb.c:842:16: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). } else (void)strncpy(res.printer, value.addr, (int)value.size); data/pgplot5-5.2.2/sys/grdate.c:57:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(vtime+12, utime+11, 5); data/pgplot5-5.2.2/sys/grdate.c:62:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(string, vtime, maxlen); data/pgplot5-5.2.2/sys/grfileio.c:82:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buff, name, slen); data/pgplot5-5.2.2/sys/grgetc.c:107:14: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys/grgetc.c:109:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys/grgetc.c:114:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys/grtermio.c:39:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name, cdev, *ldev); data/pgplot5-5.2.2/sys/grtermio.c:132:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nread = read(*fd, &buff[ndone], ntry); data/pgplot5-5.2.2/sys_alliant/grgetc.c:99:14: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_alliant/grgetc.c:102:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_alliant/grgetc.c:108:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_alliant/grtermio.c:25:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name, cdev, n); data/pgplot5-5.2.2/sys_alliant/grtermio.c:118:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nread = read (*fd, &cbuf[i0], ntry); data/pgplot5-5.2.2/sys_cray/grdate.c:56:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(vtime+12, utime+11, 5); data/pgplot5-5.2.2/sys_cray/grdate.c:61:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(string, vtime, maxlen); data/pgplot5-5.2.2/sys_cray/grfileio.c:87:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buff, name, slen); data/pgplot5-5.2.2/sys_cray/grgenv.c:54: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). prefix_len = strlen(prefix); data/pgplot5-5.2.2/sys_cray/grgenv.c:60:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&test[prefix_len], name, name_len); data/pgplot5-5.2.2/sys_cray/grgenv.c:71: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). if(env==0 || strlen(env) > value_dim) data/pgplot5-5.2.2/sys_cray/grgenv.c:76:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(value, env, value_dim); data/pgplot5-5.2.2/sys_cray/grgenv.c:81: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). int env_len = strlen(env); data/pgplot5-5.2.2/sys_cray/grgetc.c:103:14: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_cray/grgetc.c:105:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_cray/grgetc.c:110:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_cray/grtermio.c:26:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name, _fcdtocp(cdev), *ldev); data/pgplot5-5.2.2/sys_cray/grtermio.c:115:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nread = read(*fd, &buff[ndone], ntry); data/pgplot5-5.2.2/sys_linux/af77_src/grdate.c:52:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(vtime+12, utime+11, 5); data/pgplot5-5.2.2/sys_linux/af77_src/grdate.c:57:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(string, vtime, maxlen); data/pgplot5-5.2.2/sys_linux/af77_src/grfileio.c:88:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buff, name, slen); data/pgplot5-5.2.2/sys_linux/af77_src/grgenv.c:47: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). prefix_len = strlen(prefix); data/pgplot5-5.2.2/sys_linux/af77_src/grgenv.c:53:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&test[prefix_len], name, name_len); data/pgplot5-5.2.2/sys_linux/af77_src/grgenv.c:64: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). if(env==0 || strlen(env) > value_dim) data/pgplot5-5.2.2/sys_linux/af77_src/grgenv.c:69:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(value, env, value_dim); data/pgplot5-5.2.2/sys_linux/af77_src/grgenv.c:74: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). int env_len = strlen(env); data/pgplot5-5.2.2/sys_linux/af77_src/grgetc.c:100:14: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_linux/af77_src/grgetc.c:103:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_linux/af77_src/grgetc.c:109:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_linux/af77_src/grtermio.c:27:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name, cdev, n); data/pgplot5-5.2.2/sys_linux/af77_src/grtermio.c:119:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nread = read (*fd, &cbuf[i0], ntry); data/pgplot5-5.2.2/sys_next/af77_src/grdate.c:52:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(vtime+12, utime+11, 5); data/pgplot5-5.2.2/sys_next/af77_src/grdate.c:57:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(string, vtime, maxlen); data/pgplot5-5.2.2/sys_next/af77_src/grfileio.c:88:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buff, name, slen); data/pgplot5-5.2.2/sys_next/af77_src/grgenv.c:47: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). prefix_len = strlen(prefix); data/pgplot5-5.2.2/sys_next/af77_src/grgenv.c:53:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&test[prefix_len], name, name_len); data/pgplot5-5.2.2/sys_next/af77_src/grgenv.c:64: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). if(env==0 || strlen(env) > value_dim) data/pgplot5-5.2.2/sys_next/af77_src/grgenv.c:69:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(value, env, value_dim); data/pgplot5-5.2.2/sys_next/af77_src/grgenv.c:74: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). int env_len = strlen(env); data/pgplot5-5.2.2/sys_next/af77_src/grgetc.c:100:14: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_next/af77_src/grgetc.c:103:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_next/af77_src/grgetc.c:109:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_next/af77_src/grtermio.c:25:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name, cdev, n); data/pgplot5-5.2.2/sys_next/af77_src/grtermio.c:117:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nread = read (*fd, &cbuf[i0], ntry); data/pgplot5-5.2.2/sys_next/f2c_src/grgenv.c:47: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). prefix_len = strlen(prefix); data/pgplot5-5.2.2/sys_next/f2c_src/grgenv.c:53:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&test[prefix_len], name, name_len); data/pgplot5-5.2.2/sys_next/f2c_src/grgenv.c:64: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). if(env==0 || strlen(env) > value_dim) data/pgplot5-5.2.2/sys_next/f2c_src/grgenv.c:69:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(value, env, value_dim); data/pgplot5-5.2.2/sys_next/f2c_src/grgenv.c:74: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). int env_len = strlen(env); data/pgplot5-5.2.2/sys_next/f2c_src/grgetc.c:99:14: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_next/f2c_src/grgetc.c:102:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_next/f2c_src/grgetc.c:108:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_next/f2c_src/grtermio.c:25:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name, cdev, n); data/pgplot5-5.2.2/sys_next/f2c_src/grtermio.c:118:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nread = read (*fd, &cbuf[i0], ntry); data/pgplot5-5.2.2/sys_next/gf77_src/grgetc.c:99:14: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_next/gf77_src/grgetc.c:102:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_next/gf77_src/grgetc.c:108:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_next/gf77_src/grtermio.c:25:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name, cdev, n); data/pgplot5-5.2.2/sys_next/gf77_src/grtermio.c:118:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nread = read (*fd, &cbuf[i0], ntry); data/pgplot5-5.2.2/sys_openstep/f2c_src/grgenv.c:47: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). prefix_len = strlen(prefix); data/pgplot5-5.2.2/sys_openstep/f2c_src/grgenv.c:53:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&test[prefix_len], name, name_len); data/pgplot5-5.2.2/sys_openstep/f2c_src/grgenv.c:64: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). if(env==0 || strlen(env) > value_dim) data/pgplot5-5.2.2/sys_openstep/f2c_src/grgenv.c:69:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(value, env, value_dim); data/pgplot5-5.2.2/sys_openstep/f2c_src/grgenv.c:74: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). int env_len = strlen(env); data/pgplot5-5.2.2/sys_openstep/f2c_src/grgetc.c:99:14: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_openstep/f2c_src/grgetc.c:102:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_openstep/f2c_src/grgetc.c:108:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_openstep/f2c_src/grtermio.c:25:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name, cdev, n); data/pgplot5-5.2.2/sys_openstep/f2c_src/grtermio.c:118:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nread = read (*fd, &cbuf[i0], ntry); data/pgplot5-5.2.2/sys_openstep/g77_src/grgetc.c:99:14: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_openstep/g77_src/grgetc.c:102:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_openstep/g77_src/grgetc.c:108:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextch = getchar(); data/pgplot5-5.2.2/sys_openstep/g77_src/grtermio.c:25:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name, cdev, n); data/pgplot5-5.2.2/sys_openstep/g77_src/grtermio.c:118:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nread = read (*fd, &cbuf[i0], ntry); data/pgplot5-5.2.2/sys_openstep/pgview/nexsup.c:78:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). *lbuf = read(msgsock, ibuf, 16); data/pgplot5-5.2.2/sys_openstep/pgview/nexsup.c:122:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (i=0; i<strlen(cdis); i++) { data/pgplot5-5.2.2/sys_openstep/pgview/nexsup.c:144: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). lloc=strlen(cloc); data/pgplot5-5.2.2/sys_openstep/pgview/nexsup.c:180: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). itmp=strlen(cbuf)+1; data/pgplot5-5.2.2/sys_vms/grfileio.c:96:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buff, name, slen); ANALYSIS SUMMARY: Hits = 484 Lines analyzed = 41476 in approximately 1.22 seconds (34090 lines/second) Physical Source Lines of Code (SLOC) = 23712 Hits@level = [0] 408 [1] 180 [2] 143 [3] 22 [4] 139 [5] 0 Hits@level+ = [0+] 892 [1+] 484 [2+] 304 [3+] 161 [4+] 139 [5+] 0 Hits/KSLOC@level+ = [0+] 37.6181 [1+] 20.4116 [2+] 12.8205 [3+] 6.78981 [4+] 5.86201 [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.