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/xwpe-1.5.30a/attrb.h
Examining data/xwpe-1.5.30a/we_fl_unix.c
Examining data/xwpe-1.5.30a/progr.h
Examining data/xwpe-1.5.30a/we_fl_fkt.c
Examining data/xwpe-1.5.30a/edit.h
Examining data/xwpe-1.5.30a/WeSyntax.c
Examining data/xwpe-1.5.30a/keys.h
Examining data/xwpe-1.5.30a/makro.h
Examining data/xwpe-1.5.30a/model.h
Examining data/xwpe-1.5.30a/unixkeys.h
Examining data/xwpe-1.5.30a/unixmakr.h
Examining data/xwpe-1.5.30a/old/we_djgpp.c
Examining data/xwpe-1.5.30a/WeExpArr.c
Examining data/xwpe-1.5.30a/we_block.c
Examining data/xwpe-1.5.30a/we_opt.c
Examining data/xwpe-1.5.30a/we_e_aus.c
Examining data/xwpe-1.5.30a/we_edit.c
Examining data/xwpe-1.5.30a/we_hfkt.c
Examining data/xwpe-1.5.30a/we_main.c
Examining data/xwpe-1.5.30a/we_menue.c
Examining data/xwpe-1.5.30a/we_mouse.c
Examining data/xwpe-1.5.30a/we_prog.c
Examining data/xwpe-1.5.30a/we_progn.c
Examining data/xwpe-1.5.30a/we_term.c
Examining data/xwpe-1.5.30a/we_xterm.c
Examining data/xwpe-1.5.30a/we_unix.c
Examining data/xwpe-1.5.30a/messages.h
Examining data/xwpe-1.5.30a/WeXterm.c
Examining data/xwpe-1.5.30a/WeXterm.h
Examining data/xwpe-1.5.30a/WeProg.h
Examining data/xwpe-1.5.30a/Xwpe.h
Examining data/xwpe-1.5.30a/WeString.c
Examining data/xwpe-1.5.30a/WeString.h
Examining data/xwpe-1.5.30a/WeExpArr.h
Examining data/xwpe-1.5.30a/we_gpm.c
Examining data/xwpe-1.5.30a/options.h
Examining data/xwpe-1.5.30a/WeLinux.c
Examining data/xwpe-1.5.30a/tools/compiletest.c
Examining data/xwpe-1.5.30a/we_debug.c
Examining data/xwpe-1.5.30a/we_wind.c

FINAL RESULTS:

data/xwpe-1.5.30a/we_debug.c:1697:3:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  chmod(file, 0755);
data/xwpe-1.5.30a/we_fl_fkt.c:278:3:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  chmod(ptmp, f->filemode);
data/xwpe-1.5.30a/we_fl_unix.c:20:9:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
#define readlink(x, y, z) -1
data/xwpe-1.5.30a/we_fl_unix.c:1653:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    if(chmod(filen, mode))
data/xwpe-1.5.30a/we_fl_unix.c:2760:12:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
      ln = readlink(file, tmp, allocate_size-1);
data/xwpe-1.5.30a/we_fl_unix.c:2840:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  if(chmod(newfile, buf.st_mode))
data/xwpe-1.5.30a/we_fl_unix.c:3424:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod(tstr, 0400);
data/xwpe-1.5.30a/we_fl_unix.c:3433:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod(tstr, 0600);
data/xwpe-1.5.30a/we_fl_unix.c:3496:3:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  chmod(tstr, 0600);
data/xwpe-1.5.30a/we_xterm.c:835:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
 chmod(file, 0700);
data/xwpe-1.5.30a/WeProg.h:65:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
 sprintf(filename, "./%s", SYNTAX_FILE)
data/xwpe-1.5.30a/WeProg.h:70:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
 sprintf(filename, "%s/%s/%s", getenv("HOME"), XWPE_HOME, SYNTAX_FILE)
data/xwpe-1.5.30a/WeProg.h:75:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
 sprintf(filename, "%s/%s", LIBRARY_DIR, SYNTAX_FILE)
data/xwpe-1.5.30a/WeString.c:62: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(newstr, str);
data/xwpe-1.5.30a/WeSyntax.c:118:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
 while (fscanf(syntax_file, "%s", tmp) == 1)
data/xwpe-1.5.30a/WeSyntax.c:127:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (fscanf(syntax_file, "%s", tmp) != 1)
data/xwpe-1.5.30a/WeSyntax.c:150:8:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
   if (fscanf(syntax_file, "%s", tmp) != 1)
data/xwpe-1.5.30a/WeSyntax.c:167:8:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
   if (fscanf(syntax_file, "%s", tmp) != 1)
data/xwpe-1.5.30a/WeSyntax.c:175:7:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (fscanf(syntax_file, "%s", tmp) != 1)
data/xwpe-1.5.30a/WeSyntax.c:181:7:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (fscanf(syntax_file, "%s", tmp) != 1)
data/xwpe-1.5.30a/WeSyntax.c:187:7:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (fscanf(syntax_file, "%s", tmp) != 1)
data/xwpe-1.5.30a/WeSyntax.c:193:7:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (fscanf(syntax_file, "%s", tmp) != 1)
data/xwpe-1.5.30a/WeSyntax.c:199:7:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (fscanf(syntax_file, "%s", tmp) != 1)
data/xwpe-1.5.30a/WeXterm.c:338:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(s, "%s/.Xdefaults", home_env);
data/xwpe-1.5.30a/old/we_djgpp.c:374:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(w_tmp, "%s/we_%d.111", getenv("GO32TMP"), getpid());
data/xwpe-1.5.30a/old/we_djgpp.c:381:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(e_tmp, "%s/we_%d.112", getenv("GO32TMP"), getpid());
data/xwpe-1.5.30a/old/we_djgpp.c:397:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(s_tmp, argv[0]);
data/xwpe-1.5.30a/old/we_djgpp.c:452:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(msg, "Error at Drive %c: %s", 'A'+drive, err_msg[errorno]);
data/xwpe-1.5.30a/old/we_djgpp.c:582:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(e_djenv[e_djenv_n]->var, var);
data/xwpe-1.5.30a/old/we_djgpp.c:583:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(e_djenv[e_djenv_n]->string, string);
data/xwpe-1.5.30a/we_block.c:1032: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(fd->search, strTemp);
data/xwpe-1.5.30a/we_block.c:1061: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(fd->search, o->wstr[0]->txt);
data/xwpe-1.5.30a/we_block.c:1113: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(fd->search, strTemp);
data/xwpe-1.5.30a/we_block.c:1139: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(fd->search, o->wstr[0]->txt);
data/xwpe-1.5.30a/we_block.c:1141: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(fd->replace, o->wstr[1]->txt);
data/xwpe-1.5.30a/we_debug.c:599: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(str, f->ed->wdf->name[0]);
data/xwpe-1.5.30a/we_debug.c:630: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(e_d_swtchs[y], str);              /*       ... new watch at pos y */
data/xwpe-1.5.30a/we_debug.c:649: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(str, e_d_swtchs[l - 1]);
data/xwpe-1.5.30a/we_debug.c:653: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(e_d_swtchs[l - 1], str);
data/xwpe-1.5.30a/we_debug.c:710:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(str1, "p %s\n", e_d_swtchs[l]);
data/xwpe-1.5.30a/we_debug.c:714:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(str1, "%s/\n", e_d_swtchs[l]);
data/xwpe-1.5.30a/we_debug.c:718:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(str1, "print %s\n", e_d_swtchs[l]);
data/xwpe-1.5.30a/we_debug.c:730:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(str1, e_d_msg[ERR_NOSYMBOL]);
data/xwpe-1.5.30a/we_debug.c:740:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(str, str1);
data/xwpe-1.5.30a/we_debug.c:747:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(str, str1);
data/xwpe-1.5.30a/we_debug.c:764:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
     strcpy(str, e_d_msg[ERR_NOSYMBOL]);
data/xwpe-1.5.30a/we_debug.c:780:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(str2, "%s: %s", e_d_swtchs[l], str + k);
data/xwpe-1.5.30a/we_debug.c:836: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(prj2,prj);
data/xwpe-1.5.30a/we_debug.c:855: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(e_d_swtchs[e], prj2+q); 
data/xwpe-1.5.30a/we_debug.c:997:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(tmpstr, (char *) b->bf[i].s);
data/xwpe-1.5.30a/we_debug.c:1014:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(tmpstr, (char *) b->bf[i].s);
data/xwpe-1.5.30a/we_debug.c:1029:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	 sprintf(str, "%s %d\n",
data/xwpe-1.5.30a/we_debug.c:1032:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	 sprintf(str, "%s %d\n",
data/xwpe-1.5.30a/we_debug.c:1090:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(prj2,prj);
data/xwpe-1.5.30a/we_debug.c:1125: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(e_d_sbrpts[e_d_nbrpts],name);
data/xwpe-1.5.30a/we_debug.c:1401:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf(eing, "e %s\n", e_d_sbrpts[i]);
data/xwpe-1.5.30a/we_debug.c:1443:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(e_d_sbrpts[e_d_nbrpts - 1], f->datnam);
data/xwpe-1.5.30a/we_debug.c:1449:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf(eing, "b %s:%d\n", f->datnam, b->b.y + 1);
data/xwpe-1.5.30a/we_debug.c:1461:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf(eing, "stop at \"%s\":%d\n", f->datnam, b->b.y + 1);
data/xwpe-1.5.30a/we_debug.c:1473:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf(eing, "b %s:%d\n", f->datnam, b->b.y + 1);
data/xwpe-1.5.30a/we_debug.c:1486:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf(eing, "e %s\n", f->datnam);
data/xwpe-1.5.30a/we_debug.c:1505:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(eing, "b %s:%d\n", e_d_sbrpts[i], e_d_ybrpts[i]);
data/xwpe-1.5.30a/we_debug.c:1520:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(eing, "stop at \"%s\":%d\n", e_d_sbrpts[i], e_d_ybrpts[i]);
data/xwpe-1.5.30a/we_debug.c:1535:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(eing, "b %s:%d\n", f->datnam, b->b.y + 1);
data/xwpe-1.5.30a/we_debug.c:1551:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(eing, "e %s\n", e_d_sbrpts[i]);
data/xwpe-1.5.30a/we_debug.c:1580:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(npipe[i], "%s/we_pipe%d", e_tmp_dir, i);
data/xwpe-1.5.30a/we_debug.c:1661:16:  [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.
   if (!(fpp = popen("tty", "r")))
data/xwpe-1.5.30a/we_debug.c:1683:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(file, "%s/we_sys", e_tmp_dir);
data/xwpe-1.5.30a/we_debug.c:1699:3:  [4] (shell) execlp:
  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.
  execlp(XTERM_CMD, XTERM_CMD, "+sb", "-geometry", "80x25-0-0", "-e",
data/xwpe-1.5.30a/we_debug.c:1711:4:  [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, e_p_msg[ERR_PIPEEXEC], rfildes[0]);
data/xwpe-1.5.30a/we_debug.c:1717:4:  [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, e_p_msg[ERR_PIPEEXEC], wfildes[1]);
data/xwpe-1.5.30a/we_debug.c:1723:4:  [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, e_p_msg[ERR_PIPEEXEC], efildes[1]);
data/xwpe-1.5.30a/we_debug.c:1731:4:  [4] (shell) execlp:
  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.
   execlp(e_debugger, e_debugger, prog, NULL);
data/xwpe-1.5.30a/we_debug.c:1733:4:  [4] (shell) execlp:
  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.
   execlp(e_debugger, e_debugger, e_deb_swtch, prog, NULL);
data/xwpe-1.5.30a/we_debug.c:1759:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(e_d_file, cn->f[i]->datnam);
data/xwpe-1.5.30a/we_debug.c:1762: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(e_d_file, cn->f[cn->mxedt-1]->datnam);
data/xwpe-1.5.30a/we_debug.c:1773:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(estr, "Debugger \'%s\' not in Path", e_debugger);
data/xwpe-1.5.30a/we_debug.c:1787:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(estr, e_s_prog.exe_name);
data/xwpe-1.5.30a/we_debug.c:1791:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(estr, f->datnam);
data/xwpe-1.5.30a/we_debug.c:1852:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(eing, "tty error: %s", e_d_tty);
data/xwpe-1.5.30a/we_debug.c:1860:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(eing, "run %s > %s\n", e_prog.arguments, e_d_tty);
data/xwpe-1.5.30a/we_debug.c:1862:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(eing, "run > %s\n", e_d_tty);
data/xwpe-1.5.30a/we_debug.c:1875:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(eing, "r %s > %s\n", e_prog.arguments, e_d_tty);
data/xwpe-1.5.30a/we_debug.c:1877:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(eing, "r > %s\n", e_d_tty);
data/xwpe-1.5.30a/we_debug.c:2080:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
       strcpy(e_d_file, e_d_sp[SVLINES-1]);
data/xwpe-1.5.30a/we_debug.c:2093:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
     strcpy(e_d_file, e_d_sp[SVLINES-1]);
data/xwpe-1.5.30a/we_debug.c:2154: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(e_d_file, e_d_sp[SVLINES-1]);
data/xwpe-1.5.30a/we_debug.c:2209:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
     strcpy(e_d_file, e_d_sp[i-1]+j+4);
data/xwpe-1.5.30a/we_debug.c:2211: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(e_d_file, e_d_sp[i-1]+j+4);
data/xwpe-1.5.30a/we_debug.c:2226:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(e_d_file, e_d_sp[SVLINES-1]);
data/xwpe-1.5.30a/we_debug.c:2343: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(e_d_file, file);
data/xwpe-1.5.30a/we_debug.c:2475:7:  [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(file, 0))
data/xwpe-1.5.30a/we_debug.c:2477:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
   sprintf(str, e_d_msg[ERR_CANTFILE], file);
data/xwpe-1.5.30a/we_debug.c:2596:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(tmp, str);
data/xwpe-1.5.30a/we_debug.c:2597: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(tmp, X_OK)) return(0);
data/xwpe-1.5.30a/we_e_aus.c:106: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(txt, str);
data/xwpe-1.5.30a/we_e_aus.c:281: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(tmp, s);
data/xwpe-1.5.30a/we_e_aus.c:327:17:  [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 (c > -4) strcpy(s, tmp);
data/xwpe-1.5.30a/we_e_aus.c:421: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).
   if (c != WPE_ESC) strcpy(s, tmp);
data/xwpe-1.5.30a/we_edit.c:60:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(e_prog.project, filename);
data/xwpe-1.5.30a/we_edit.c:294:20:  [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 (fp != NULL && access(complete_fname, 2) != 0) f->ins = 8;
data/xwpe-1.5.30a/we_edit.c:1952:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(*path, cur_dir);
data/xwpe-1.5.30a/we_edit.c:1953:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(*path, DIRS);
data/xwpe-1.5.30a/we_edit.c:2304: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(out, name);
data/xwpe-1.5.30a/we_edit.c:2305:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
 strcat(out, pf);
data/xwpe-1.5.30a/we_fl_fkt.c:37: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(fl, fn);
data/xwpe-1.5.30a/we_fl_fkt.c:41: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(fl, dr);
data/xwpe-1.5.30a/we_fl_fkt.c:43:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(fl, DIRS);
data/xwpe-1.5.30a/we_fl_fkt.c:44:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
 strcat(fl, fn);
data/xwpe-1.5.30a/we_fl_fkt.c:234:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
 sprintf(tmp, "rm -rf %s&", e_tmp_dir);
data/xwpe-1.5.30a/we_fl_fkt.c:235:2:  [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(tmp);
data/xwpe-1.5.30a/we_fl_fkt.c:263:33:  [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 ((backup == WPE_BACKUP) && (access(ptmp, 0) == 0))
data/xwpe-1.5.30a/we_fl_fkt.c:266:7:  [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(tmp, 0) == 0)
data/xwpe-1.5.30a/we_fl_fkt.c:326: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(sb, s);
data/xwpe-1.5.30a/we_fl_fkt.c:329: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(sb, s);
data/xwpe-1.5.30a/we_fl_fkt.c:338:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
 strcat(sb, ns);
data/xwpe-1.5.30a/we_fl_fkt.c:363: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(result, s);
data/xwpe-1.5.30a/we_fl_fkt.c:364:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(result, bak);
data/xwpe-1.5.30a/we_fl_fkt.c:548: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(tmp, path);
data/xwpe-1.5.30a/we_fl_fkt.c:554:7:  [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(tmp, 0))
data/xwpe-1.5.30a/we_fl_fkt.c:577: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(tmp2, path);
data/xwpe-1.5.30a/we_fl_fkt.c:584: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(tmp2, path);
data/xwpe-1.5.30a/we_fl_fkt.c:591: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(tmp2, path);
data/xwpe-1.5.30a/we_fl_fkt.c:598: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(tmp2, path);
data/xwpe-1.5.30a/we_fl_fkt.c:605: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(tmp2, path);
data/xwpe-1.5.30a/we_fl_fkt.c:629: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(tmp2, path);
data/xwpe-1.5.30a/we_fl_fkt.c:637: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(tmp2, path);
data/xwpe-1.5.30a/we_fl_fkt.c:639:6:  [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(tmp2, 0))
data/xwpe-1.5.30a/we_fl_fkt.c:641: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(tmp2, path);
data/xwpe-1.5.30a/we_fl_fkt.c:643:7:  [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(tmp2, 0))
data/xwpe-1.5.30a/we_fl_fkt.c:645:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(tmp2, path);
data/xwpe-1.5.30a/we_fl_fkt.c:647: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(tmp2, 0))
data/xwpe-1.5.30a/we_fl_fkt.c:649: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(tmp2, path);
data/xwpe-1.5.30a/we_fl_fkt.c:651:9:  [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(tmp2, 0))
data/xwpe-1.5.30a/we_fl_fkt.c:666: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(tmp, e_tmp_dir);
data/xwpe-1.5.30a/we_fl_fkt.c:668:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
 strcat(tmp, path);
data/xwpe-1.5.30a/we_fl_fkt.c:679:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
 sprintf(command, "gunzip < %s > %s", tmp2, tmp);
data/xwpe-1.5.30a/we_fl_fkt.c:681:2:  [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/xwpe-1.5.30a/we_fl_fkt.c:731:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(f->b->bf[f->b->mxlines-1].s, tstr);
data/xwpe-1.5.30a/we_fl_fkt.c:757: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(ud_help->str, tmp);
data/xwpe-1.5.30a/we_fl_fkt.c:758:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(f->b->bf[f->b->mxlines-1].s, tstr);
data/xwpe-1.5.30a/we_fl_fkt.c:768: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(f->b->bf[f->b->mxlines-1].s, tstr);
data/xwpe-1.5.30a/we_fl_fkt.c:791:20:  [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(next->str) strcpy(next->str, str);
data/xwpe-1.5.30a/we_fl_fkt.c:794:31:  [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(next->file) strcpy(next->file, ud_help->file);
data/xwpe-1.5.30a/we_fl_fkt.c:820:28:  [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(next->file) strcpy(next->file, str);
data/xwpe-1.5.30a/we_fl_fkt.c:968: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(swtch[sn-1], str);
data/xwpe-1.5.30a/we_fl_fkt.c:992: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(hdrs[hn-1], str);
data/xwpe-1.5.30a/we_fl_fkt.c:1001:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(str, "Switch \'%s\' has no Header!", swtch[j]);
data/xwpe-1.5.30a/we_fl_fkt.c:1011:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(str, "No Jump to Header \'%s\'!", hdrs[j]);
data/xwpe-1.5.30a/we_fl_fkt.c:1120: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(files[anz-1]->name, nfl);
data/xwpe-1.5.30a/we_fl_fkt.c:1125:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
 strcat(strcpy(fstr, "Node: "), str);
data/xwpe-1.5.30a/we_fl_fkt.c:1137:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(ptmp, files[i-1]->name);
data/xwpe-1.5.30a/we_fl_fkt.c:1148:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(ptmp, files[i-1]->name);
data/xwpe-1.5.30a/we_fl_fkt.c:1192: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(ptmp, tmp);
data/xwpe-1.5.30a/we_fl_fkt.c:1207:11:  [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).
  return (strcpy(path, file));
data/xwpe-1.5.30a/we_fl_fkt.c:1223:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
 strcpy(path + n, file);
data/xwpe-1.5.30a/we_fl_fkt.c:1234:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(strcpy(fstr, "Node: "), str);
data/xwpe-1.5.30a/we_fl_fkt.c:1273: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(f->b->bf[f->b->mxlines-1].s, tstr);
data/xwpe-1.5.30a/we_fl_fkt.c:1298: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(f->b->bf[f->b->mxlines-1].s, tstr);
data/xwpe-1.5.30a/we_fl_fkt.c:1336: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(next->str, tmp);
data/xwpe-1.5.30a/we_fl_fkt.c:1364: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(str, info_file);
data/xwpe-1.5.30a/we_fl_fkt.c:1368: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(info_file, str);
data/xwpe-1.5.30a/we_fl_unix.c:175: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(f->dirct, dirct);
data/xwpe-1.5.30a/we_fl_unix.c:180: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(f->fd.file, SUDIR);
data/xwpe-1.5.30a/we_fl_unix.c:191: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(b->rdfile, f->fd.file);               /* find file pattern */
data/xwpe-1.5.30a/we_fl_unix.c:211:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(sfile, "%s/%s", f->dirct, SUDIR);
data/xwpe-1.5.30a/we_fl_unix.c:222:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(sfile, "%s/%s", f->dirct, b->rdfile);
data/xwpe-1.5.30a/we_fl_unix.c:508: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(svdir, f->ed->dirct);
data/xwpe-1.5.30a/we_fl_unix.c:530: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(f->fd.file, b->rdfile);
data/xwpe-1.5.30a/we_fl_unix.c:553:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(f->fd.file, b->rdfile + 1 + i);
data/xwpe-1.5.30a/we_fl_unix.c:565:11:  [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(f->dirct, b->rdfile);
data/xwpe-1.5.30a/we_fl_unix.c:568:11:  [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(b->rdfile, f->fd.file);
data/xwpe-1.5.30a/we_fl_unix.c:616:11:  [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(filen, b->rdfile);   /* !!! alloc for filen ??? */
data/xwpe-1.5.30a/we_fl_unix.c:653:11:  [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(dirtmp, f->dirct);
data/xwpe-1.5.30a/we_fl_unix.c:760:11:  [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(filen, *(b->df->name + b->fw->nf));   /* !!! alloc for filen ??? */
data/xwpe-1.5.30a/we_fl_unix.c:786:15:  [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(f->dirct, f->ed->dirct);
data/xwpe-1.5.30a/we_fl_unix.c:823:11:  [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(f->ed->dirct, f->dirct);
data/xwpe-1.5.30a/we_fl_unix.c:872: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).
            strcpy(ftmp, *(b->df->name + b->fw->nf));
data/xwpe-1.5.30a/we_fl_unix.c:915: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).
            strcpy(ftmp, *(b->dd->name + t));
data/xwpe-1.5.30a/we_fl_unix.c:1025: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).
            strcpy(filen, *(b->df->name + b->fw->nf));     /* !!! alloc filen ??? */
data/xwpe-1.5.30a/we_fl_unix.c:1036:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(e_msg[ERR_EXEC], filen);
data/xwpe-1.5.30a/we_fl_unix.c:1047:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(e_msg[ERR_HITCR]);
data/xwpe-1.5.30a/we_fl_unix.c:1093:16:  [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(filen, 2) != 0)
data/xwpe-1.5.30a/we_fl_unix.c:1179:13:  [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(filen, F_OK))
data/xwpe-1.5.30a/we_fl_unix.c:1184:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(ftmp, "File %s exist\nDo you want to overwrite it ?", filen);
data/xwpe-1.5.30a/we_fl_unix.c:1316: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).
            strcpy(filen, *(b->df->name + b->fw->nf));  /* alloc for filen ??? */
data/xwpe-1.5.30a/we_fl_unix.c:1336: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).
            strcpy(ftmp, *(b->dd->name + t));
data/xwpe-1.5.30a/we_fl_unix.c:1356: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).
            strcpy(filen, *(b->df->name + b->fw->nf));
data/xwpe-1.5.30a/we_fl_unix.c:1363:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
           sprintf(ftmp, "%s%s", f->dirct + len, filen);
data/xwpe-1.5.30a/we_fl_unix.c:1368:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
           sprintf(ftmp, "%s%s", f->dirct, filen);
data/xwpe-1.5.30a/we_fl_unix.c:1583:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(dirct, "%s/new.dir", f->dirct);
data/xwpe-1.5.30a/we_fl_unix.c:1585:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(dirct, "%snew.dir", f->dirct);
data/xwpe-1.5.30a/we_fl_unix.c:1728:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(current_dir, DIRS);
data/xwpe-1.5.30a/we_fl_unix.c:1750:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(adir, DIRS);
data/xwpe-1.5.30a/we_fl_unix.c:1900: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(*(df->name + df->anz), tmp);
data/xwpe-1.5.30a/we_fl_unix.c:1934:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tmp, "%s/%s", tmp2, WASTEBASKET);
data/xwpe-1.5.30a/we_fl_unix.c:1937: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(tmp, F_OK))
data/xwpe-1.5.30a/we_fl_unix.c:1946: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(tmp, R_OK | W_OK | X_OK))
data/xwpe-1.5.30a/we_fl_unix.c:1955:6:  [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(wastebasket, F_OK | R_OK | W_OK | X_OK))
data/xwpe-1.5.30a/we_fl_unix.c:1967: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(tmp2, wastebasket);
data/xwpe-1.5.30a/we_fl_unix.c:1978:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tmp2, "%s/%s", wastebasket, file + 1 + i);
data/xwpe-1.5.30a/we_fl_unix.c:2009:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(*(edf->name + i), str);
data/xwpe-1.5.30a/we_fl_unix.c:2083:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy(str, *(cd->name + i));
data/xwpe-1.5.30a/we_fl_unix.c:2086:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(str, *(cd->name + i));
data/xwpe-1.5.30a/we_fl_unix.c:2094:11:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
          strcat(str, ctree[1]);
data/xwpe-1.5.30a/we_fl_unix.c:2096:11:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
          strcat(str, ctree[2]);
data/xwpe-1.5.30a/we_fl_unix.c:2098:11:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
          strcat(str, ctree[0]);
data/xwpe-1.5.30a/we_fl_unix.c:2099:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(str, *(cd->name + i));
data/xwpe-1.5.30a/we_fl_unix.c:2103: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(*(edf->name + i), str);
data/xwpe-1.5.30a/we_fl_unix.c:2112:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(str, ctree[4]);
data/xwpe-1.5.30a/we_fl_unix.c:2114:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(str, ctree[3]);
data/xwpe-1.5.30a/we_fl_unix.c:2117:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(str, *(dd->name + tttt));
data/xwpe-1.5.30a/we_fl_unix.c:2121: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(*(edf->name + i), str);
data/xwpe-1.5.30a/we_fl_unix.c:2242:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tmp, "%s%c%s", dirct, DIRC, file);
data/xwpe-1.5.30a/we_fl_unix.c:2269:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tmp, "Remove File:\n%s%c%s", dirct, DIRC, dd->name[i]);
data/xwpe-1.5.30a/we_fl_unix.c:2286:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(tmp, "%s%c%s", dirct, DIRC, dd->name[i]);
data/xwpe-1.5.30a/we_fl_unix.c:2326:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tmp, "%s%c%s", dirct, DIRC, SUDIR);
data/xwpe-1.5.30a/we_fl_unix.c:2354:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(tmp, "%s%c%s", dirct, DIRC, dd->name[i]);
data/xwpe-1.5.30a/we_fl_unix.c:2424:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(tmp2, "Remove File:\n%s", file);
data/xwpe-1.5.30a/we_fl_unix.c:2470:9:  [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.
  ret = access(newname, F_OK);
data/xwpe-1.5.30a/we_fl_unix.c:2501:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tmp, "%s%c%s", dirct, DIRC, SUDIR);
data/xwpe-1.5.30a/we_fl_unix.c:2514:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(tmp, "%s%c%s", dirct, DIRC, dd->name[i]);
data/xwpe-1.5.30a/we_fl_unix.c:2515:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(ntmp, "%s%c%s", newname, DIRC, dd->name[i]);
data/xwpe-1.5.30a/we_fl_unix.c:2532:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tmp, "%s%c%s", dirct, DIRC, file);
data/xwpe-1.5.30a/we_fl_unix.c:2544:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(ntmp, "%s%c%s", newname, DIRC, dd->name[i]);
data/xwpe-1.5.30a/we_fl_unix.c:2547: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(ntmp, 0) == 0)
data/xwpe-1.5.30a/we_fl_unix.c:2554:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(tmp, "File %s exist !\nOverwrite File ?", ntmp);
data/xwpe-1.5.30a/we_fl_unix.c:2593:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tmp, "%s%c%s", dirct, DIRC, dd->name[i]);
data/xwpe-1.5.30a/we_fl_unix.c:2600:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(mtmp, "%s %s", tmp, ntmp);
data/xwpe-1.5.30a/we_fl_unix.c:2691:7:  [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(newname, 0) == 0)
data/xwpe-1.5.30a/we_fl_unix.c:2705:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tmp, "File %s exist\nRemove File ?", newname);
data/xwpe-1.5.30a/we_fl_unix.c:2771:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf(tmpl, "%s%c%s", f->dirct, DIRC, tmp);
data/xwpe-1.5.30a/we_fl_unix.c:3075:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
 sprintf(str, "File: %s\nDo you want to print it?", f->datnam);
data/xwpe-1.5.30a/we_fl_unix.c:3094:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
 sprintf(str, "cd %s; %s %s", e_tmp_dir, f->ed->print_cmd, f->datnam);
data/xwpe-1.5.30a/we_fl_unix.c:3095:6:  [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.
 if (system(str))
data/xwpe-1.5.30a/we_fl_unix.c:3098:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
 sprintf(str, "%s/%s", e_tmp_dir, f->datnam);
data/xwpe-1.5.30a/we_fl_unix.c:3134:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(tmp2 + strlen(tmp2), "%c%s%c", DIRC, dirct, DIRC);
data/xwpe-1.5.30a/we_fl_unix.c:3136:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(tmp2 + strlen(tmp2), "%s%c", dirct, DIRC);
data/xwpe-1.5.30a/we_fl_unix.c:3144:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(tmp2, "%s%c", dirct, DIRC);
data/xwpe-1.5.30a/we_fl_unix.c:3146:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(tmp2, "%s", dirct);
data/xwpe-1.5.30a/we_fl_unix.c:3152:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tmp, "%s%s", tmp2, file);
data/xwpe-1.5.30a/we_fl_unix.c:3180:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(tp, "%s%s", tmp2, dd->name[i]);
data/xwpe-1.5.30a/we_fl_unix.c:3199:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(tp, "%s%s", tmp2, dd->name[i]);
data/xwpe-1.5.30a/we_fl_unix.c:3228:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tmp, "%s%c%s", dirct, DIRC, SUDIR);
data/xwpe-1.5.30a/we_fl_unix.c:3230:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tmp, "%s%s", dirct, SUDIR);
data/xwpe-1.5.30a/we_fl_unix.c:3252:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(tmp, "%s%c%s", dirct, DIRC, dd->name[i]);
data/xwpe-1.5.30a/we_fl_unix.c:3254:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(tmp, "%s%s", dirct, dd->name[i]);
data/xwpe-1.5.30a/we_fl_unix.c:3278: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(fd->search, strTemp);
data/xwpe-1.5.30a/we_fl_unix.c:3303: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(fd->search, o->wstr[0]->txt);
data/xwpe-1.5.30a/we_fl_unix.c:3305: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(fd->file, o->wstr[1]->txt);
data/xwpe-1.5.30a/we_fl_unix.c:3344: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(fd->file, o->wstr[0]->txt);
data/xwpe-1.5.30a/we_fl_unix.c:3399:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tstr, "%s/%s", e_tmp_dir, str);
data/xwpe-1.5.30a/we_fl_unix.c:3417:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(command, " man %s > \'%s\' 2> /dev/null", hstr, tstr);
data/xwpe-1.5.30a/we_fl_unix.c:3419:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(command, " man -s %s %s > \'%s\' 2> /dev/null", nstr, hstr, tstr);
data/xwpe-1.5.30a/we_fl_unix.c:3421:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(command, " man %s %s > \'%s\' 2> /dev/null", nstr, hstr, tstr);
data/xwpe-1.5.30a/we_fl_unix.c:3423: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/xwpe-1.5.30a/we_fl_unix.c:3508: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(str, f->ed->hdf->name[0]);
data/xwpe-1.5.30a/we_fl_unix.c:3548:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(sustr, "%s/man%s/*", subpath, man);
data/xwpe-1.5.30a/we_fl_unix.c:3671: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(f->dirct, nstr);
data/xwpe-1.5.30a/we_hfkt.c:165:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
 sprintf(tmp, "%s:", s);
data/xwpe-1.5.30a/we_main.c:278: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(cn->fd.file, SUDIR);
data/xwpe-1.5.30a/we_main.c:320: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(info_file, INFO_DIR);
data/xwpe-1.5.30a/we_main.c:351: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(cn->optfile, argv[i+1]);
data/xwpe-1.5.30a/we_main.c:371:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(cn->optfile, DIRS);
data/xwpe-1.5.30a/we_main.c:372:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(cn->optfile, OPTION_FILE);
data/xwpe-1.5.30a/we_mouse.c:267:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(tmp, "%s%s", cn->f[i]->dirct, b->dd->name[b->dw->nf - b->cd->anz]);
data/xwpe-1.5.30a/we_mouse.c:269:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(tmp, "%s/%s", cn->f[i]->dirct, b->dd->name[b->dw->nf - b->cd->anz]);
data/xwpe-1.5.30a/we_mouse.c:294:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(tmp, "%s%s", cn->f[i]->dirct, b->df->name[b->fw->nf]);
data/xwpe-1.5.30a/we_mouse.c:296:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(tmp, "%s/%s", cn->f[i]->dirct, b->df->name[b->fw->nf]);
data/xwpe-1.5.30a/we_opt.c:60:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
 sprintf(tmp, "          Version %s          ", VERSION);
data/xwpe-1.5.30a/we_opt.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(tmp, f->dirct);
data/xwpe-1.5.30a/we_opt.c:213:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(tmp, DIRS);
data/xwpe-1.5.30a/we_opt.c:214:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(tmp, f->datnam);
data/xwpe-1.5.30a/we_opt.c:574: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(tmp, f->ed->optfile);
data/xwpe-1.5.30a/we_opt.c:579: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(f->ed->optfile, tmp);
data/xwpe-1.5.30a/we_opt.c:1005: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(str_line, cn->optfile);
data/xwpe-1.5.30a/we_opt.c:1008:6:  [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(str_line, 0)) mkdir(str_line, 0700);
data/xwpe-1.5.30a/we_opt.c:1020: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(str_line, OPT_SECTION_COLOR);
data/xwpe-1.5.30a/we_opt.c:1038: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(str_line, OPT_SECTION_LANGUAGE);
data/xwpe-1.5.30a/we_opt.c:1043: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(str_line + strlen(OPT_SECTION_LANGUAGE) + 1, e_prog.comp[i]->language);
data/xwpe-1.5.30a/we_opt.c:1155:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
 sprintf(tmp, "%s:", head);
data/xwpe-1.5.30a/we_opt.c:1162: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(str, o->wstr[0]->txt);
data/xwpe-1.5.30a/we_opt.c:1180: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(o->tstr[o->tn-1]->txt, txt);
data/xwpe-1.5.30a/we_opt.c:1207: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(o->wstr[o->wn-1]->header, header);
data/xwpe-1.5.30a/we_opt.c:1208: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(o->wstr[o->wn-1]->txt, txt);
data/xwpe-1.5.30a/we_opt.c:1233: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(o->nstr[o->nn-1]->header, header);
data/xwpe-1.5.30a/we_opt.c:1254: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(o->sstr[o->sn-1]->header, header);
data/xwpe-1.5.30a/we_opt.c:1278: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(o->pstr[n]->ps[o->pstr[n]->np-1]->header, header);
data/xwpe-1.5.30a/we_opt.c:1320: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(o->bstr[o->bn-1]->header, header);
data/xwpe-1.5.30a/we_opt.c:1622: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).
         strcpy(tmp, o->wstr[i]->txt);
data/xwpe-1.5.30a/we_opt.c:1644:27:  [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(c != WPE_ESC) strcpy(o->wstr[i]->txt, tmp);
data/xwpe-1.5.30a/we_opt.c:1869:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
 sprintf(str, "%s/help.key", LIBRARY_DIR);
data/xwpe-1.5.30a/we_opt.c:1883: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(e_hlp_str[i], str);
data/xwpe-1.5.30a/we_prog.c:163: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(mstr, f->datnam);
data/xwpe-1.5.30a/we_prog.c:169:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(estr, "%s%s", e_prog.exedir, e_s_prog.exe_name);
data/xwpe-1.5.30a/we_prog.c:171:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(estr, "%s%c%s", e_prog.exedir, DIRC, e_s_prog.exe_name);
data/xwpe-1.5.30a/we_prog.c:176:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(estr, "%s%s.e", e_prog.exedir, mstr);
data/xwpe-1.5.30a/we_prog.c:178:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(estr, "%s%c%s.e", e_prog.exedir, DIRC, mstr);
data/xwpe-1.5.30a/we_prog.c:181:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(ostr, "%s%s.o", e_prog.exedir, mstr);
data/xwpe-1.5.30a/we_prog.c:183:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(ostr, "%s%c%s.o", e_prog.exedir, DIRC, mstr);
data/xwpe-1.5.30a/we_prog.c:250:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(estr, e_prog.exedir);
data/xwpe-1.5.30a/we_prog.c:260:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(estr, e_s_prog.exe_name);
data/xwpe-1.5.30a/we_prog.c:265:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(estr, f->datnam);
data/xwpe-1.5.30a/we_prog.c:273:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(estr, e_prog.arguments);
data/xwpe-1.5.30a/we_prog.c:284:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
 sprintf(estr, e_p_msg[ERR_RETCODE], ret);
data/xwpe-1.5.30a/we_prog.c:318:28:  [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 (e_prog.project[0] && !access(e_prog.project, 0))
data/xwpe-1.5.30a/we_prog.c:331:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(ostr, e_p_msg[ERR_S_NO_CFILE], f->datnam);
data/xwpe-1.5.30a/we_prog.c:346: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(fstr, f->datnam);
data/xwpe-1.5.30a/we_prog.c:348:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(fstr, "%s%s", f->dirct, f->datnam);
data/xwpe-1.5.30a/we_prog.c:350:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(fstr, "%s%c%s", f->dirct, DIRC, f->datnam);
data/xwpe-1.5.30a/we_prog.c:353:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(ostr, "%s%s", e_prog.exedir, f->datnam);
data/xwpe-1.5.30a/we_prog.c:355:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(ostr, "%s%c%s", e_prog.exedir, DIRC, f->datnam);
data/xwpe-1.5.30a/we_prog.c:396:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
 sprintf(tstr, "%s/we_111", e_tmp_dir);
data/xwpe-1.5.30a/we_prog.c:408: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(efile, tstr);
data/xwpe-1.5.30a/we_prog.c:409:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
 sprintf(tstr, "%s/we_112", e_tmp_dir);
data/xwpe-1.5.30a/we_prog.c:421: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(wfile, tstr);
data/xwpe-1.5.30a/we_prog.c:434:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(stderr, e_p_msg[ERR_PIPEEXEC], efildes[1]);
data/xwpe-1.5.30a/we_prog.c:440:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(stderr, e_p_msg[ERR_PIPEEXEC], wfildes[1]);
data/xwpe-1.5.30a/we_prog.c:444:2:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
 execvp(argv[0], argv);
data/xwpe-1.5.30a/we_prog.c:482:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(buff, str);
data/xwpe-1.5.30a/we_prog.c:681:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(err_li[k].text, (char *)b->bf[i].s);
data/xwpe-1.5.30a/we_prog.c:701:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(err_li[k].text, (char *)b->bf[i].s);
data/xwpe-1.5.30a/we_prog.c:715:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(file, "%s:", e_s_prog.compiler+ip);
data/xwpe-1.5.30a/we_prog.c:797: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(str, e_prog.arguments);
data/xwpe-1.5.30a/we_prog.c:801: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(e_prog.arguments, str);
data/xwpe-1.5.30a/we_prog.c:901:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
 strcat(p, str);
data/xwpe-1.5.30a/we_prog.c:915: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((*arg)[0], e_s_prog.compiler);
data/xwpe-1.5.30a/we_prog.c:922: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(tmp, str);
data/xwpe-1.5.30a/we_prog.c:950: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((*arg)[n], str);
data/xwpe-1.5.30a/we_prog.c:1133: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(library, o->wstr[4]->txt);
data/xwpe-1.5.30a/we_prog.c:1166: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(filepostfix, e_s_prog.filepostfix[0]);
data/xwpe-1.5.30a/we_prog.c:1170:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(filepostfix, e_s_prog.filepostfix[i]);
data/xwpe-1.5.30a/we_prog.c:1306: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(str, e_prog.project);
data/xwpe-1.5.30a/we_prog.c:1310: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(e_prog.project, str);
data/xwpe-1.5.30a/we_prog.c:1428:6:  [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(library, 0))
data/xwpe-1.5.30a/we_prog.c:1477:8:  [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.
 ret = system(estr);
data/xwpe-1.5.30a/we_prog.c:1480:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  printf(e_msg[ERR_HITCR]);
data/xwpe-1.5.30a/we_prog.c:1681: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(estr, f->datnam);
data/xwpe-1.5.30a/we_prog.c:1684:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(estr, e_prog.arguments);
data/xwpe-1.5.30a/we_prog.c:1858: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(p_v[p_v_n-1]->var, sp1);
data/xwpe-1.5.30a/we_prog.c:1861: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(p_v[p_v_n-1]->string, sp2);
data/xwpe-1.5.30a/we_prog.c:1872:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(p_v[p_v_n-1]->string, str);
data/xwpe-1.5.30a/we_prog.c:1893:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(text, e_msg[ERR_FOPEN], e_prog.project);
data/xwpe-1.5.30a/we_prog.c:1933:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(string, sp);
data/xwpe-1.5.30a/we_prog.c:1946:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(string, text);
data/xwpe-1.5.30a/we_prog.c:1954:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  system(string);
data/xwpe-1.5.30a/we_prog.c:2048:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(ofile, e_msg[ERR_FOPEN], e_prog.project);
data/xwpe-1.5.30a/we_prog.c:2066: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(e_arg[e_argc-j], df->name[k]);
data/xwpe-1.5.30a/we_prog.c:2069: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(arg[argc-j], df->name[k]);
data/xwpe-1.5.30a/we_prog.c:2086:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(e_arg[e_argc-j], df->name[k]);
data/xwpe-1.5.30a/we_prog.c:2089:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(arg[argc-j], df->name[k]);
data/xwpe-1.5.30a/we_prog.c:2098:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(ofile, "%s%s", e_prog.exedir,
data/xwpe-1.5.30a/we_prog.c:2101:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(ofile, "%s/%s", e_prog.exedir,
data/xwpe-1.5.30a/we_prog.c:2110: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(library, df->name[0]);
data/xwpe-1.5.30a/we_prog.c:2111:7:  [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(library, 0)) exlib = 1;
data/xwpe-1.5.30a/we_prog.c:2134:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(tmpstr, df->name[k]);
data/xwpe-1.5.30a/we_prog.c:2163:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(ofile, "%s%s ", e_prog.exedir, df->name[k]+j+1);
data/xwpe-1.5.30a/we_prog.c:2164:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  else sprintf(ofile, "%s/%s ", e_prog.exedir, df->name[k]+j+1);
data/xwpe-1.5.30a/we_prog.c:2280:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(e_arg[e_argc], df->name[k]);
data/xwpe-1.5.30a/we_prog.c:2376: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(text, e_prog.project);
data/xwpe-1.5.30a/we_prog.c:2443:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(library, p_v[i]->string);
data/xwpe-1.5.30a/we_prog.c:2459:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(e_p_df[1]->name[e_p_df[1]->anz-1], "%s=%s",
data/xwpe-1.5.30a/we_prog.c:2472: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(text, e_prog.project);
data/xwpe-1.5.30a/we_prog.c:2485:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(text, e_msg[ERR_FOPEN], e_prog.project);
data/xwpe-1.5.30a/we_prog.c:2520: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(e_p_df[2]->name[e_p_df[2]->anz-1], sp);
data/xwpe-1.5.30a/we_prog.c:2535:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(e_p_df[2]->name[e_p_df[2]->anz-1], text);
data/xwpe-1.5.30a/we_prog.c:2583: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(text, e_prog.project);
data/xwpe-1.5.30a/we_prog.c:2585:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(text, "%s/%s", f->ed->f[i]->dirct, e_prog.project);
data/xwpe-1.5.30a/we_prog.c:2588:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(text, e_msg[ERR_FOPEN], e_prog.project);
data/xwpe-1.5.30a/we_prog.c:2692: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(fw->df->name[i], str);
data/xwpe-1.5.30a/we_prog.c:2708: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(str, fw->df->name[fw->nf]);
data/xwpe-1.5.30a/we_prog.c:2727:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(fw->df->name[fw->nf], str);
data/xwpe-1.5.30a/we_prog.c:2755:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(tmp, argv[i]);
data/xwpe-1.5.30a/we_prog.c:2794:6:  [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("Messages", 0) == 0)
data/xwpe-1.5.30a/we_prog.c:2835: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(file, str+i+1);
data/xwpe-1.5.30a/we_prog.c:2838: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(cmp, str);
data/xwpe-1.5.30a/we_prog.c:2854:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(txt+1, str);
data/xwpe-1.5.30a/we_prog.c:2861:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(txt+1, str);
data/xwpe-1.5.30a/we_prog.c:3115: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(err_li[k].file, file);
data/xwpe-1.5.30a/we_prog.c:3129:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
     strcpy(err_li[k].srch+1, cmp);
data/xwpe-1.5.30a/we_prog.c:3134:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
     strcpy(err_li[k].srch, search);
data/xwpe-1.5.30a/we_prog.c:3141: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(err_li[k].text, (char *)b->bf[i].s);
data/xwpe-1.5.30a/we_progn.c:639:31:  [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 ((mode & 2) && !ep->b && !access(name, R_OK))
data/xwpe-1.5.30a/we_progn.c:650:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(str, name);
data/xwpe-1.5.30a/we_progn.c:651:9:  [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(str, R_OK))
data/xwpe-1.5.30a/we_progn.c:654: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(name, str);
data/xwpe-1.5.30a/we_progn.c:898: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(df->name[df->anz-1], str);
data/xwpe-1.5.30a/we_progn.c:943:27:  [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).
	       {  e_aclose(fp);  strcpy(file, startfile);
data/xwpe-1.5.30a/we_progn.c:982:23:  [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).
		  {  e_aclose(fp);  strcpy(file, startfile);
data/xwpe-1.5.30a/we_progn.c:997:26:  [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).
		     {  e_aclose(fp);  strcpy(file, startfile);
data/xwpe-1.5.30a/we_progn.c:1023:27:  [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).
	       {  e_aclose(fp);  strcpy(file, startfile);
data/xwpe-1.5.30a/we_progn.c:1048:23:  [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).
		  {  e_aclose(fp);  strcpy(file, startfile);
data/xwpe-1.5.30a/we_progn.c:1061:26:  [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).
		     {  e_aclose(fp);  strcpy(file, startfile);
data/xwpe-1.5.30a/we_progn.c:1098:23:  [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).
		  {  e_aclose(fp);  strcpy(file, startfile);
data/xwpe-1.5.30a/we_progn.c:1109:26:  [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).
		     {  e_aclose(fp);  strcpy(file, startfile);
data/xwpe-1.5.30a/we_progn.c:1154:7:  [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(e_prog.project, 0))
data/xwpe-1.5.30a/we_progn.c:1169: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(str, df->name[i]);
data/xwpe-1.5.30a/we_progn.c:1181: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(str, f->datnam);
data/xwpe-1.5.30a/we_progn.c:1188:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(str, "%s not found!", name);
data/xwpe-1.5.30a/we_progn.c:1195: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(*oldname, file);
data/xwpe-1.5.30a/we_progn.c:1239: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(str, f->ed->shdf->name[0]);
data/xwpe-1.5.30a/we_progn.c:1247: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(sh_df.str, str);
data/xwpe-1.5.30a/we_term.c:114:15:  [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.
 e_u_system = system;
data/xwpe-1.5.30a/we_term.c:201: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(keystr, tmp);
data/xwpe-1.5.30a/we_term.c:248:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(pt, "%s%c%s", spc_bg, spc_st[i+1], spc_nd);
data/xwpe-1.5.30a/we_unix.c:392: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(fl, dr);
data/xwpe-1.5.30a/we_unix.c:395:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(fl, DIRS);
data/xwpe-1.5.30a/we_unix.c:397:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
 strcat(fl, fn);
data/xwpe-1.5.30a/we_unix.c:422:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(cp, a);
data/xwpe-1.5.30a/we_unix.c:538:13:  [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.
   cexist = access(stmp, F_OK);
data/xwpe-1.5.30a/we_unix.c:561: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(tmpst, dp->d_name);
data/xwpe-1.5.30a/we_unix.c:642: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(tmpst, dp->d_name);
data/xwpe-1.5.30a/we_unix.c:665:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
 sprintf(str, "%c%c%c%c%c%c%c%c%c%c  %-13s  %6ld  %2.2u.%2.2u.%4.4u  %2.2u.%2.2u",
data/xwpe-1.5.30a/we_wind.c:340:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(header, f->datnam);
data/xwpe-1.5.30a/we_wind.c:345:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(header, f->dirct);
data/xwpe-1.5.30a/we_wind.c:346:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(header, f->datnam);
data/xwpe-1.5.30a/we_wind.c:739:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(text, "File %s NOT saved!\nDo you want to save File ?", f->datnam);
data/xwpe-1.5.30a/we_wind.c:1295: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(df->name[0], str);
data/xwpe-1.5.30a/we_wind.c:1303: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(df->name[0], str);
data/xwpe-1.5.30a/we_wind.c:1375:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          (strcpy)(str, (*df)->name[num]);
data/xwpe-1.5.30a/we_wind.c:1545: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).
   else strcpy(df->name[i], f->ed->f[df->anz-i]->datnam);
data/xwpe-1.5.30a/we_xterm.c:825:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
 sprintf(file, "%s/we_sys_tmp", e_tmp_dir);
data/xwpe-1.5.30a/we_xterm.c:837:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(string, "%s -geometry 80x25-0-0 +sb -e %s %s %s", XTERM_CMD,
data/xwpe-1.5.30a/we_xterm.c:840:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(string, "%s -geometry 80x25-0-0 +sb -e %s %s ./%s", XTERM_CMD,
data/xwpe-1.5.30a/we_xterm.c:842:8:  [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.
 ret = system(string);
data/xwpe-1.5.30a/WeProg.h:70:32:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
 sprintf(filename, "%s/%s/%s", getenv("HOME"), XWPE_HOME, SYNTAX_FILE)
data/xwpe-1.5.30a/WeXterm.c:332: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.
 home_env = getenv("HOME");
data/xwpe-1.5.30a/old/we_djgpp.c:374:35:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   sprintf(w_tmp, "%s/we_%d.111", getenv("GO32TMP"), getpid());
data/xwpe-1.5.30a/old/we_djgpp.c:381:35:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   sprintf(e_tmp, "%s/we_%d.112", getenv("GO32TMP"), getpid());
data/xwpe-1.5.30a/old/we_djgpp.c:550: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.
#undef getenv
data/xwpe-1.5.30a/old/we_djgpp.c:600:39:  [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(!(tp = e_getdjenv(var+i))) tp = getenv(var+i);
data/xwpe-1.5.30a/old/we_djgpp.c:638: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(!(tp = getenv("DJGPP"))) return;
data/xwpe-1.5.30a/old/we_djgpp.c:646:44:  [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(i > 0 && str[i-1] == '+' && (tp = getenv(var))) continue;
data/xwpe-1.5.30a/old/we_djgpp.c:667: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.
   if(!tp) tp = getenv(var);
data/xwpe-1.5.30a/we_debug.c:2585: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.
 char tmp[256], *path = getenv("PATH");
data/xwpe-1.5.30a/we_fl_fkt.c:354:9:  [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.
  bak = getenv("SIMPLE_BACKUP_SUFFIX");
data/xwpe-1.5.30a/we_fl_unix.c:797:24:  [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((dirtmp = getenv("HOME")) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:1143:28:  [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((dirtmp = getenv("HOME")) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:1247: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((dirtmp = getenv("HOME")) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:1412:28:  [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((dirtmp = getenv("HOME")) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:1458:28:  [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((dirtmp = getenv("HOME")) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:1497:20:  [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((dirtmp = getenv("HOME")) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:1704:27:  [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 ((dirtmp = getenv("HOME")) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:1926:16:  [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((tmp2 = getenv("HOME")) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:3529:6:  [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("MANPATH"))
data/xwpe-1.5.30a/we_fl_unix.c:3531:20:  [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.
  manpath = strdup(getenv("MANPATH"));
data/xwpe-1.5.30a/we_main.c:323:21:  [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 (!(user_shell = getenv("SHELL"))) user_shell = DEF_SHELL;
data/xwpe-1.5.30a/we_main.c:329:14:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
 e_tmp_dir = tempnam(NULL, "xwpe_");
data/xwpe-1.5.30a/we_main.c:368:31:  [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.
   cn->optfile = e_mkfilename(getenv("HOME"), XWPE_HOME);
data/xwpe-1.5.30a/we_main.c:377: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 ((tp = getenv("INFOPATH")) != NULL)
data/xwpe-1.5.30a/we_prog.c:1770:21:  [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 (!(v_string = getenv(var)))
data/xwpe-1.5.30a/we_term.c:534:19:  [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 ((tc_screen = getenv("TERM")) == NULL)
data/xwpe-1.5.30a/WeExpArr.c:55: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(((char *)*exp_array) + (*(real_array + 3)) * (*(real_array + 1)),
data/xwpe-1.5.30a/WeString.c:112:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
 return(atoi(s));
data/xwpe-1.5.30a/WeSyntax.c:86: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 tmp[128];
data/xwpe-1.5.30a/WeSyntax.c:92:21:  [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 ((syntax_file = fopen(tmp, "r")) == NULL)
data/xwpe-1.5.30a/WeSyntax.c:95:22:  [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 ((syntax_file = fopen(tmp, "r")) == NULL)
data/xwpe-1.5.30a/WeSyntax.c:121:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  i = atoi(tmp);
data/xwpe-1.5.30a/WeXterm.c:44: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 *WpeXColorNames[16] = {
data/xwpe-1.5.30a/WeXterm.c:142: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 color_name[8];
data/xwpe-1.5.30a/WeXterm.c:143: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 color_class[8];
data/xwpe-1.5.30a/WeXterm.c:148:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
 strcpy(color_name, "color");
data/xwpe-1.5.30a/WeXterm.c:149:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
 strcpy(color_class, "Color");
data/xwpe-1.5.30a/WeXterm.c:226: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 geom_str[20];
data/xwpe-1.5.30a/WeXterm.c:243:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
 sprintf(geom_str, "80x%d", (3 *
data/xwpe-1.5.30a/WeXterm.c:352: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 dash_list[2] = {  12,  24  };
data/xwpe-1.5.30a/WeXterm.c:452: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(new_atom_list, atom_list, atom_num * sizeof(Atom));
data/xwpe-1.5.30a/edit.h:91: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 search[80], replace[80];
data/xwpe-1.5.30a/edit.h:92: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 file[80];   /* filename or pattern to search/open */
data/xwpe-1.5.30a/old/we_djgpp.c:281:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char s[256];
data/xwpe-1.5.30a/old/we_djgpp.c:377:19:  [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).
   e_p_out_file = open(w_tmp, O_CREAT);
data/xwpe-1.5.30a/old/we_djgpp.c:384:19:  [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).
   e_p_err_file = open(e_tmp, O_CREAT);
data/xwpe-1.5.30a/old/we_djgpp.c:413:21:  [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((wfildes[0] = open(w_tmp, O_RDONLY)) < 0 )
data/xwpe-1.5.30a/old/we_djgpp.c:415:21:  [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((efildes[0] = open(e_tmp, O_RDONLY)) < 0 )
data/xwpe-1.5.30a/old/we_djgpp.c:445:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char msg[200];
data/xwpe-1.5.30a/old/we_djgpp.c:635:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char *tp, var[128], string[256], str[256], tmp[128];
data/xwpe-1.5.30a/old/we_djgpp.c:639: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(tp, "r"))) return;
data/xwpe-1.5.30a/tools/compiletest.c:5: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 line[1024];
data/xwpe-1.5.30a/tools/compiletest.c:16: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 *f = fopen(argv[i], "r");
data/xwpe-1.5.30a/unixmakr.h:39: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.
extern char *ctree[5];
data/xwpe-1.5.30a/we_block.c:1018: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 strTemp[80];
data/xwpe-1.5.30a/we_block.c:1099: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 strTemp[80];
data/xwpe-1.5.30a/we_block.c:1199:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(strTemp, "Found %d\nReplaced %d", found, rep);
data/xwpe-1.5.30a/we_debug.c:51: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 e_d_file[128], **e_d_sbrpts;
data/xwpe-1.5.30a/we_debug.c:54: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 e_d_out_str[SVLINES][256];
data/xwpe-1.5.30a/we_debug.c:55: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 *e_d_sp[SVLINES];
data/xwpe-1.5.30a/we_debug.c:56: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 e_d_tty[80];
data/xwpe-1.5.30a/we_debug.c:73: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 *npipe[5] = {  NULL, NULL, NULL, NULL, NULL  };
data/xwpe-1.5.30a/we_debug.c:339: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 str[256];
data/xwpe-1.5.30a/we_debug.c:355: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 str[512];
data/xwpe-1.5.30a/we_debug.c:588: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 str[128];
data/xwpe-1.5.30a/we_debug.c:640: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 str[128];
data/xwpe-1.5.30a/we_debug.c:670: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 str1[256], *str; /* is 256 always large enough? */
data/xwpe-1.5.30a/we_debug.c:877: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 str[256];
data/xwpe-1.5.30a/we_debug.c:983:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char file[128], str[128], *tmpstr = MALLOC(1);
data/xwpe-1.5.30a/we_debug.c:991:37:  [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(b->bf[i].s[0] == '#') dif = atoi((char *) (b->bf[i].s + 1));
data/xwpe-1.5.30a/we_debug.c:1119:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         line=atoi(p);
data/xwpe-1.5.30a/we_debug.c:1253: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 eing[128], str[256];
data/xwpe-1.5.30a/we_debug.c:1259: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 (e_deb_type == 0) sprintf(eing, "d %d\n", e_d_nrbrpts[sw-1]);
data/xwpe-1.5.30a/we_debug.c:1261: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(eing, "delete %d\n", e_d_nrbrpts[sw-1]);
data/xwpe-1.5.30a/we_debug.c:1263: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(eing, "db %d\n", e_d_nrbrpts[sw-1]);
data/xwpe-1.5.30a/we_debug.c:1266: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(eing, "e main\n");
data/xwpe-1.5.30a/we_debug.c:1269: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(eing, "%d d\n", e_d_ybrpts[sw-1]);
data/xwpe-1.5.30a/we_debug.c:1312: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(eing, "b main\n");
data/xwpe-1.5.30a/we_debug.c:1319:35:  [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).
    e_d_nrbrpts[e_d_nbrpts - 1] = atoi(str+11);
data/xwpe-1.5.30a/we_debug.c:1324: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(eing, "stop in main\n");
data/xwpe-1.5.30a/we_debug.c:1331:35:  [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).
    e_d_nrbrpts[e_d_nbrpts - 1] = atoi(str+1);
data/xwpe-1.5.30a/we_debug.c:1336: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(eing, "b main\n");
data/xwpe-1.5.30a/we_debug.c:1344:35:  [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).
    e_d_nrbrpts[e_d_nbrpts - 1] = atoi(str+1);
data/xwpe-1.5.30a/we_debug.c:1349: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(eing, "e main\n");
data/xwpe-1.5.30a/we_debug.c:1352: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(eing, "b\n");
data/xwpe-1.5.30a/we_debug.c:1362:36:  [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).
      e_d_ybrpts[e_d_nbrpts - 1] = atoi(str+i+1);
data/xwpe-1.5.30a/we_debug.c:1377: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 eing[128], str[256];
data/xwpe-1.5.30a/we_debug.c:1394:26:  [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 (e_deb_type == 0) sprintf(eing, "d %d\n", e_d_nrbrpts[i]);
data/xwpe-1.5.30a/we_debug.c:1396:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf(eing, "delete %d\n", e_d_nrbrpts[i]);
data/xwpe-1.5.30a/we_debug.c:1398:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf(eing, "db %d\n", e_d_nrbrpts[i]);
data/xwpe-1.5.30a/we_debug.c:1404:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf(eing, "%d d\n", e_d_ybrpts[i]);
data/xwpe-1.5.30a/we_debug.c:1456:36:  [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).
     e_d_nrbrpts[e_d_nbrpts - 1] = atoi(str+11);
data/xwpe-1.5.30a/we_debug.c:1468:36:  [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).
     e_d_nrbrpts[e_d_nbrpts - 1] = atoi(str+1);
data/xwpe-1.5.30a/we_debug.c:1481:36:  [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).
     e_d_nrbrpts[e_d_nbrpts - 1] = atoi(str+1);
data/xwpe-1.5.30a/we_debug.c:1489:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf(eing, "%d b\n", b->b.y + 1);
data/xwpe-1.5.30a/we_debug.c:1512:35:  [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).
    e_d_nrbrpts[e_d_nbrpts - 1] = atoi(str+11);
data/xwpe-1.5.30a/we_debug.c:1527:35:  [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).
    e_d_nrbrpts[e_d_nbrpts - 1] = atoi(str+1);
data/xwpe-1.5.30a/we_debug.c:1543:35:  [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).
    e_d_nrbrpts[e_d_nbrpts - 1] = atoi(str+1);
data/xwpe-1.5.30a/we_debug.c:1554: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(eing, "%d b\n", e_d_ybrpts[i]);
data/xwpe-1.5.30a/we_debug.c:1616:22:  [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 ((wfildes[0] = open(npipe[1], O_RDONLY)) < 0)
data/xwpe-1.5.30a/we_debug.c:1628:22:  [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 ((rfildes[0] = open(e_d_tty, O_RDONLY)) < 0 ||
data/xwpe-1.5.30a/we_debug.c:1629:20:  [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).
     (wfildes[1] = open(e_d_tty, O_WRONLY)) < 0)
data/xwpe-1.5.30a/we_debug.c:1634:22:  [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 ((rfildes[1] = open(npipe[0], O_WRONLY)) < 0 ||
data/xwpe-1.5.30a/we_debug.c:1635:20:  [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).
     (wfildes[0] = open(npipe[1], O_RDONLY)) < 0 ||
data/xwpe-1.5.30a/we_debug.c:1636:20:  [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).
     (efildes[0] = open(npipe[2], O_RDONLY)) < 0)
data/xwpe-1.5.30a/we_debug.c:1681: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 file[128];
data/xwpe-1.5.30a/we_debug.c:1684: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).
  fp = fopen(file, "w+");
data/xwpe-1.5.30a/we_debug.c:1743: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 estr[128];
data/xwpe-1.5.30a/we_debug.c:1793:4:  [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(estr, ".e");
data/xwpe-1.5.30a/we_debug.c:1838: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 eing[256];
data/xwpe-1.5.30a/we_debug.c:1866:4:  [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(eing, "cont\n");
data/xwpe-1.5.30a/we_debug.c:1881:4:  [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(eing, "c\n");
data/xwpe-1.5.30a/we_debug.c:1960: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 str[128];
data/xwpe-1.5.30a/we_debug.c:1984:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(str,"until %d\n",b->b.y+1);
data/xwpe-1.5.30a/we_debug.c:1987:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(str,"finish\n");
data/xwpe-1.5.30a/we_debug.c:2067:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
     if ((ret = atoi(e_d_sp[j])) > 0)
data/xwpe-1.5.30a/we_debug.c:2077:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
     if (k >= 0 && atoi(e_d_sp[j-1]+k+1) == ret)
data/xwpe-1.5.30a/we_debug.c:2107:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if ((ret = atoi(e_d_sp[j]+k)) > 0)
data/xwpe-1.5.30a/we_debug.c:2140:29:  [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 (!e_deb_type && (ret = atoi(e_d_sp[i])) > 0)
data/xwpe-1.5.30a/we_debug.c:2150: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).
    if (k >= 0 && atoi(e_d_sp[i-1]+k+1) == ret)
data/xwpe-1.5.30a/we_debug.c:2189:38:  [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).
  else if (e_deb_type == 1 && (ret = atoi(e_d_sp[i])) > 0)
data/xwpe-1.5.30a/we_debug.c:2239: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 str[256];
data/xwpe-1.5.30a/we_debug.c:2287: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 file[128], str2[256];
data/xwpe-1.5.30a/we_debug.c:2367: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).
  return(atoi(str+n+1));
data/xwpe-1.5.30a/we_debug.c:2373:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  if (!(num = atoi(sp+6)))
data/xwpe-1.5.30a/we_debug.c:2401: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).
  return(atoi(sp));
data/xwpe-1.5.30a/we_debug.c:2407:27:  [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 ((!str[i]) || (num = atoi(str+i+1)) < 0)
data/xwpe-1.5.30a/we_debug.c:2439:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
 return(atoi(sp+i));
data/xwpe-1.5.30a/we_debug.c:2449: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 str[120];
data/xwpe-1.5.30a/we_debug.c:2585: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 tmp[256], *path = getenv("PATH");
data/xwpe-1.5.30a/we_e_aus.c:102: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 txt[30], *pt;
data/xwpe-1.5.30a/we_e_aus.c:112: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(txt, "ESC X Cl.");
data/xwpe-1.5.30a/we_edit.c:293: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).
  fp = fopen(complete_fname, "rb");
data/xwpe-1.5.30a/we_edit.c:321:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(f->datnam, "Messages");
data/xwpe-1.5.30a/we_edit.c:1884: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 str[20];
data/xwpe-1.5.30a/we_edit.c:1888:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
 sprintf(str,"%5d:%-4d", f->b->b.y + 1, f->b->cl + 1);
data/xwpe-1.5.30a/we_fl_fkt.c:214: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 tmp[128];
data/xwpe-1.5.30a/we_fl_fkt.c:271:12:  [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(ptmp, "wb")) == NULL)
data/xwpe-1.5.30a/we_fl_fkt.c:391:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char sustr[18];
data/xwpe-1.5.30a/we_fl_fkt.c:578:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
 strcat(tmp2, ".info");
data/xwpe-1.5.30a/we_fl_fkt.c:585:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
 strcat(tmp2, ".gz");
data/xwpe-1.5.30a/we_fl_fkt.c:592:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
 strcat(tmp2, ".Z");
data/xwpe-1.5.30a/we_fl_fkt.c:599:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
 strcat(tmp2, ".info.gz");
data/xwpe-1.5.30a/we_fl_fkt.c:606:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
 strcat(tmp2, ".info.Z");
data/xwpe-1.5.30a/we_fl_fkt.c:623:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
 if ((fp->fp = fopen(path, stat))) {  fp->sw = 0;  return(fp);  }
data/xwpe-1.5.30a/we_fl_fkt.c:630:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
 strcat(tmp2, ".info");
data/xwpe-1.5.30a/we_fl_fkt.c:631:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
 if ((fp->fp = fopen(tmp2, stat))) 
data/xwpe-1.5.30a/we_fl_fkt.c:638:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
 strcat(tmp2, ".gz");
data/xwpe-1.5.30a/we_fl_fkt.c:642:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(tmp2, ".Z");
data/xwpe-1.5.30a/we_fl_fkt.c:646:4:  [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(tmp2, ".info.gz");
data/xwpe-1.5.30a/we_fl_fkt.c:650: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(tmp2, ".info.Z");
data/xwpe-1.5.30a/we_fl_fkt.c:669:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
 if ((fp->fp = fopen(tmp, stat)))
data/xwpe-1.5.30a/we_fl_fkt.c:683:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
 fp->fp = fopen(tmp, stat);
data/xwpe-1.5.30a/we_fl_fkt.c:704: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 *ptmp, tstr[256];
data/xwpe-1.5.30a/we_fl_fkt.c:780: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 str[126];
data/xwpe-1.5.30a/we_fl_fkt.c:818:20:  [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.
	    if(next->str) strcpy(next->str, "Top");
data/xwpe-1.5.30a/we_fl_fkt.c:945: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 str[256];
data/xwpe-1.5.30a/we_fl_fkt.c:1107: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 *ptmp, *fstr, tstr[256], nfl[128];
data/xwpe-1.5.30a/we_fl_fkt.c:1121: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).
  files[anz-1]->line = atoi(tstr+i+1);
data/xwpe-1.5.30a/we_fl_fkt.c:1125: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.
 strcat(strcpy(fstr, "Node: "), str);
data/xwpe-1.5.30a/we_fl_fkt.c:1131:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  n = atoi(tstr+i+1);
data/xwpe-1.5.30a/we_fl_fkt.c:1173: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 *ptmp, tmp[128];
data/xwpe-1.5.30a/we_fl_fkt.c:1234:11:  [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.
   strcat(strcpy(fstr, "Node: "), str);
data/xwpe-1.5.30a/we_fl_fkt.c:1357: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 str[128];
data/xwpe-1.5.30a/we_fl_fkt.c:1455: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 item[100], *ptr=item;
data/xwpe-1.5.30a/we_fl_unix.c:484: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            filen[128], *ftmp, *dtp = NULL, *ftp = NULL, *svdir = NULL;
data/xwpe-1.5.30a/we_fl_unix.c:1087:22:  [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(filen, "rb")) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:1534:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char            str[256];
data/xwpe-1.5.30a/we_fl_unix.c:1537:12:  [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(file, "r")) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:1852:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy(*(df->name), "Wastebasket");
data/xwpe-1.5.30a/we_fl_unix.c:1985: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          **name, **ename, *stmp, str[256];
data/xwpe-1.5.30a/we_fl_unix.c:2061: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.
  extern char    *ctree[5];
data/xwpe-1.5.30a/we_fl_unix.c:2063:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char            str[256];
data/xwpe-1.5.30a/we_fl_unix.c:2081:11:  [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(str, "Root");
data/xwpe-1.5.30a/we_fl_unix.c:2092:11:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
          strcat(str, "  ");
data/xwpe-1.5.30a/we_fl_unix.c:2109: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.
        strcat(str, "  ");
data/xwpe-1.5.30a/we_fl_unix.c:2801:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if((fpo = fopen(oldfile, "rb")) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2806:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if((fpn = fopen(newfile, "wb")) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:3271: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            strTemp[80];
data/xwpe-1.5.30a/we_fl_unix.c:3380:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char            command[256], tstr[_POSIX_PATH_MAX];
data/xwpe-1.5.30a/we_fl_unix.c:3381: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            cc, hstr[80], nstr[10];
data/xwpe-1.5.30a/we_fl_unix.c:3505: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            str[80];
data/xwpe-1.5.30a/we_fl_unix.c:3941: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            nstr[2];
data/xwpe-1.5.30a/we_main.c:332:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
 sprintf(e_tmp_dir, "/tmp/we_%u", (unsigned) getpid());
data/xwpe-1.5.30a/we_main.c:360:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *f = fopen(OPTION_FILE, "r");
data/xwpe-1.5.30a/we_mouse.c:251: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            tmp[256];
data/xwpe-1.5.30a/we_mouse.c:541: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(&fa, &f->a, sizeof(POINT));
data/xwpe-1.5.30a/we_mouse.c:542: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(&fe, &f->e, sizeof(POINT));
data/xwpe-1.5.30a/we_opt.c:24:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *e_hlp_str[E_HLP_NUM];
data/xwpe-1.5.30a/we_opt.c:50: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 tmp[40];
data/xwpe-1.5.30a/we_opt.c:198: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 tmp[80];
data/xwpe-1.5.30a/we_opt.c:572: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 tmp[256];
data/xwpe-1.5.30a/we_opt.c:635:14:  [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).
  cn->dtmd = atoi(value);
data/xwpe-1.5.30a/we_opt.c:637:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  cn->autosv = atoi(value);
data/xwpe-1.5.30a/we_opt.c:639:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  cn->maxcol = atoi(value);
data/xwpe-1.5.30a/we_opt.c:641:14:  [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).
  cn->tabn = atoi(value);
data/xwpe-1.5.30a/we_opt.c:643:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  cn->maxchg = atoi(value);
data/xwpe-1.5.30a/we_opt.c:645:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  cn->numundo = atoi(value);
data/xwpe-1.5.30a/we_opt.c:647:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  cn->flopt = atoi(value);
data/xwpe-1.5.30a/we_opt.c:649:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  cn->edopt = atoi(value);
data/xwpe-1.5.30a/we_opt.c:653:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  cn->autoindent = atoi(value);
data/xwpe-1.5.30a/we_opt.c:781: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).
  fb->dc = atoi(value);
data/xwpe-1.5.30a/we_opt.c:783: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).
  fb->ws = atoi(value);
data/xwpe-1.5.30a/we_opt.c:880:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  e_deb_type = atoi(value);
data/xwpe-1.5.30a/we_opt.c:963:29:  [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).
  e_prog.comp[i]->comp_sw = atoi(value);
data/xwpe-1.5.30a/we_opt.c:965: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).
  e_prog.comp[i]->x = atoi(value);
data/xwpe-1.5.30a/we_opt.c:1010:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
 fp = fopen(cn->optfile, "w");
data/xwpe-1.5.30a/we_opt.c:1023:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(str_line, "/Term");
data/xwpe-1.5.30a/we_opt.c:1029: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(str_line + strlen(OPT_SECTION_COLOR), "/X11");
data/xwpe-1.5.30a/we_opt.c:1063:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
 fp = fopen(cn->optfile, "r");
data/xwpe-1.5.30a/we_opt.c:1067: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).
  fp = fopen(file, "r");
data/xwpe-1.5.30a/we_opt.c:1866: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 str[128];
data/xwpe-1.5.30a/we_opt.c:1875:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
 if (!(fp = fopen(str, "rb")))
data/xwpe-1.5.30a/we_prog.c:39: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 library[80];
data/xwpe-1.5.30a/we_prog.c:142: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 ostr[128], estr[128], mstr[80];
data/xwpe-1.5.30a/we_prog.c:162: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(e_arg[1], "-o");
data/xwpe-1.5.30a/we_prog.c:232: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 estr[256];
data/xwpe-1.5.30a/we_prog.c:267:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(estr, ".e");
data/xwpe-1.5.30a/we_prog.c:270:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(estr, "a.out");
data/xwpe-1.5.30a/we_prog.c:343:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
 strcpy(arg[1], "-c");
data/xwpe-1.5.30a/we_prog.c:357:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
 strcat(ostr, ".o");
data/xwpe-1.5.30a/we_prog.c:390: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 tstr[128];
data/xwpe-1.5.30a/we_prog.c:402:19:  [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((efildes[0] = open(tstr, O_RDONLY)) < 0 )
data/xwpe-1.5.30a/we_prog.c:415:19:  [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((wfildes[0] = open(tstr, O_RDONLY)) < 0 )
data/xwpe-1.5.30a/we_prog.c:468: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 str[128];
data/xwpe-1.5.30a/we_prog.c:643: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 file[256];
data/xwpe-1.5.30a/we_prog.c:676: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).
   err_li[k].line = atoi((char *)b->bf[i].s+9);
data/xwpe-1.5.30a/we_prog.c:691: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).
    (err_li[k].line = atoi(spt+14)) > 0 )
data/xwpe-1.5.30a/we_prog.c:790: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 str[80];
data/xwpe-1.5.30a/we_prog.c:831: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 *p, str[120], str2[120];
data/xwpe-1.5.30a/we_prog.c:845:12:  [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(file, "r")) == NULL)
data/xwpe-1.5.30a/we_prog.c:908: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 tmp[128], *p = tmp;
data/xwpe-1.5.30a/we_prog.c:1147: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 filepostfix[128];
data/xwpe-1.5.30a/we_prog.c:1222: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 tmp[80];
data/xwpe-1.5.30a/we_prog.c:1299: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 str[80];
data/xwpe-1.5.30a/we_prog.c:1423: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 *ar_arg[5] = {  NULL, NULL, NULL, NULL, NULL  };
data/xwpe-1.5.30a/we_prog.c:1644:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
 strcpy(e_s_prog.compiler, "make");
data/xwpe-1.5.30a/we_prog.c:1672: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 estr[128];
data/xwpe-1.5.30a/we_prog.c:1814: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 str[256], *sp1, *sp2, *stmp;
data/xwpe-1.5.30a/we_prog.c:1817:12:  [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(e_prog.project, "r")) == NULL) return(-1);
data/xwpe-1.5.30a/we_prog.c:1885: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 *tp, *sp, *string, *tmp, text[256];
data/xwpe-1.5.30a/we_prog.c:1891:12:  [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(e_prog.project, "r")) == NULL)
data/xwpe-1.5.30a/we_prog.c:2022: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 ofile[128];
data/xwpe-1.5.30a/we_prog.c:2075:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
 strcpy(arg[1], "-c");
data/xwpe-1.5.30a/we_prog.c:2077:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
 strcpy(e_arg[1], "-o");
data/xwpe-1.5.30a/we_prog.c:2248: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 *ar_arg[3];
data/xwpe-1.5.30a/we_prog.c:2352: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 **tmp, *sp, *tp, text[256];
data/xwpe-1.5.30a/we_prog.c:2483:12:  [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(e_prog.project, "r")) == NULL)
data/xwpe-1.5.30a/we_prog.c:2577: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 text[256];
data/xwpe-1.5.30a/we_prog.c:2586:12:  [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(text, "w")) == NULL)
data/xwpe-1.5.30a/we_prog.c:2843:8:  [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).
  *y = atoi(str);
data/xwpe-1.5.30a/we_prog.c:2845: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).
   *y += atoi(var+5);
data/xwpe-1.5.30a/we_prog.c:2847: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).
   *y -= atoi(var+5);
data/xwpe-1.5.30a/we_prog.c:2883:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   *x = atoi(str);
data/xwpe-1.5.30a/we_prog.c:2888: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).
   *x += atoi(var+1);
data/xwpe-1.5.30a/we_prog.c:2890: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).
   *x -= atoi(var+1);
data/xwpe-1.5.30a/we_prog.c:3038: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 *cp, cmp[128], file[128], search[80], tmp[4][128], **wtxt = NULL;
data/xwpe-1.5.30a/we_prog.c:3057: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).
     wn[wnum-1] = atoi(srch+j+1);
data/xwpe-1.5.30a/we_progn.c:624: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 str[256];
data/xwpe-1.5.30a/we_progn.c:640:12:  [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).
  ep->fp = fopen(name, "r");
data/xwpe-1.5.30a/we_progn.c:652: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).
    ep->fp = fopen(str, "r");
data/xwpe-1.5.30a/we_progn.c:1150: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 str[128], file[128], *filename;
data/xwpe-1.5.30a/we_progn.c:1236: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 str[80];
data/xwpe-1.5.30a/we_term.c:52: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 *key_f[KEYFN], *key_key;
data/xwpe-1.5.30a/we_term.c:66: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 *sp_chr[NSPCHR];
data/xwpe-1.5.30a/we_term.c:72: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 area[315];
data/xwpe-1.5.30a/we_term.c:74: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 tcbuf[1024];
data/xwpe-1.5.30a/we_term.c:879: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 e_key_save[10];
data/xwpe-1.5.30a/we_unix.c:83: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 *ctree[5];
data/xwpe-1.5.30a/we_unix.c:362:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
     strcat(f->datnam, ".ESV");
data/xwpe-1.5.30a/we_wind.c:675: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 text[256];
data/xwpe-1.5.30a/we_wind.c:1219: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 rhm[2][6];
data/xwpe-1.5.30a/we_wind.c:1247:4:  [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(short_name + xe - xa - 17, "...");
data/xwpe-1.5.30a/we_wind.c:1431: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(s[num-1], "...");
data/xwpe-1.5.30a/we_xterm.c:377:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char stringbuf[STRBUFSIZE];
data/xwpe-1.5.30a/we_xterm.c:466:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 unsigned char buffer[BUFSIZE];
data/xwpe-1.5.30a/we_xterm.c:529:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 unsigned char buffer[BUFSIZE];
data/xwpe-1.5.30a/we_xterm.c:750:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 unsigned char buffer[BUFSIZE];
data/xwpe-1.5.30a/we_xterm.c:822: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 file[80];
data/xwpe-1.5.30a/we_xterm.c:828:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
 if (!(fp = fopen(file, "w+")))
data/xwpe-1.5.30a/WeString.c:43: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).
 const int len = strlen(substr);
data/xwpe-1.5.30a/WeString.c:59: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).
 newstr = WpeMalloc((strlen(str)+1)*sizeof(char));
data/xwpe-1.5.30a/WeXterm.c:337: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).
  s = malloc(strlen(home_env) + 12);
data/xwpe-1.5.30a/edit.h:546: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).
#define e_str_nrc(s) strlen(s)
data/xwpe-1.5.30a/edit.h:663:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
int e_schr_lst_wsv(char *str, int xa, int ya, int n, int strlen, int ft,
data/xwpe-1.5.30a/old/we_djgpp.c:392: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).
   {  write(e_p_err_file, argv[i], strlen(argv[i]));
data/xwpe-1.5.30a/old/we_djgpp.c:396:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   s_tmp = MALLOC((strlen(argv[0])+1)*sizeof(char));
data/xwpe-1.5.30a/old/we_djgpp.c:579:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   e_djenv[e_djenv_n]->var = MALLOC((strlen(var)+1) * sizeof(char));
data/xwpe-1.5.30a/old/we_djgpp.c:580: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).
   e_djenv[e_djenv_n]->string = MALLOC((strlen(string)+1) * sizeof(char));
data/xwpe-1.5.30a/old/we_djgpp.c:651:55:  [1] (buffer) strlen:
  Does not handle 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(e_getdj_var(tmp, string+j, 256-j)) j = strlen(string) - 1;
data/xwpe-1.5.30a/unixmakr.h:21:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define getc(fp) fgetc((fp))
data/xwpe-1.5.30a/unixmakr.h:21:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define getc(fp) fgetc((fp))
data/xwpe-1.5.30a/unixmakr.h:29:20:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define fk_getch() fgetc(stdin)
data/xwpe-1.5.30a/we_block.c:84:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
 strncpy(dup, &b->bf[s->mark_begin.y].s[s->mark_begin.x], i);
data/xwpe-1.5.30a/we_block.c:1033: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).
  fd->sn = strlen(fd->search);
data/xwpe-1.5.30a/we_block.c:1062: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).
  fd->sn = strlen(fd->search);
data/xwpe-1.5.30a/we_block.c:1114: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).
  fd->sn = strlen(fd->search);
data/xwpe-1.5.30a/we_block.c:1140: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).
  fd->sn = strlen(fd->search);
data/xwpe-1.5.30a/we_block.c:1142: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).
  fd->rn = strlen(fd->replace);
data/xwpe-1.5.30a/we_debug.c:255:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = read(n, s + i, 1);
data/xwpe-1.5.30a/we_debug.c:287:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ((ret = read(n, s + i, 1)) <= 0 && i == 0 && wt >= sw)
data/xwpe-1.5.30a/we_debug.c:408:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
 if (c || (i = read(fd, &c, 1)) == 1)
data/xwpe-1.5.30a/we_debug.c:629: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).
  e_d_swtchs[y] = MALLOC(strlen(str) + 1); /* insert...                    */
data/xwpe-1.5.30a/we_debug.c:652: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).
  e_d_swtchs[l - 1] = REALLOC(e_d_swtchs[l - 1], strlen(str) + 1);
data/xwpe-1.5.30a/we_debug.c:724: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).
   write(rfildes[1], str1, strlen(str1));
data/xwpe-1.5.30a/we_debug.c:739: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).
   str = MALLOC(strlen(str1) + 1);
data/xwpe-1.5.30a/we_debug.c:745: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).
    str = REALLOC(str, (k = strlen(str)) + strlen(str1) + 1);
data/xwpe-1.5.30a/we_debug.c:745:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    str = REALLOC(str, (k = strlen(str)) + strlen(str1) + 1);
data/xwpe-1.5.30a/we_debug.c:779:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  str2 = WpeMalloc(strlen(e_d_swtchs[l]) + strlen(str + k) + 4);
data/xwpe-1.5.30a/we_debug.c:779:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  str2 = WpeMalloc(strlen(e_d_swtchs[l]) + strlen(str + k) + 4);
data/xwpe-1.5.30a/we_debug.c:834:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 g=strlen(prj);
data/xwpe-1.5.30a/we_debug.c:854: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).
  e_d_swtchs[e] = MALLOC(strlen(prj2+q)+1);
data/xwpe-1.5.30a/we_debug.c:856: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).
  q+=strlen(prj2+q)+1;
data/xwpe-1.5.30a/we_debug.c:995: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).
	 {  if(!(tmpstr = REALLOC(tmpstr, strlen(tmpstr) + b->bf[i].len + 2)))
data/xwpe-1.5.30a/we_debug.c:999: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).
	    else if(tmpstr[strlen(tmpstr)-2] == '\\')
data/xwpe-1.5.30a/we_debug.c:1000:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	       tmpstr[strlen(tmpstr)-2] = '\0';
data/xwpe-1.5.30a/we_debug.c:1001: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).
	    else if(tmpstr[strlen(tmpstr)-1] == '\n')
data/xwpe-1.5.30a/we_debug.c:1002: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).
	       tmpstr[strlen(tmpstr)-1] = '\0';
data/xwpe-1.5.30a/we_debug.c:1012: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).
	 {  if(!(tmpstr = REALLOC(tmpstr, strlen(tmpstr) + b->bf[i].len + 2)))
data/xwpe-1.5.30a/we_debug.c:1017: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).
	    else if(tmpstr[strlen(tmpstr)-2] == '\\')
data/xwpe-1.5.30a/we_debug.c:1018: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).
	       tmpstr[strlen(tmpstr)-2] = '\0';
data/xwpe-1.5.30a/we_debug.c:1019: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).
	    else if(tmpstr[strlen(tmpstr)-1] == '\n')
data/xwpe-1.5.30a/we_debug.c:1020: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).
	       tmpstr[strlen(tmpstr)-1] = '\0';
data/xwpe-1.5.30a/we_debug.c:1035: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).
      {  write(rfildes[1], str, strlen(str));
data/xwpe-1.5.30a/we_debug.c:1088: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).
   g=strlen(prj);
data/xwpe-1.5.30a/we_debug.c:1113: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).
     e=strlen(name);
data/xwpe-1.5.30a/we_debug.c:1124: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).
	   e_d_sbrpts[e_d_nbrpts]=MALLOC(sizeof(char)*(strlen(name)+1));
data/xwpe-1.5.30a/we_debug.c:1267: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).
    write(rfildes[1], eing, strlen(eing));
data/xwpe-1.5.30a/we_debug.c:1271: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).
   write(rfildes[1], eing, strlen(eing));
data/xwpe-1.5.30a/we_debug.c:1313: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).
    write(rfildes[1], eing, strlen(eing));
data/xwpe-1.5.30a/we_debug.c:1325: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).
    write(rfildes[1], eing, strlen(eing));
data/xwpe-1.5.30a/we_debug.c:1337: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).
    write(rfildes[1], eing, strlen(eing));
data/xwpe-1.5.30a/we_debug.c:1350: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).
    write(rfildes[1], eing, strlen(eing));
data/xwpe-1.5.30a/we_debug.c:1353: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).
    write(rfildes[1], eing, strlen(eing));
data/xwpe-1.5.30a/we_debug.c:1402: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).
     write(rfildes[1], eing, strlen(eing));
data/xwpe-1.5.30a/we_debug.c:1406: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).
    write(rfildes[1], eing, strlen(eing));
data/xwpe-1.5.30a/we_debug.c:1442:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   e_d_sbrpts[e_d_nbrpts - 1] = MALLOC(strlen(f->datnam) + 1);
data/xwpe-1.5.30a/we_debug.c:1450: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).
     write(rfildes[1], eing, strlen(eing));
data/xwpe-1.5.30a/we_debug.c:1462: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).
     write(rfildes[1], eing, strlen(eing));
data/xwpe-1.5.30a/we_debug.c:1474: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).
     write(rfildes[1], eing, strlen(eing));
data/xwpe-1.5.30a/we_debug.c:1487: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).
     write(rfildes[1], eing, strlen(eing));
data/xwpe-1.5.30a/we_debug.c:1490: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).
     write(rfildes[1], eing, strlen(eing));
data/xwpe-1.5.30a/we_debug.c:1506: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).
    write(rfildes[1], eing, strlen(eing));
data/xwpe-1.5.30a/we_debug.c:1521: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).
    write(rfildes[1], eing, strlen(eing));
data/xwpe-1.5.30a/we_debug.c:1536: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).
    write(rfildes[1], eing, strlen(eing));
data/xwpe-1.5.30a/we_debug.c:1552: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).
    write(rfildes[1], eing, strlen(eing));
data/xwpe-1.5.30a/we_debug.c:1555: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).
    write(rfildes[1], eing, strlen(eing));
data/xwpe-1.5.30a/we_debug.c:1622:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
     i < 80 && read(wfildes[0], &e_d_tty[i], 1) == 1 && e_d_tty[i] != '\0' &&
data/xwpe-1.5.30a/we_debug.c:1889: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).
 write(rfildes[1], eing, strlen(eing));
data/xwpe-1.5.30a/we_debug.c:1893: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).
    !eing[0] || (!e_deb_type && prsw && ((len = (strlen(eing)-12)) < 0 ||
data/xwpe-1.5.30a/we_debug.c:1996: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).
  write(rfildes[1], str, strlen(str));
data/xwpe-1.5.30a/we_debug.c:2022:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (e_deb_type == 3 && !strncmp(e_d_sp[i], e_d_msg[ERR_NORMALTERM], strlen(e_d_msg[ERR_NORMALTERM])))))
data/xwpe-1.5.30a/we_debug.c:2039:74:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  else if (e_deb_type == 3 && !strncmp(e_d_sp[i], e_d_msg[ERR_SOFTTERM], strlen(e_d_msg[ERR_SOFTTERM])))
data/xwpe-1.5.30a/we_debug.c:2075: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 (k = strlen(e_d_sp[j-1]); k >= 0 && e_d_sp[j-1][k] != ':'; k--)
data/xwpe-1.5.30a/we_debug.c:2111: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 (k = strlen(e_d_sp[j-1]); k >= 0 && e_d_sp[j-1][k] != '\"'; k--)
data/xwpe-1.5.30a/we_debug.c:2148: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 (k = strlen(e_d_sp[i-1]); k >= 0 && e_d_sp[i-1][k] != ':'; k--)
data/xwpe-1.5.30a/we_debug.c:2160:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      {  i--;  k = strlen(e_d_sp[i]);  }
data/xwpe-1.5.30a/we_debug.c:2174:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      {  i--;  k = strlen(e_d_sp[i]);  }
data/xwpe-1.5.30a/we_debug.c:2177: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).
     {  i--;  k = strlen(e_d_sp[i]);  }
data/xwpe-1.5.30a/we_debug.c:2193: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 (j = strlen(e_d_sp[i-1])-1; j >= 0 && isspace(e_d_sp[i-1][j]); j--)
data/xwpe-1.5.30a/we_debug.c:2212: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 (k = strlen(e_d_file)-1; k >= 0 && isspace(e_d_file[k]); k--)
data/xwpe-1.5.30a/we_debug.c:2358: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).
  for (n = strlen(str); n >= 0 && str[n] != ':'; n--)
data/xwpe-1.5.30a/we_debug.c:2514: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).
 if (s[(len = strlen(s) - 1)] == '\n')
data/xwpe-1.5.30a/we_e_aus.c:120: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).
 int i, len = strlen(s);
data/xwpe-1.5.30a/we_e_aus.c:275: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).
 int c, i, ja = 0, jc, l = strlen(s);
data/xwpe-1.5.30a/we_edit.c:40: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(filename);
data/xwpe-1.5.30a/we_edit.c:303:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  umask(i = umask(077));
data/xwpe-1.5.30a/we_edit.c:303:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  umask(i = umask(077));
data/xwpe-1.5.30a/we_edit.c:1852: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).
 int len = strlen(s);
data/xwpe-1.5.30a/we_edit.c:1866: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).
 int len = strlen(s);
data/xwpe-1.5.30a/we_edit.c:1934: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).
   len = strlen(cur_dir);
data/xwpe-1.5.30a/we_edit.c:1951: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).
   *path = WpeMalloc((strlen(cur_dir) + len + 2) * sizeof(char));
data/xwpe-1.5.30a/we_edit.c:1954:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
   strncat(*path, filename, len);
data/xwpe-1.5.30a/we_edit.c:1955: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 ((*path)[strlen(cur_dir) + len] != DIRC)
data/xwpe-1.5.30a/we_edit.c:1957: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).
    (*path)[strlen(cur_dir) + len + 1] = 0;
data/xwpe-1.5.30a/we_edit.c:1961: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).
    (*path)[strlen(cur_dir) + len] = DIRC;
data/xwpe-1.5.30a/we_edit.c:1962: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).
    (*path)[strlen(cur_dir) + len + 1] = 0;
data/xwpe-1.5.30a/we_edit.c:1970:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(*path, filename, len);
data/xwpe-1.5.30a/we_edit.c:2047:55:  [1] (buffer) strlen:
  Does not handle 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 (((maxname = pathconf(f->dirct, _PC_NAME_MAX)) >= strlen(f->datnam) + 4) &&
data/xwpe-1.5.30a/we_edit.c:2050: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).
  str = MALLOC(strlen(f->datnam) + 5);
data/xwpe-1.5.30a/we_fl_fkt.c:36: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).
  fl = MALLOC(strlen(fn) + 1);
data/xwpe-1.5.30a/we_fl_fkt.c:40: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).
 fl = MALLOC(strlen(dr) + strlen(fn) + 2);
data/xwpe-1.5.30a/we_fl_fkt.c:40: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).
 fl = MALLOC(strlen(dr) + strlen(fn) + 2);
data/xwpe-1.5.30a/we_fl_fkt.c:42: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).
 if (dr[0] != '\0' && dr[strlen(dr)-1] != DIRC)
data/xwpe-1.5.30a/we_fl_fkt.c:323: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).
 for (i = strlen(s); i >= 0 && s[i] != '.' && s[i] != DIRC; i--)
data/xwpe-1.5.30a/we_fl_fkt.c:337:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
 strcat(sb, ".");
data/xwpe-1.5.30a/we_fl_fkt.c:358: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).
 result = WpeMalloc(strlen(s) + strlen(bak) + 5);
data/xwpe-1.5.30a/we_fl_fkt.c:358: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).
 result = WpeMalloc(strlen(s) + strlen(bak) + 5);
data/xwpe-1.5.30a/we_fl_fkt.c:394:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(*(fw->df->name+fw->nf));
data/xwpe-1.5.30a/we_fl_fkt.c:461:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len=strlen(*(fw->df->name+fw->nf));
data/xwpe-1.5.30a/we_fl_fkt.c:480: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).
   if ((len=strlen(*(fw->df->name+i))) < 0)
data/xwpe-1.5.30a/we_fl_fkt.c:544: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).
 char *tmp = MALLOC(((len=strlen(path))+1)*sizeof(char));
data/xwpe-1.5.30a/we_fl_fkt.c:572: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).
 if (!(tmp2 = MALLOC((strlen(path)+11)*sizeof(char))))
data/xwpe-1.5.30a/we_fl_fkt.c:624: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).
 if (!(tmp2 = MALLOC((strlen(path)+11)*sizeof(char)))) 
data/xwpe-1.5.30a/we_fl_fkt.c:660:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 if (!(tmp = MALLOC((strlen(path)+(len=strlen(e_tmp_dir))+2)*sizeof(char)))) 
data/xwpe-1.5.30a/we_fl_fkt.c:660:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 if (!(tmp = MALLOC((strlen(path)+(len=strlen(e_tmp_dir))+2)*sizeof(char)))) 
data/xwpe-1.5.30a/we_fl_fkt.c:676:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 command = MALLOC((strlen(tmp) + strlen(tmp2) + 14) * sizeof(char));
data/xwpe-1.5.30a/we_fl_fkt.c:676: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).
 command = MALLOC((strlen(tmp) + strlen(tmp2) + 14) * sizeof(char));
data/xwpe-1.5.30a/we_fl_fkt.c:756: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).
   if ((ud_help->str = MALLOC((strlen(tmp)+1)*sizeof(char))) != NULL)
data/xwpe-1.5.30a/we_fl_fkt.c:790: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).
	 {  next->str = MALLOC((strlen(str)+1) * sizeof(char));
data/xwpe-1.5.30a/we_fl_fkt.c:793:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            {  next->file = MALLOC((strlen(ud_help->file)+1) * sizeof(char));
data/xwpe-1.5.30a/we_fl_fkt.c:819: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).
            next->file = MALLOC((strlen(str)+1) * sizeof(char));
data/xwpe-1.5.30a/we_fl_fkt.c:967: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).
    swtch[sn-1] = MALLOC((strlen(str) + 1) + sizeof(char));
data/xwpe-1.5.30a/we_fl_fkt.c:991: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).
    hdrs[hn-1] = MALLOC((strlen(str) + 1) + sizeof(char));
data/xwpe-1.5.30a/we_fl_fkt.c:1045: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).
 int i, bg, nd, len = strlen(str);
data/xwpe-1.5.30a/we_fl_fkt.c:1119: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).
  files[anz-1]->name = MALLOC((strlen(nfl)+1)*sizeof(char));
data/xwpe-1.5.30a/we_fl_fkt.c:1123: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(str) + 6);
data/xwpe-1.5.30a/we_fl_fkt.c:1126: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).
 if (fstr[n = strlen(fstr)-1] == HED) {  fstr[n] = '\0';  i--;  }
data/xwpe-1.5.30a/we_fl_fkt.c:1136: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).
   ptmp = MALLOC((strlen(files[i-1]->name)+1)*sizeof(char));
data/xwpe-1.5.30a/we_fl_fkt.c:1141: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 (n = strlen(*path)-1; n >= 0 && *(*path+n) != DIRC; n--)
data/xwpe-1.5.30a/we_fl_fkt.c:1144: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).
   ptmp = MALLOC((strlen(files[i-1]->name)+n+1)*sizeof(char));
data/xwpe-1.5.30a/we_fl_fkt.c:1191: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).
 ptmp = MALLOC((strlen(tmp)+1)*sizeof(char));
data/xwpe-1.5.30a/we_fl_fkt.c:1206: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).
  if (!(path = MALLOC((strlen(file) + 1) * sizeof(char)))) return(NULL);
data/xwpe-1.5.30a/we_fl_fkt.c:1212:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  n = strlen(path) - strlen(file);
data/xwpe-1.5.30a/we_fl_fkt.c:1212: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).
  n = strlen(path) - strlen(file);
data/xwpe-1.5.30a/we_fl_fkt.c:1220: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).
 if (!(path = MALLOC((strlen(file) + n + 2) * sizeof(char)))) return(NULL);
data/xwpe-1.5.30a/we_fl_fkt.c:1221:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
 strncpy(path, tp, n);
data/xwpe-1.5.30a/we_fl_fkt.c:1235: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).
   len = strlen(fstr);
data/xwpe-1.5.30a/we_fl_fkt.c:1271: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).
      for(i = len = strlen(tstr); i >= 0; i--) tstr[i+1] = tstr[i];
data/xwpe-1.5.30a/we_fl_fkt.c:1334: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).
   next->str = MALLOC((strlen(tmp)+1) * sizeof(char));
data/xwpe-1.5.30a/we_fl_fkt.c:1367: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).
  info_file = REALLOC(info_file, strlen(str) + 1);
data/xwpe-1.5.30a/we_fl_unix.c:171: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).
    allocate_size = strlen(dirct);
data/xwpe-1.5.30a/we_fl_unix.c:178: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(f->fd.search, "");
data/xwpe-1.5.30a/we_fl_unix.c:179: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(f->fd.replace, "");
data/xwpe-1.5.30a/we_fl_unix.c:204:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if((sfile = MALLOC(strlen(f->dirct)+strlen(b->rdfile)+2)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:204:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if((sfile = MALLOC(strlen(f->dirct)+strlen(b->rdfile)+2)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:506: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).
    if((svdir = MALLOC(strlen(f->ed->dirct) + 1)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:551:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        for(i = strlen(b->rdfile); i >= 0 && b->rdfile[i] != DIRC; i--)
data/xwpe-1.5.30a/we_fl_unix.c:563: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((f->dirct = MALLOC(strlen(b->rdfile) + 1)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:647: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).
        if (strlen(f->dirct) >= WPE_PATHMAX)
data/xwpe-1.5.30a/we_fl_unix.c:649:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy(dirtmp, f->dirct, WPE_PATHMAX - 1);
data/xwpe-1.5.30a/we_fl_unix.c:783:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if((f->dirct = REALLOC(f->dirct, strlen(f->ed->dirct) + 1)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:820: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).
        if((f->ed->dirct = REALLOC(f->ed->dirct, strlen(f->dirct) + 1)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:866: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(strlen(*(b->df->name + b->fw->nf)) > 128)
data/xwpe-1.5.30a/we_fl_unix.c:868:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(ftmp, *(b->df->name + b->fw->nf), 128);
data/xwpe-1.5.30a/we_fl_unix.c:909: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(strlen(*(b->dd->name + t)) > 128)
data/xwpe-1.5.30a/we_fl_unix.c:911:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(ftmp, *(b->dd->name + t), 128);
data/xwpe-1.5.30a/we_fl_unix.c:1181: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).
          if((ftmp = MALLOC(strlen(filen) + 42)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:1333: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).
            if((ftmp = MALLOC(strlen(*(b->dd->name + t)) + 1)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:1358: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).
          ftmp = MALLOC(strlen(f->dirct) + strlen(filen) + 2);
data/xwpe-1.5.30a/we_fl_unix.c:1358:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          ftmp = MALLOC(strlen(f->dirct) + strlen(filen) + 2);
data/xwpe-1.5.30a/we_fl_unix.c:1359: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).
          len = strlen(dirtmp);
data/xwpe-1.5.30a/we_fl_unix.c:1540: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).
  nn = strlen(string);
data/xwpe-1.5.30a/we_fl_unix.c:1546: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).
        ret = e_strstr(0, strlen(str), str, string);
data/xwpe-1.5.30a/we_fl_unix.c:1548: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).
        ret = e_ustrstr(0, strlen(str), str, string);
data/xwpe-1.5.30a/we_fl_unix.c:1553: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).
        ret = e_rstrstr(0, strlen(str), str, string, &nn);
data/xwpe-1.5.30a/we_fl_unix.c:1555: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).
        ret = e_urstrstr(0, strlen(str), str, string, &nn);
data/xwpe-1.5.30a/we_fl_unix.c:1576:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  umask(msk = umask(077));
data/xwpe-1.5.30a/we_fl_unix.c:1576:15:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  umask(msk = umask(077));
data/xwpe-1.5.30a/we_fl_unix.c:1579:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if((dirct = MALLOC(strlen(f->dirct) + 9)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:1582: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).
  if(f->dirct[strlen(f->dirct) - 1] != DIRC)
data/xwpe-1.5.30a/we_fl_unix.c:1727:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (current_dir[strlen(current_dir) - 1] != DIRC)
data/xwpe-1.5.30a/we_fl_unix.c:1746: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).
      totall = strlen(adir) + 16;
data/xwpe-1.5.30a/we_fl_unix.c:1751: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).
      i = strlen(adir);
data/xwpe-1.5.30a/we_fl_unix.c:1824: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(buf);
data/xwpe-1.5.30a/we_fl_unix.c:1846: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).
      i = strlen(tmp2);
data/xwpe-1.5.30a/we_fl_unix.c:1898: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).
      if((*(df->name + df->anz) = MALLOC((strlen(tmp) + 1) * sizeof(char))) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:1929: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).
    lw = strlen(tmp2) + 1 + strlen(WASTEBASKET) + 1;
data/xwpe-1.5.30a/we_fl_unix.c:1929: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).
    lw = strlen(tmp2) + 1 + strlen(WASTEBASKET) + 1;
data/xwpe-1.5.30a/we_fl_unix.c:1965: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).
    if((tmp2 = MALLOC(strlen(wastebasket)+1)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:1973: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).
  for(i = strlen(file) - 1; i >= 0 && file[i] != DIRC; i--)
data/xwpe-1.5.30a/we_fl_unix.c:1975: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).
  if((tmp2 = MALLOC(strlen(wastebasket) + strlen(file + 1 + i) + 2)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:1975: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).
  if((tmp2 = MALLOC(strlen(wastebasket) + strlen(file + 1 + i) + 2)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2007: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).
   if ((*(edf->name + i) = MALLOC(strlen(str) + 1)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2101:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if((*(edf->name + i) = MALLOC((strlen(str) + 1) * sizeof(char))) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2110:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat(str, " ");
data/xwpe-1.5.30a/we_fl_unix.c:2119:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if((*(edf->name + i) = MALLOC((strlen(str) + 1) * sizeof(char))) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2220: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).
      i = strlen(tmp);
data/xwpe-1.5.30a/we_fl_unix.c:2238:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if((tmp = MALLOC(strlen(dirct) + strlen(file)+2)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2238: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).
  if((tmp = MALLOC(strlen(dirct) + strlen(file)+2)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2266:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if((tmp = MALLOC(strlen(dirct) + strlen(dd->name[i])+15)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2266:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if((tmp = MALLOC(strlen(dirct) + strlen(dd->name[i])+15)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2322:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if((tmp = MALLOC(strlen(dirct) + strlen(SUDIR)+2)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2322:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if((tmp = MALLOC(strlen(dirct) + strlen(SUDIR)+2)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2351: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).
      if((tmp = MALLOC(strlen(dirct) + strlen(dd->name[i])+2)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2351:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if((tmp = MALLOC(strlen(dirct) + strlen(dd->name[i])+2)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2403: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).
        ret = strlen(tmp2);
data/xwpe-1.5.30a/we_fl_unix.c:2421:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if((tmp2 = MALLOC(strlen(file) + 14)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2498:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if((tmp = MALLOC(strlen(dirct) + 2 + strlen(SUDIR))) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2498:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if((tmp = MALLOC(strlen(dirct) + 2 + strlen(SUDIR))) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2508: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).
      if((tmp = MALLOC(strlen(dirct) + 2 + strlen(dd->name[i]))) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2508:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if((tmp = MALLOC(strlen(dirct) + 2 + strlen(dd->name[i]))) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2511: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).
      if((ntmp = MALLOC(strlen(newname) + 2 + strlen(dd->name[i]))) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2511:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if((ntmp = MALLOC(strlen(newname) + 2 + strlen(dd->name[i]))) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2530:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if((tmp = MALLOC(strlen(dirct) + 2 + strlen(file))) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2530:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if((tmp = MALLOC(strlen(dirct) + 2 + strlen(file))) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2541: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).
    if((ntmp = MALLOC(strlen(newname) + 2 + strlen(dd->name[i]))) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2541:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if((ntmp = MALLOC(strlen(newname) + 2 + strlen(dd->name[i]))) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2551: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).
        if((tmp = MALLOC(strlen(ntmp) + 31)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2590:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if((tmp = MALLOC(strlen(dirct) + 2 + strlen(dd->name[i]))) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2590:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if((tmp = MALLOC(strlen(dirct) + 2 + strlen(dd->name[i]))) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2597: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).
      if((mtmp = MALLOC(strlen(tmp) + 2 + strlen(ntmp))) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2597: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).
      if((mtmp = MALLOC(strlen(tmp) + 2 + strlen(ntmp))) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2703: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).
    if ((tmp = MALLOC(strlen(newname) + 26)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2768: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).
     if ((tmpl = MALLOC(strlen(f->dirct) + 2 + strlen(tmp))) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:2768:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     if ((tmpl = MALLOC(strlen(f->dirct) + 2 + strlen(tmp))) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:3072:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 if ((str = MALLOC(strlen(f->datnam) + 32 )) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:3090:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 if ((str = MALLOC(strlen(e_tmp_dir) + 7 +
data/xwpe-1.5.30a/we_fl_unix.c:3091:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   strlen(f->ed->print_cmd) + strlen(f->datnam) )) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:3091:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   strlen(f->ed->print_cmd) + strlen(f->datnam) )) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:3128: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).
    tmp = REALLOC(tmp2, strlen(tmp2) + strlen(dirct) + 4);
data/xwpe-1.5.30a/we_fl_unix.c:3128:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    tmp = REALLOC(tmp2, strlen(tmp2) + strlen(dirct) + 4);
data/xwpe-1.5.30a/we_fl_unix.c:3133: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).
    if(tmp2[strlen(tmp2) - 1] != DIRC)
data/xwpe-1.5.30a/we_fl_unix.c:3134: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).
      sprintf(tmp2 + strlen(tmp2), "%c%s%c", DIRC, dirct, DIRC);
data/xwpe-1.5.30a/we_fl_unix.c:3136: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).
      sprintf(tmp2 + strlen(tmp2), "%s%c", dirct, DIRC);
data/xwpe-1.5.30a/we_fl_unix.c:3140: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).
    if((tmp2 = MALLOC(strlen(dirct) + 2)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:3143: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(dirct[strlen(dirct) - 1] != DIRC)
data/xwpe-1.5.30a/we_fl_unix.c:3150:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if((tmp = MALLOC(strlen(tmp2) + strlen(file) + 2)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:3150: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).
  if((tmp = MALLOC(strlen(tmp2) + strlen(file) + 2)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:3177: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).
        if((tp = MALLOC(strlen(tmp2) + strlen(dd->name[i]) + 2)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:3177:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if((tp = MALLOC(strlen(tmp2) + strlen(dd->name[i]) + 2)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:3196: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).
        if((tp = MALLOC(strlen(tmp2) + strlen(dd->name[i]) + 2)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:3196:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if((tp = MALLOC(strlen(tmp2) + strlen(dd->name[i]) + 2)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:3224:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if((tmp = MALLOC(strlen(dirct) + strlen(SUDIR) + 2)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:3224: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).
  if((tmp = MALLOC(strlen(dirct) + strlen(SUDIR) + 2)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:3227: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).
  if(dirct[strlen(dirct) - 1] != DIRC)
data/xwpe-1.5.30a/we_fl_unix.c:3243:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if((tmp = MALLOC(strlen(dirct) + strlen(dd->name[i]) + 3)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:3243:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if((tmp = MALLOC(strlen(dirct) + strlen(dd->name[i]) + 3)) == NULL)
data/xwpe-1.5.30a/we_fl_unix.c:3251: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(dirct[strlen(dirct) - 1] != DIRC)
data/xwpe-1.5.30a/we_fl_unix.c:3279: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).
    fd->sn = strlen(fd->search);
data/xwpe-1.5.30a/we_fl_unix.c:3304: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).
    fd->sn = strlen(fd->search);
data/xwpe-1.5.30a/we_fl_unix.c:3440:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    e_ins_nchar(f->b, f->s, hstr, b->b.x, b->b.y, strlen(hstr));
data/xwpe-1.5.30a/we_fl_unix.c:3538: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).
 sustr = malloc(strlen(manpath) + 10);
data/xwpe-1.5.30a/we_fl_unix.c:3557: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).
   k = strlen(df->name[j]) - 1;
data/xwpe-1.5.30a/we_fl_unix.c:3576: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 (k = strlen(df->name[j]) - 1; k >= 0 && *(df->name[j] + k) != '.'; k--)
data/xwpe-1.5.30a/we_fl_unix.c:3581: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 = strlen(df->name[j]) + 2) * sizeof(char));
data/xwpe-1.5.30a/we_fl_unix.c:3670: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).
    f->dirct = MALLOC(strlen(nstr) + 1);
data/xwpe-1.5.30a/we_hfkt.c:13: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).
 int i, j, nf = strlen(f);
data/xwpe-1.5.30a/we_hfkt.c:43: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).
 int i, j, nf = strlen(f);
data/xwpe-1.5.30a/we_hfkt.c:75: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).
 unsigned char *ft = MALLOC((strlen(f)+1)*sizeof(unsigned char));
data/xwpe-1.5.30a/we_hfkt.c:133: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).
 start=strlen(s);
data/xwpe-1.5.30a/we_hfkt.c:156: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).
 char *tmp = MALLOC((strlen(s)+2) * sizeof(char));
data/xwpe-1.5.30a/we_main.c:276: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(cn->fd.search, "");
data/xwpe-1.5.30a/we_main.c:277: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(cn->fd.replace, "");
data/xwpe-1.5.30a/we_main.c:319: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).
 info_file = MALLOC((strlen(INFO_DIR)+1)*sizeof(char));
data/xwpe-1.5.30a/we_main.c:333: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).
 e_tmp_dir = REALLOC(e_tmp_dir, (strlen(e_tmp_dir)+1)*sizeof(char));
data/xwpe-1.5.30a/we_main.c:350: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).
    cn->optfile = MALLOC((strlen(argv[i+1])+1)*sizeof(char));
data/xwpe-1.5.30a/we_main.c:370: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).
     strlen(cn->optfile) + strlen(OPTION_FILE) + 2);
data/xwpe-1.5.30a/we_main.c:370: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).
     strlen(cn->optfile) + strlen(OPTION_FILE) + 2);
data/xwpe-1.5.30a/we_mouse.c:266: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).
    if(cn->f[i]->dirct[strlen(cn->f[i]->dirct) - 1] == DIRC)
data/xwpe-1.5.30a/we_mouse.c:293: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).
    if(cn->f[i]->dirct[strlen(cn->f[i]->dirct) - 1] == DIRC)
data/xwpe-1.5.30a/we_mouse.c:354: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(*(fw->df->name+fw->nf)),	fw->ja);
data/xwpe-1.5.30a/we_opt.c:578:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  f->ed->optfile = REALLOC(f->ed->optfile, (strlen(tmp)+1)*sizeof(char));
data/xwpe-1.5.30a/we_opt.c:591: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(str);
data/xwpe-1.5.30a/we_opt.c:593: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).
 for (i = strlen(str), cur_ans = answer, cur_str = str; i; i--, cur_str++)
data/xwpe-1.5.30a/we_opt.c:616: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).
 answer = WpeMalloc((strlen(value) + 1) * sizeof(char));
data/xwpe-1.5.30a/we_opt.c:617: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).
 for (i = strlen(value), cur_ans = answer, cur_val = value; i; i--, cur_ans++)
data/xwpe-1.5.30a/we_opt.c:686: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).
 if (WpeStrccmp("Term", section + strlen(OPT_SECTION_COLOR) + 1) == 0)
data/xwpe-1.5.30a/we_opt.c:695:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 if (WpeStrccmp("X11", section + strlen(OPT_SECTION_COLOR) + 1) == 0)
data/xwpe-1.5.30a/we_opt.c:823: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).
 if (WpeStrccmp("Term", section + strlen(OPT_SECTION_COLOR) + 1) == 0)
data/xwpe-1.5.30a/we_opt.c:825:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 if (WpeStrccmp("X11", section + strlen(OPT_SECTION_COLOR) + 1) == 0)
data/xwpe-1.5.30a/we_opt.c:900:72:  [1] (buffer) strlen:
  Does not handle 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 < e_prog.num) && (WpeStrccmp(e_prog.comp[i]->language, section + strlen(OPT_SECTION_LANGUAGE) + 1) != 0);
data/xwpe-1.5.30a/we_opt.c:908: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).
  e_prog.comp[i]->language = WpeStrdup(section + strlen(OPT_SECTION_LANGUAGE) + 1);
data/xwpe-1.5.30a/we_opt.c:975:72:  [1] (buffer) strlen:
  Does not handle 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 < e_prog.num) && (WpeStrccmp(e_prog.comp[i]->language, section + strlen(OPT_SECTION_LANGUAGE) + 1) != 0);
data/xwpe-1.5.30a/we_opt.c:1004: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).
 str_line = MALLOC((strlen(cn->optfile)+1)*sizeof(char));
data/xwpe-1.5.30a/we_opt.c:1006: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).
 for (i = strlen(str_line); i > 0 && str_line[i] != DIRC; i--);
data/xwpe-1.5.30a/we_opt.c:1019:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 str_line = MALLOC(strlen(OPT_SECTION_COLOR) + 10);
data/xwpe-1.5.30a/we_opt.c:1029: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).
  strcpy(str_line + strlen(OPT_SECTION_COLOR), "/X11");
data/xwpe-1.5.30a/we_opt.c:1037:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 str_line = MALLOC(strlen(OPT_SECTION_LANGUAGE) + 2);
data/xwpe-1.5.30a/we_opt.c:1039:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
 strcat(str_line, "/");
data/xwpe-1.5.30a/we_opt.c:1042:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  str_line = REALLOC(str_line, strlen(OPT_SECTION_LANGUAGE) + strlen(e_prog.comp[i]->language) + 2);
data/xwpe-1.5.30a/we_opt.c:1042:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  str_line = REALLOC(str_line, strlen(OPT_SECTION_LANGUAGE) + strlen(e_prog.comp[i]->language) + 2);
data/xwpe-1.5.30a/we_opt.c:1043: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).
  strcpy(str_line + strlen(OPT_SECTION_LANGUAGE) + 1, e_prog.comp[i]->language);
data/xwpe-1.5.30a/we_opt.c:1084:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ((str_line[0] == 0) || (str_line[strlen(str_line) - 1] != '\n')))
data/xwpe-1.5.30a/we_opt.c:1090: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(str_line);
data/xwpe-1.5.30a/we_opt.c:1127:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        (strncmp(WpeSectionRead[i].section, section, strlen(WpeSectionRead[i].section)) != 0);
data/xwpe-1.5.30a/we_opt.c:1146: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).
 char *tmp = MALLOC((strlen(head)+2) * sizeof(char));
data/xwpe-1.5.30a/we_opt.c:1176:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 if (!(o->tstr[o->tn-1]->txt = MALLOC((strlen(txt)+1) * sizeof(char))))
data/xwpe-1.5.30a/we_opt.c:1196: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).
 if (!(o->wstr[o->wn-1]->header = MALLOC((strlen(header)+1) * sizeof(char))))
data/xwpe-1.5.30a/we_opt.c:1222: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).
 if (!(o->nstr[o->nn-1]->header = MALLOC((strlen(header)+1) * sizeof(char))))
data/xwpe-1.5.30a/we_opt.c:1247: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).
 if (!(o->sstr[o->sn-1]->header = MALLOC((strlen(header)+1) * sizeof(char))))
data/xwpe-1.5.30a/we_opt.c:1272:59:  [1] (buffer) strlen:
  Does not handle 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 (!(o->pstr[n]->ps[o->pstr[n]->np-1]->header = MALLOC((strlen(header)+1) * sizeof(char))))
data/xwpe-1.5.30a/we_opt.c:1313: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).
 if (!(o->bstr[o->bn-1]->header = MALLOC((strlen(header)+1) * sizeof(char))))
data/xwpe-1.5.30a/we_opt.c:1509: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).
         c ? xmin : strlen(o->bstr[i]->header), ymin, c))
data/xwpe-1.5.30a/we_opt.c:1879:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(str);
data/xwpe-1.5.30a/we_prog.c:165:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(e_prog.exedir) - 1;
data/xwpe-1.5.30a/we_prog.c:251:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(estr) - 1;
data/xwpe-1.5.30a/we_prog.c:271:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
 strcat(estr, " ");
data/xwpe-1.5.30a/we_prog.c:344: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(f->dirct) - 1;
data/xwpe-1.5.30a/we_prog.c:352:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 if (e_prog.exedir[strlen(e_prog.exedir)-1] == DIRC)
data/xwpe-1.5.30a/we_prog.c:407: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).
 efile = MALLOC((strlen(tstr)+1)*sizeof(char));
data/xwpe-1.5.30a/we_prog.c:420: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).
 wfile = MALLOC((strlen(tstr)+1)*sizeof(char));
data/xwpe-1.5.30a/we_prog.c:481: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).
   buff=REALLOC(buff, strlen(buff) + strlen(str) + 1);
data/xwpe-1.5.30a/we_prog.c:481:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   buff=REALLOC(buff, strlen(buff) + strlen(str) + 1);
data/xwpe-1.5.30a/we_prog.c:680: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).
   err_li[k].text = MALLOC(strlen((char *)b->bf[i].s) + 1);
data/xwpe-1.5.30a/we_prog.c:700: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).
   err_li[k].text = MALLOC(strlen((char *)b->bf[i].s) + 1);
data/xwpe-1.5.30a/we_prog.c:716:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strncmp(file, b->bf[i].s+in, strlen(file)))
data/xwpe-1.5.30a/we_prog.c:778:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if ((ret = read(n, s + i, 1)) != 1 || s[i] == '\n'|| s[i] == '\0')
data/xwpe-1.5.30a/we_prog.c:800:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  e_prog.arguments = REALLOC(e_prog.arguments, strlen(str) + 1);
data/xwpe-1.5.30a/we_prog.c:895: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((p = MALLOC(strlen(str)+2)) == NULL) return(NULL);
data/xwpe-1.5.30a/we_prog.c:898: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).
 else if ((p = REALLOC(p, strlen(p) + strlen(str)+2)) == NULL)
data/xwpe-1.5.30a/we_prog.c:898:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 else if ((p = REALLOC(p, strlen(p) + strlen(str)+2)) == NULL)
data/xwpe-1.5.30a/we_prog.c:900:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
 strcat(p, " ");
data/xwpe-1.5.30a/we_prog.c:914: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).
 (*arg)[0] = MALLOC(strlen(e_s_prog.compiler) + 1);
data/xwpe-1.5.30a/we_prog.c:928:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy((*arg)[j], p, i);
data/xwpe-1.5.30a/we_prog.c:949: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).
 (*arg)[n] = MALLOC(strlen(str) + 1);
data/xwpe-1.5.30a/we_prog.c:1169:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
   strcat(filepostfix, " ");
data/xwpe-1.5.30a/we_prog.c:1205:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(newpostfix, o->wstr[5]->txt + i, j - i);
data/xwpe-1.5.30a/we_prog.c:1309:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  e_prog.project = REALLOC(e_prog.project, strlen(str) + 1);
data/xwpe-1.5.30a/we_prog.c:1526:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(b->bf[i].s,str + k,j);
data/xwpe-1.5.30a/we_prog.c:1671: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).
 int ret, len = strlen(f->datnam);
data/xwpe-1.5.30a/we_prog.c:1682:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
 strcat(estr, " ");
data/xwpe-1.5.30a/we_prog.c:1783: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).
    if (!(string = REALLOC(tmp = string, (strlen(string) + 1) * sizeof(char))))
data/xwpe-1.5.30a/we_prog.c:1788:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(v_string) - len;
data/xwpe-1.5.30a/we_prog.c:1791:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     if (!(string = REALLOC(tmp = string, (k = strlen(string) + len + 1) * sizeof(char))))
data/xwpe-1.5.30a/we_prog.c:1800:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     if (!(string = REALLOC(tmp = string, (strlen(string) + 1) * sizeof(char))))
data/xwpe-1.5.30a/we_prog.c:1840: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).
   while (str[strlen(str)-1] != '\n')
data/xwpe-1.5.30a/we_prog.c:1856:37:  [1] (buffer) strlen:
  Does not handle 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 (!(p_v[p_v_n-1]->var = MALLOC((strlen(sp1)+1) * sizeof(char))))
data/xwpe-1.5.30a/we_prog.c:1859:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (!(p_v[p_v_n-1]->string = MALLOC((strlen(sp2)+1) * sizeof(char))))
data/xwpe-1.5.30a/we_prog.c:1862: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).
  while (p_v[p_v_n-1]->string[i = strlen(p_v[p_v_n-1]->string) - 1] != '\n' || (i && p_v[p_v_n-1]->string[i-1] == '\\'))
data/xwpe-1.5.30a/we_prog.c:1867:4:  [1] (buffer) strlen:
  Does not handle 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(p_v[p_v_n-1]->string)+strlen(str)+1) * sizeof(char))))
data/xwpe-1.5.30a/we_prog.c:1867: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(p_v[p_v_n-1]->string)+strlen(str)+1) * sizeof(char))))
data/xwpe-1.5.30a/we_prog.c:1874: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).
  p_v[p_v_n-1]->string[strlen(p_v[p_v_n-1]->string) - 1] = '\0';
data/xwpe-1.5.30a/we_prog.c:1904: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).
   while (tp && (text[j = strlen(text)-1] != '\n' || text[j-1] == '\\'))
data/xwpe-1.5.30a/we_prog.c:1921: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).
   while (tp && (text[j = strlen(text)-1] != '\n' || text[j-1] == '\\'))
data/xwpe-1.5.30a/we_prog.c:1927: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).
  if (!(string = MALLOC(strlen(sp) + 1)))
data/xwpe-1.5.30a/we_prog.c:1934: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).
  while (tp && (text[j = strlen(text)-1] != '\n' || text[j-1] == '\\'))
data/xwpe-1.5.30a/we_prog.c:1939:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!(string = REALLOC(tmp = string, strlen(string) + strlen(text) + 1)))
data/xwpe-1.5.30a/we_prog.c:1939:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!(string = REALLOC(tmp = string, strlen(string) + strlen(text) + 1)))
data/xwpe-1.5.30a/we_prog.c:2065: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).
  e_arg[e_argc-j] = MALLOC(strlen(df->name[k]) + 1);
data/xwpe-1.5.30a/we_prog.c:2068: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).
  arg[argc-j] = MALLOC(strlen(df->name[k]) + 1);
data/xwpe-1.5.30a/we_prog.c:2085: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).
   e_arg[e_argc-j] = MALLOC(strlen(df->name[k]) + 1);
data/xwpe-1.5.30a/we_prog.c:2088: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).
   arg[argc-j] = MALLOC(strlen(df->name[k]) + 1);
data/xwpe-1.5.30a/we_prog.c:2096: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).
 elen = strlen(e_prog.exedir)-1;
data/xwpe-1.5.30a/we_prog.c:2132: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(tmpstr)+strlen(df->name[k])+2)*sizeof(char));
data/xwpe-1.5.30a/we_prog.c:2132: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(tmpstr)+strlen(df->name[k])+2)*sizeof(char));
data/xwpe-1.5.30a/we_prog.c:2133:11:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
   if (k) strcat(tmpstr, " ");
data/xwpe-1.5.30a/we_prog.c:2154: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).
 elen = strlen(e_prog.exedir)-1;
data/xwpe-1.5.30a/we_prog.c:2160: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).
  for (j = strlen(df->name[k])-1; j >= 0 && df->name[k][j] != DIRC; j--)
data/xwpe-1.5.30a/we_prog.c:2165: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).
  for (j = strlen(ofile); j > 0 && ofile[j] != '.'; j--)
data/xwpe-1.5.30a/we_prog.c:2208: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).
  for (j = strlen(ofile); j >= 0 && ofile[j] != '/'; j--)
data/xwpe-1.5.30a/we_prog.c:2211: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).
    (strncmp(e_s_prog.exe_name, ofile+j+1,(len = strlen(e_s_prog.exe_name))) ||
data/xwpe-1.5.30a/we_prog.c:2227: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).
  for (j = strlen(ofile); j >= 0 && ofile[j] != '/'; j--)
data/xwpe-1.5.30a/we_prog.c:2230:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (!strncmp(e_s_prog.exe_name, ofile+j+1,(len = strlen(e_s_prog.exe_name))) &&
data/xwpe-1.5.30a/we_prog.c:2279: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).
   e_arg[e_argc] = MALLOC(strlen(df->name[k]) + 1);
data/xwpe-1.5.30a/we_prog.c:2381: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(library, "");
data/xwpe-1.5.30a/we_prog.c:2456:54:  [1] (buffer) strlen:
  Does not handle 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 (!(e_p_df[1]->name[e_p_df[1]->anz-1] = MALLOC((strlen(p_v[i]->var)
data/xwpe-1.5.30a/we_prog.c:2457: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).
			+ strlen(p_v[i]->string) + 2)*sizeof(char))))
data/xwpe-1.5.30a/we_prog.c:2495: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).
   while(tp && (text[j = strlen(text)-1] != '\n' || text[j-1] == '\\'))
data/xwpe-1.5.30a/we_prog.c:2507: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).
   while(tp && (text[j = strlen(text)-1] != '\n' || text[j-1] == '\\'))
data/xwpe-1.5.30a/we_prog.c:2517:53:  [1] (buffer) strlen:
  Does not handle 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 (!(e_p_df[2]->name[e_p_df[2]->anz-1] = MALLOC((strlen(sp) + 1))))
data/xwpe-1.5.30a/we_prog.c:2521: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).
  while(tp && (text[j = strlen(text)-1] != '\n' || text[j-1] == '\\'))
data/xwpe-1.5.30a/we_prog.c:2526: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).
    j = strlen(e_p_df[2]->name[e_p_df[2]->anz-1]);
data/xwpe-1.5.30a/we_prog.c:2530:4:  [1] (buffer) strlen:
  Does not handle 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(e_p_df[2]->name[e_p_df[2]->anz-1])
data/xwpe-1.5.30a/we_prog.c:2531: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).
			+ strlen(text) + 1)))
data/xwpe-1.5.30a/we_prog.c:2538: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(e_p_df[2]->name[e_p_df[2]->anz-1]);
data/xwpe-1.5.30a/we_prog.c:2622: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).
  len += strlen(e_p_df[0]->name[i]);
data/xwpe-1.5.30a/we_prog.c:2691: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).
  fw->df->name[i] = MALLOC(strlen(str)+1);
data/xwpe-1.5.30a/we_prog.c:2725: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).
  fw->df->name[fw->nf] = MALLOC(strlen(str)+1);
data/xwpe-1.5.30a/we_prog.c:2753: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).
  if(!(tmp = REALLOC(tmp, (strlen(tmp)+strlen(argv[i])+2)*sizeof(char))))
data/xwpe-1.5.30a/we_prog.c:2753:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(!(tmp = REALLOC(tmp, (strlen(tmp)+strlen(argv[i])+2)*sizeof(char))))
data/xwpe-1.5.30a/we_prog.c:2756:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat(tmp, " ");
data/xwpe-1.5.30a/we_prog.c:2833: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).
  for (i = strlen(str) - 1; i >= 0 && !isspace(str[i]); i--)
data/xwpe-1.5.30a/we_prog.c:2862: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).
   *x = strlen(str);
data/xwpe-1.5.30a/we_prog.c:2938: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).
   cp = MALLOC((strlen(a)+1)*sizeof(char));
data/xwpe-1.5.30a/we_prog.c:3114: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).
    err_li[k].file = MALLOC((strlen(file)+1)*sizeof(char));
data/xwpe-1.5.30a/we_prog.c:3127: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).
     err_li[k].srch = MALLOC((strlen(cmp)+2)*sizeof(char));
data/xwpe-1.5.30a/we_prog.c:3133: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).
     err_li[k].srch = MALLOC((strlen(search)+1)*sizeof(char));
data/xwpe-1.5.30a/we_prog.c:3140: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).
    err_li[k].text = MALLOC(strlen((char *)b->bf[i].s) + 1);
data/xwpe-1.5.30a/we_prog.c:3153:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        !strncmp(b->bf[i].s+wn[m], wtxt[m], strlen(wtxt[m])))
data/xwpe-1.5.30a/we_progn.c:111: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).
     int kk = strlen(cs->line_comment);					\
data/xwpe-1.5.30a/we_progn.c:140: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).
     int kk = strlen(cs->line_comment);					\
data/xwpe-1.5.30a/we_progn.c:465: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).
 int n_bg = -1, n_nd = strlen(f->c_st->end_comment)-1;
data/xwpe-1.5.30a/we_progn.c:897: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).
 df->name[df->anz-1] = MALLOC((strlen(str)+1) * sizeof(char));
data/xwpe-1.5.30a/we_progn.c:917: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).
   int len = strlen(name);
data/xwpe-1.5.30a/we_progn.c:961: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).
	 while(sp[i = (strlen(sp) - 1)] != '\n' || sp[i-1] == '\\')
data/xwpe-1.5.30a/we_progn.c:1194: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).
 *oldname = MALLOC((strlen(file)+1) * sizeof(char));
data/xwpe-1.5.30a/we_progn.c:1196: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).
 for (i = strlen(file)-1; i >= 0 && file[i] != '/'; i--)
data/xwpe-1.5.30a/we_progn.c:1207: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).
 for (i = num, j = x+1-(len = strlen(name)); i >= 0; )
data/xwpe-1.5.30a/we_progn.c:1209: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 (len = strlen(name); j >= 0 && strncmp(name, f->b->bf[i].s+j, len);
data/xwpe-1.5.30a/we_progn.c:1246: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).
  sh_df.str = MALLOC((strlen(str)+1)*sizeof(char));
data/xwpe-1.5.30a/we_term.c:200: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).
  keystr = MALLOC(strlen(tmp)+1);
data/xwpe-1.5.30a/we_term.c:246: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).
  pt = MALLOC((strlen(spc_bg)+strlen(spc_nd)+2)*sizeof(char));
data/xwpe-1.5.30a/we_term.c:246: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).
  pt = MALLOC((strlen(spc_bg)+strlen(spc_nd)+2)*sizeof(char));
data/xwpe-1.5.30a/we_term.c:721:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
 ret = read(0, &c, 1);
data/xwpe-1.5.30a/we_term.c:1037:2:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
 getchar();
data/xwpe-1.5.30a/we_unix.c:128: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).
 for (i = strlen(argv[0])-1; i >= 0 && *(argv[0] + i) != DIRC; i--)
data/xwpe-1.5.30a/we_unix.c:359:56:  [1] (buffer) strlen:
  Does not handle 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 ((maxname = pathconf(f->dirct, _PC_NAME_MAX) >= strlen(f->datnam) + 4) &&
data/xwpe-1.5.30a/we_unix.c:393: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).
 if (dr[strlen(dr)-1] != DIRC)
data/xwpe-1.5.30a/we_unix.c:421: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).
   cp = MALLOC((strlen(a)+1)*sizeof(char));
data/xwpe-1.5.30a/we_unix.c:496: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).
 for (n = strlen(sufile); n >= 0 && sufile[n] != DIRC; n--);
data/xwpe-1.5.30a/we_unix.c:526:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (sizeSdir + strlen(dp->d_name) + 10 > sizeStmp)
data/xwpe-1.5.30a/we_unix.c:528: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).
    while (sizeSdir + strlen(dp->d_name) + 10 > sizeStmp)
data/xwpe-1.5.30a/we_unix.c:553:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (df->name == NULL || !(tmpst = MALLOC(strlen(dp->d_name) + 1)))
data/xwpe-1.5.30a/we_unix.c:586: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).
 for (n = strlen(sufile); n >= 0 && sufile[n] != DIRC; n--);
data/xwpe-1.5.30a/we_unix.c:618:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (sizeSdir + strlen(dp->d_name) + 10 > sizeStmp)
data/xwpe-1.5.30a/we_unix.c:620: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).
    while (sizeSdir + strlen(dp->d_name) + 10 > sizeStmp)
data/xwpe-1.5.30a/we_unix.c:634:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (df->name == NULL || !(tmpst = MALLOC(strlen(dp->d_name) + 1)))
data/xwpe-1.5.30a/we_unix.c:708: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).
  f->datnam[strlen(f->datnam)-4] = '\0';
data/xwpe-1.5.30a/we_wind.c:72: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).
 if ((len = strlen((char *)text)) < 20 ) len = 20;
data/xwpe-1.5.30a/we_wind.c:138: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).
  e_add_txtstr((o->xe-o->xa-strlen(s[i]))/2, 2+i, s[i], o);
data/xwpe-1.5.30a/we_wind.c:339: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).
   header = (char *)WpeMalloc(strlen(f->datnam) + 1);
data/xwpe-1.5.30a/we_wind.c:344: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).
   header = (char *)WpeMalloc(strlen(f->dirct) + strlen(f->datnam) + 1);
data/xwpe-1.5.30a/we_wind.c:344: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).
   header = (char *)WpeMalloc(strlen(f->dirct) + strlen(f->datnam) + 1);
data/xwpe-1.5.30a/we_wind.c:748:54:  [1] (buffer) strlen:
  Does not handle 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 ((maxname = pathconf(f->dirct, _PC_NAME_MAX) >= strlen(f->datnam) + 4) &&
data/xwpe-1.5.30a/we_wind.c:1242: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(name) < xe - xa - 14)
data/xwpe-1.5.30a/we_wind.c:1243:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   e_pr_str((xa+xe-strlen(name))/2, ya, name, frb, 0, 0, 0, 0);
data/xwpe-1.5.30a/we_wind.c:1294: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).
      df->name[0] = MALLOC((strlen(str)+1) * sizeof(char));
data/xwpe-1.5.30a/we_wind.c:1302: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).
	 df->name[0] = MALLOC((strlen(str) + 1) * sizeof(char));
data/xwpe-1.5.30a/we_wind.c:1419:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 s = StringToStringArray(str, &mxlen, strlen(header) + 8, &anz);
data/xwpe-1.5.30a/we_wind.c:1453: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 = xa+strlen(s[j])+3; i < xe; i++)
data/xwpe-1.5.30a/we_wind.c:1485: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).
   if((n = strlen(opt[i].t)) > max) max = n;
data/xwpe-1.5.30a/we_wind.c:1539: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).
     MALLOC((strlen(f->ed->f[df->anz-i]->datnam)+1) * sizeof(char))))
data/xwpe-1.5.30a/we_xterm.c:724:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        PropModeReplace, WpeXInfo.selection, strlen(WpeXInfo.selection));
data/xwpe-1.5.30a/we_xterm.c:826: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).
 string = MALLOC(strlen(XTERM_CMD) + strlen(exe) + strlen(file) +
data/xwpe-1.5.30a/we_xterm.c:826:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 string = MALLOC(strlen(XTERM_CMD) + strlen(exe) + strlen(file) +
data/xwpe-1.5.30a/we_xterm.c:826:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 string = MALLOC(strlen(XTERM_CMD) + strlen(exe) + strlen(file) +
data/xwpe-1.5.30a/we_xterm.c:827:4:  [1] (buffer) strlen:
  Does not handle 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(user_shell) + 40);
data/xwpe-1.5.30a/we_xterm.c:960:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  n = strlen(str);
data/xwpe-1.5.30a/we_xterm.c:986:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  n = strlen(str);
data/xwpe-1.5.30a/we_xterm.c:1057:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(WpeXInfo.selection, b0->bf[s0->mark_begin.y].s+s0->mark_begin.x,

ANALYSIS SUMMARY:

Hits = 1137
Lines analyzed = 30048 in approximately 0.92 seconds (32576 lines/second)
Physical Source Lines of Code (SLOC) = 26573
Hits@level = [0] 132 [1] 431 [2] 254 [3]  27 [4] 415 [5]  10
Hits@level+ = [0+] 1269 [1+] 1137 [2+] 706 [3+] 452 [4+] 425 [5+]  10
Hits/KSLOC@level+ = [0+] 47.7552 [1+] 42.7878 [2+] 26.5683 [3+] 17.0097 [4+] 15.9937 [5+] 0.376322
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.