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/pdmenu-1.3.4/src/mouse.c
Examining data/pdmenu-1.3.4/src/window.h
Examining data/pdmenu-1.3.4/src/error.c
Examining data/pdmenu-1.3.4/src/rc.c
Examining data/pdmenu-1.3.4/src/error.h
Examining data/pdmenu-1.3.4/src/global.h
Examining data/pdmenu-1.3.4/src/actions.h
Examining data/pdmenu-1.3.4/src/menu.c
Examining data/pdmenu-1.3.4/src/windowtype.h
Examining data/pdmenu-1.3.4/src/window.c
Examining data/pdmenu-1.3.4/src/pdstring.h
Examining data/pdmenu-1.3.4/src/pdgetline.h
Examining data/pdmenu-1.3.4/src/pdstring.c
Examining data/pdmenu-1.3.4/src/mouse.h
Examining data/pdmenu-1.3.4/src/menu.h
Examining data/pdmenu-1.3.4/src/keyboard.h
Examining data/pdmenu-1.3.4/src/pdmenu.h
Examining data/pdmenu-1.3.4/src/screen.h
Examining data/pdmenu-1.3.4/src/rc_config.h
Examining data/pdmenu-1.3.4/src/pdmenu.c
Examining data/pdmenu-1.3.4/src/menutype.h
Examining data/pdmenu-1.3.4/src/screen.c
Examining data/pdmenu-1.3.4/src/colors.h
Examining data/pdmenu-1.3.4/src/inputbox.h
Examining data/pdmenu-1.3.4/src/rc.h
Examining data/pdmenu-1.3.4/src/actions.c
Examining data/pdmenu-1.3.4/src/pdgetline.c
Examining data/pdmenu-1.3.4/src/keyboard.c
Examining data/pdmenu-1.3.4/src/inputbox.c
Examining data/pdmenu-1.3.4/src/config.h
Examining data/pdmenu-1.3.4/contrib/setenv.c
Examining data/pdmenu-1.3.4/contrib/getenv.c

FINAL RESULTS:

data/pdmenu-1.3.4/src/actions.c:59:12:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  pcommand=popen(command,"r");
data/pdmenu-1.3.4/src/actions.c:106: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(menus->title,title);
data/pdmenu-1.3.4/src/actions.c:116:12:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  pcommand=popen(command,"r");
data/pdmenu-1.3.4/src/actions.c:171: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(menus->items[i]->text,str);
data/pdmenu-1.3.4/src/actions.c:224:14:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    pcommand=popen(i->command,"r");
data/pdmenu-1.3.4/src/actions.c:256: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(command,cs->value);
data/pdmenu-1.3.4/src/actions.c:263: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(command,i->command);
data/pdmenu-1.3.4/src/actions.c:331:5:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	   execvp(cv[0],cv);
data/pdmenu-1.3.4/src/actions.c:339: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(command);
data/pdmenu-1.3.4/src/error.c:32:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, fmt, arglist);
data/pdmenu-1.3.4/src/inputbox.c:44: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(ret->value,contents);
data/pdmenu-1.3.4/src/inputbox.c:167:8:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	      strcat(ret->value,cs->value);
data/pdmenu-1.3.4/src/pdmenu.c:113: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(startmenu,optarg);
data/pdmenu-1.3.4/src/pdmenu.c:154: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(s,ETCDIR);
data/pdmenu-1.3.4/src/pdmenu.c:210: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(ScreenObjNames[1],DESKTOP_NAME);	
data/pdmenu-1.3.4/src/pdmenu.c:211: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(FG[0],DESKTOP_FG_DEFAULT);	
data/pdmenu-1.3.4/src/pdmenu.c:212: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(BG[0],DESKTOP_BG_DEFAULT);
data/pdmenu-1.3.4/src/pdmenu.c:213: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(ScreenObjNames[6],TITLE_NAME);	
data/pdmenu-1.3.4/src/pdmenu.c:214: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(FG[5],TITLE_FG_DEFAULT);	
data/pdmenu-1.3.4/src/pdmenu.c:215: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(BG[5],TITLE_BG_DEFAULT);
data/pdmenu-1.3.4/src/pdmenu.c:216:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(ScreenObjNames[3],BASE_NAME);	
data/pdmenu-1.3.4/src/pdmenu.c:217: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(FG[2],BASE_FG_DEFAULT);	
data/pdmenu-1.3.4/src/pdmenu.c:218: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(BG[2],BASE_BG_DEFAULT);
data/pdmenu-1.3.4/src/pdmenu.c:219: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(ScreenObjNames[4],MENU_NAME);	
data/pdmenu-1.3.4/src/pdmenu.c:220: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(FG[3],MENU_FG_DEFAULT);	
data/pdmenu-1.3.4/src/pdmenu.c:221: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(BG[3],MENU_BG_DEFAULT);
data/pdmenu-1.3.4/src/pdmenu.c:222: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(ScreenObjNames[5],SELBAR_NAME);	
data/pdmenu-1.3.4/src/pdmenu.c:223: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(FG[4],SELBAR_FG_DEFAULT);	 
data/pdmenu-1.3.4/src/pdmenu.c:224:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(BG[4],SELBAR_BG_DEFAULT);
data/pdmenu-1.3.4/src/pdmenu.c:225: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(ScreenObjNames[2],SHADOW_NAME);	
data/pdmenu-1.3.4/src/pdmenu.c:226: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(FG[1],SHADOW_FG_DEFAULT);
data/pdmenu-1.3.4/src/pdmenu.c:227: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(BG[1],SHADOW_BG_DEFAULT);
data/pdmenu-1.3.4/src/pdmenu.c:228: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(ScreenObjNames[7],MENU_HI_NAME);
data/pdmenu-1.3.4/src/pdmenu.c:229: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(FG[6],MENU_HI_FG_DEFAULT);	
data/pdmenu-1.3.4/src/pdmenu.c:230: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(BG[6],MENU_HI_BG_DEFAULT);
data/pdmenu-1.3.4/src/pdmenu.c:231: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(ScreenObjNames[8],SELBAR_HI_NAME);	
data/pdmenu-1.3.4/src/pdmenu.c:232: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(FG[7],SELBAR_HI_FG_DEFAULT);	
data/pdmenu-1.3.4/src/pdmenu.c:233: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(BG[7],SELBAR_HI_BG_DEFAULT);
data/pdmenu-1.3.4/src/pdmenu.c:234: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(ScreenObjNames[9],UNSEL_MENU_NAME);
data/pdmenu-1.3.4/src/pdmenu.c:235: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(FG[8],UNSEL_MENU_FG_DEFAULT);
data/pdmenu-1.3.4/src/pdmenu.c:236: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(BG[8],UNSEL_MENU_BG_DEFAULT);
data/pdmenu-1.3.4/src/rc.c:79:8:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    fp=popen(fname,"r");
data/pdmenu-1.3.4/src/rc.c:135: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(current_rc_menu->name,tmp);
data/pdmenu-1.3.4/src/rc.c:152: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(current_rc_menu->title,tmp);
data/pdmenu-1.3.4/src/rc.c:160: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(current_rc_menu->helptext,tmp);
data/pdmenu-1.3.4/src/rc.c:267: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(currentitem->text,tmp);
data/pdmenu-1.3.4/src/rc.c:301: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(currentitem->command,tmp);
data/pdmenu-1.3.4/src/window.c:37:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(greeting, _("Welcome to Pdmenu %s by Joey Hess <joey@kitenet.net>"), VER);
data/pdmenu-1.3.4/contrib/getenv.c:47:1:  [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.
getenv(name)
data/pdmenu-1.3.4/src/pdmenu.c:94:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    c=getopt_long(argc,argv,"hscquvm:rln",long_options,NULL);
data/pdmenu-1.3.4/src/pdmenu.c:96:7:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    c=getopt(argc,argv,"hscquvm:rln");
data/pdmenu-1.3.4/src/pdmenu.c:145: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.
    asprintf(s,"%s/.%s",getenv("HOME"),"pdmenurc");
data/pdmenu-1.3.4/src/pdmenu.c:150: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.
    strncpy(s,getenv("HOME"),255);
data/pdmenu-1.3.4/src/pdmenu.c:205: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.
  Use_Color=!(getenv("COLORTERM")==NULL);
data/pdmenu-1.3.4/contrib/setenv.c:85:4:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			bcopy(environ, P, cnt * sizeof(char *));
data/pdmenu-1.3.4/src/actions.c:108:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(menus->helptext,_("Press Esc to close window."));
data/pdmenu-1.3.4/src/actions.c:326: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 *cv[4]; /* command vector */
data/pdmenu-1.3.4/src/menu.h:7:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char ScreenObjNames[NUMSCREENPARTS+1][LONGEST_OBJ_NAME+1]; 
data/pdmenu-1.3.4/src/pdmenu.c:151:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(s,"/.");
data/pdmenu-1.3.4/src/pdmenu.c:152:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(s,"pdmenurc");
data/pdmenu-1.3.4/src/pdmenu.c:155:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(s,"pdmenurc");
data/pdmenu-1.3.4/src/rc.c:76: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/pdmenu-1.3.4/src/rc.c:323:14:  [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).
    int fd = open("/dev/tty", O_RDWR);
data/pdmenu-1.3.4/src/screen.h:15:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char FG[NUMSCREENPARTS][COLORLEN];
data/pdmenu-1.3.4/src/screen.h:16:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char BG[NUMSCREENPARTS][COLORLEN];
data/pdmenu-1.3.4/contrib/setenv.c:60: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).
	l_value = strlen(value);
data/pdmenu-1.3.4/contrib/setenv.c:64:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(C) >= l_value) {	/* old larger; copy over */
data/pdmenu-1.3.4/src/actions.c:66:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(str) > 3 && strncmp(str,"PWD=",3)==0) {
data/pdmenu-1.3.4/src/actions.c:71: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).
  else if ((strlen(str) > 1) && ((val=strchr(str, '=')) != NULL)) {
data/pdmenu-1.3.4/src/actions.c:105:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  menus->title=malloc(strlen(title)+1);
data/pdmenu-1.3.4/src/actions.c:110:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
  strcpy(menus->name,"");
data/pdmenu-1.3.4/src/actions.c:117: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).
  while ((str && strlen(str) > 0) || (str=realstr=pdgetline(pcommand,0))) {
data/pdmenu-1.3.4/src/actions.c:124: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).
      for (j=0;j<strlen(str);j++) {
data/pdmenu-1.3.4/src/actions.c:139:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(menus->items[i]->text,str,j);
data/pdmenu-1.3.4/src/actions.c:142:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	  strcpy(menus->items[i]->command,"");
data/pdmenu-1.3.4/src/actions.c:173:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(menus->items[i]->command,"");
data/pdmenu-1.3.4/src/actions.c:190:7:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
      strcpy(menus->items[i]->command,"");
data/pdmenu-1.3.4/src/actions.c:255: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).
	command=malloc(strlen(cs->value)+1);
data/pdmenu-1.3.4/src/actions.c:262: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).
      command=malloc(strlen(i->command)+1);
data/pdmenu-1.3.4/src/inputbox.c:51:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  curspos=strlen(ret->value);
data/pdmenu-1.3.4/src/inputbox.c:129: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).
  ret->value=malloc(strlen(s) + 1);
data/pdmenu-1.3.4/src/inputbox.c:131: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).
  for (i=0;i<strlen(s);i++) {
data/pdmenu-1.3.4/src/inputbox.c:137: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).
      for (i++;i<strlen(s);i++) {
data/pdmenu-1.3.4/src/inputbox.c:140:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(tagtitle,(char *) s + tagtitlestart,i - tagtitlestart);
data/pdmenu-1.3.4/src/inputbox.c:144: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).
	  for (i++;i<strlen(s);i++) {
data/pdmenu-1.3.4/src/inputbox.c:148:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	      strncpy(input,(char *) s + tagvaluestart,i - tagvaluestart);
data/pdmenu-1.3.4/src/inputbox.c:164:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      retcount=retcount+strlen(cs->value);
data/pdmenu-1.3.4/src/inputbox.c:166:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      ret->value=realloc(ret->value,retcount + strlen(s) + 1);
data/pdmenu-1.3.4/src/menu.c:101: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).
    dx=strlen(m->title)+2;
data/pdmenu-1.3.4/src/menu.c:113: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).
	  len=strlen(m->items[c]->text);
data/pdmenu-1.3.4/src/menu.c:129: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).
      if (dx<strlen(m->items[c]->text)+4)
data/pdmenu-1.3.4/src/menu.c:130: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).
	dx=strlen(m->items[c]->text)+4;
data/pdmenu-1.3.4/src/pdgetline.c:45: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).
    strsize=strlen(str);
data/pdmenu-1.3.4/src/pdmenu.c:65: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).
  char *s=(char *) malloc(258+strlen("pdmenurc"));
data/pdmenu-1.3.4/src/pdmenu.c:112: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).
      startmenu=malloc(strlen(optarg)+1);
data/pdmenu-1.3.4/src/pdmenu.c:150:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(s,getenv("HOME"),255);
data/pdmenu-1.3.4/src/rc.c:134: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).
	current_rc_menu->name=malloc(strlen(tmp)+1);
data/pdmenu-1.3.4/src/rc.c:148:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(current_rc_menu->title,"");
data/pdmenu-1.3.4/src/rc.c:151:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	current_rc_menu->title=malloc(strlen(tmp)+1);
data/pdmenu-1.3.4/src/rc.c:156:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(current_rc_menu->helptext,"");
data/pdmenu-1.3.4/src/rc.c:159:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	current_rc_menu->helptext=malloc(strlen(tmp)+1);
data/pdmenu-1.3.4/src/rc.c:176:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(FG[i],tmp,COLORLEN);
data/pdmenu-1.3.4/src/rc.c:178:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	      strncpy(BG[i],tmp,COLORLEN);
data/pdmenu-1.3.4/src/rc.c:250: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).
	for (i=0;i<strlen(tmp)-1;i++) { /* set hotkey */
data/pdmenu-1.3.4/src/rc.c:252: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).
	    for (j=i; j<strlen(tmp);j++) {
data/pdmenu-1.3.4/src/rc.c:260: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).
	    for (;i<strlen(tmp);i++) {
data/pdmenu-1.3.4/src/rc.c:266: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).
	currentitem->text=malloc(strlen(tmp)+1);
data/pdmenu-1.3.4/src/rc.c:271:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(currentitem->text,"");
data/pdmenu-1.3.4/src/rc.c:285:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(tmp) < 4)
data/pdmenu-1.3.4/src/rc.c:286: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).
	  for (i=0;i<strlen(tmp);i++)
data/pdmenu-1.3.4/src/rc.c:290: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).
	  for (i=0;i<strlen(tmp);i++)
data/pdmenu-1.3.4/src/rc.c:300:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	currentitem->command=malloc(strlen(tmp)+1);
data/pdmenu-1.3.4/src/rc.c:305:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(currentitem->command,"");
data/pdmenu-1.3.4/src/screen.c:44:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  SLsmg_gotorc(0,(SLtt_Screen_Cols-strlen(title))/2);
data/pdmenu-1.3.4/src/screen.c:93: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).
  SLsmg_gotorc(y,x+(dx-strlen(title))/2);
data/pdmenu-1.3.4/src/window.c:43:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(CurrentWindow->menu->helptext)>0)

ANALYSIS SUMMARY:

Hits = 116
Lines analyzed = 3046 in approximately 0.10 seconds (29119 lines/second)
Physical Source Lines of Code (SLOC) = 2067
Hits@level = [0]   7 [1]  51 [2]  11 [3]   6 [4]  48 [5]   0
Hits@level+ = [0+] 123 [1+] 116 [2+]  65 [3+]  54 [4+]  48 [5+]   0
Hits/KSLOC@level+ = [0+] 59.5065 [1+] 56.12 [2+] 31.4465 [3+] 26.1248 [4+] 23.2221 [5+]   0
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.