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/xmpi-2.2.3b8/src/libxmpi/bhostparse.h
Examining data/xmpi-2.2.3b8/src/libxmpi/xmpi_asc_parse.h
Examining data/xmpi-2.2.3b8/src/libxmpi/xmpi_mpitr_com.h
Examining data/xmpi-2.2.3b8/src/libxmpi/xmpi_trdrain.h
Examining data/xmpi-2.2.3b8/src/libxmpi/app_mgmt.cc
Examining data/xmpi-2.2.3b8/src/libxmpi/bhostparse.cc
Examining data/xmpi-2.2.3b8/src/libxmpi/build_run.cc
Examining data/xmpi-2.2.3b8/src/libxmpi/mpitr_com.cc
Examining data/xmpi-2.2.3b8/src/libxmpi/mpitr_dtype.cc
Examining data/xmpi-2.2.3b8/src/libxmpi/trdrain_mpi.cc
Examining data/xmpi-2.2.3b8/src/libxmpi/xmpi_sys_snapshot.lam.cc
Examining data/xmpi-2.2.3b8/src/libxmpi/xmpi_sys.lam.cc
Examining data/xmpi-2.2.3b8/src/libxmpi/ndi_resolve.cc
Examining data/xmpi-2.2.3b8/src/libxmpi/nodeslist.cc
Examining data/xmpi-2.2.3b8/src/libxmpi/xmpi_asc_parse.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_config.h
Examining data/xmpi-2.2.3b8/src/xmpi/lamtr_util.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_about.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_aschema.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_browse.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_copies.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_ctl.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_dbase.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_db_int.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_db_parse.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_dtype.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_error.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_help.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_kiviat.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_matrix.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_misc.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_nodes.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_pophelp.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_trace.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_tr_dump.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_tr_file.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_tr_segment.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_view.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xpm.cc
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_all_list.h
Examining data/xmpi-2.2.3b8/src/xmpi/app_mgmt.h
Examining data/xmpi-2.2.3b8/src/xmpi/args.h
Examining data/xmpi-2.2.3b8/src/xmpi/lam.h
Examining data/xmpi-2.2.3b8/src/xmpi/lamtr_util.h
Examining data/xmpi-2.2.3b8/src/xmpi/lamtrace.h
Examining data/xmpi-2.2.3b8/src/xmpi/mpitrace.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_about.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_aschema.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_browse.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_copies.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_ctl.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_dbase.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_db_int.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_db_parse.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_dtype.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_error.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_getline.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_help.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_kiviat.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_matrix.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_misc.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_nodes.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_pophelp.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_run.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_sys.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_tr_dump.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_tr_file.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_tr_segment.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_trace.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_view.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_vendor.h
Examining data/xmpi-2.2.3b8/src/xmpi/xpm.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi.h
Examining data/xmpi-2.2.3b8/src/xmpi/xmpi_vendor.cc

FINAL RESULTS:

data/xmpi-2.2.3b8/src/libxmpi/bhostparse.cc:118: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(lamnet[node].lnd_hname, host);
data/xmpi-2.2.3b8/src/libxmpi/bhostparse.cc:129: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(lamnet[node].lnd_uname, user);
data/xmpi-2.2.3b8/src/libxmpi/build_run.cc:274: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(*app_schema_entry, output.c_str());
data/xmpi-2.2.3b8/src/libxmpi/build_run.cc:452: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(*run_list, output.c_str());
data/xmpi-2.2.3b8/src/libxmpi/build_run.cc:570: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(*args, tmp.c_str());
data/xmpi-2.2.3b8/src/libxmpi/nodeslist.cc:67:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(name, "%s", inet_ntoa(links[node].dol_addr.sin_addr));
data/xmpi-2.2.3b8/src/libxmpi/nodeslist.cc:126:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf((*nodes_list)[count], "c%-3d %s (cpu %d)", count, name, i);
data/xmpi-2.2.3b8/src/libxmpi/nodeslist.cc:186: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(*output, tmp.c_str());
data/xmpi-2.2.3b8/src/libxmpi/xmpi_asc_parse.cc:68:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(ebuf, "Application schema \"%s\"\n", appfile);
data/xmpi-2.2.3b8/src/libxmpi/xmpi_asc_parse.cc:73:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(ebuf,
data/xmpi-2.2.3b8/src/libxmpi/xmpi_asc_parse.cc:168:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(ebuf,
data/xmpi-2.2.3b8/src/libxmpi/xmpi_asc_parse.cc:172:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(ebuf, "Parsing application schema \"%s\"\n",
data/xmpi-2.2.3b8/src/libxmpi/xmpi_asc_parse.cc:260: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(cmdline,(char*) "x ");
data/xmpi-2.2.3b8/src/libxmpi/xmpi_asc_parse.cc:261: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(cmdline, run_options);
data/xmpi-2.2.3b8/src/libxmpi/xmpi_sys.lam.cc:504:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "Cannot start \"%s\"", pp->asc_args->apa_argv[0]);
data/xmpi-2.2.3b8/src/xmpi/xmpi_about.cc:61: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(buf, "Version: XMPI " XMPI_VERSION);
data/xmpi-2.2.3b8/src/xmpi/xmpi_about.cc:66: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(buf, version);
data/xmpi-2.2.3b8/src/xmpi/xmpi_about.cc:69:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(buf, copyright);
data/xmpi-2.2.3b8/src/xmpi/xmpi_about.cc:70: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(buf, promotion);
data/xmpi-2.2.3b8/src/xmpi/xmpi_browse.cc:302: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(fname, pfile->d_name);
data/xmpi-2.2.3b8/src/xmpi/xmpi_browse.cc:304: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(fname, STRSDIR);
data/xmpi-2.2.3b8/src/xmpi/xmpi_ctl.cc:563:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(fmtbuf, "%s: %s   App: %s", app_res.ap_infolbl, info, app);
data/xmpi-2.2.3b8/src/xmpi/xmpi_ctl.cc:578: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(appschema, string);
data/xmpi-2.2.3b8/src/xmpi/xmpi_db_parse.cc:786: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(xmbuoy1.xdbb_name, buoy.trb_name);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dbase.cc:128:50:  [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.
xmpi_db_getload(int size, double *block, double *system)
data/xmpi-2.2.3b8/src/xmpi/xmpi_dbase.cc:156:18:  [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.
      block[i] = system[i] = -1.0;
data/xmpi-2.2.3b8/src/xmpi/xmpi_dbase.cc:160:18:  [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.
      block[i] = system[i] = 0.0;
data/xmpi-2.2.3b8/src/xmpi/xmpi_dbase.cc:164: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[i] = ptrace->xdbt_systotal;
data/xmpi-2.2.3b8/src/xmpi/xmpi_dbase.cc:172:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      system[i] += (delta > ptrace->xdbt_lapse) ?
data/xmpi-2.2.3b8/src/xmpi/xmpi_dbase.cc:177: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[i] /= tottime - ((delta > ptrace->xdbt_lapse) ?
data/xmpi-2.2.3b8/src/xmpi/xmpi_dbase.cc:340: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(buoys[n].xmb_name, p->xdbb_name);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dbase.cc:544: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(p->xmp_prog, pproc->xdbp_prog);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:128:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(obuf, "%sinvalid datatype: %d", prefix, dtype);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:138: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(obuf, prefix);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:139: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(obuf, dtbasic[dtype]);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:250:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(fmtbuf, "%s\n", dtbasic[dtype]);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:251: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(obuf, fmtbuf);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:271:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(fmtbuf, "%s (%d)", dtbasic[XMPI_CONTIG], (*dtrace)->trd_count);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:274: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(obuf, fmtbuf);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:301:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(fmtbuf, "%s (%d x %d, %d)", dtbasic[dtype],
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:306: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(obuf, fmtbuf);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:340:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(fmtbuf, "%s (%d)", dtbasic[dtype], count);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:343: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(obuf, fmtbuf);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:354: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(obuf, fmtbuf);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:386:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(fmtbuf, "%s (%d)\n", dtbasic[XMPI_STRUCT], count);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:389: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(obuf, fmtbuf);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:404: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(obuf, fmtbuf);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:437: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(obuf, prefix);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtype.cc:252:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(fmtbuf, "%s", "DT Test");
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtype.cc:332:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(fmtbuf, "%d   %s", rank, pproc->xmp_prog);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtype.cc:334:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(fmtbuf, "%d / %d   %s", rank,
data/xmpi-2.2.3b8/src/xmpi/xmpi_error.cc:124: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(buffer, errmsg[errno - XMPI_ERR_LOW]);
data/xmpi-2.2.3b8/src/xmpi/xmpi_error.cc:134: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(buffer, syserr);
data/xmpi-2.2.3b8/src/xmpi/xmpi_error.cc:139: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(buffer, anum);
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:676:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(fmtbuf, "%d   %s", rank, pproc->xmp_prog);
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:722:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(fmtbuf, "%d   %s", rank, pproc->xmp_prog);
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:792: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(fmtbuf, pmsg->xmm_commname);
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1274:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(fmtbuf, "%d%s of %d", ncopies,
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1362: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(task_str, p->xmp_prog);
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1364:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(func_str, "%s", blktype(p->xmp_func));
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1391: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).
    (void) strcpy(cid_str, p->xmp_commname);
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1401:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(func_str, "%s", blktype(p->xmp_func));
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1404: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).
    (void) strcpy(cid_str, p->xmp_commname);
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1413: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).
    (void) strcpy(cid_str, p->xmp_commname);
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1428: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).
    (void) strcpy(cid_str, p->xmp_commname);
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1441: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).
    (void) strcpy(cid_str, p->xmp_commname);
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1455: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).
    (void) strcpy(cid_str, p->xmp_commname);
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1472: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).
    (void) strcpy(cid_str, p->xmp_commname);
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1498:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(fmtbuf, " (%s)", blktype(p->xmp_wfunc));
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1499: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(func_str, fmtbuf);
data/xmpi-2.2.3b8/src/xmpi/xmpi_help.cc:83:7:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      execvp(argv[0], argv);
data/xmpi-2.2.3b8/src/xmpi/xmpi_help.cc:84:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(errbuf, "xmpi: ERROR in help command \"%s\"",
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:692: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(prog_dir, dir);
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:898: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(full_prog, prog_dir);
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:900: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(full_prog, STRSDIR);
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:903: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(full_prog, prog);
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:905: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(full_prog, prog);
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:1007: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(cwdir, cwd);
data/xmpi-2.2.3b8/src/xmpi/xmpi_trace.cc:1741:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(fmtbuf, "Timeline  (%s)", label);
data/xmpi-2.2.3b8/src/xmpi/xmpi_vendor.cc:283: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(options[i].current_val.xmpi_text,
data/xmpi-2.2.3b8/src/xmpi/xpm.cc:246: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(buf, desc);
data/xmpi-2.2.3b8/src/xmpi/xpm.cc:269: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(buf, desc + char_pixel);
data/xmpi-2.2.3b8/src/xmpi/xpm.cc:284: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(rgb, tok);
data/xmpi-2.2.3b8/src/xmpi/xmpi_getline.h:49:5:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	is.setstate(std::ios::failbit|std::ios::eofbit);
data/xmpi-2.2.3b8/src/xmpi/xmpi_getline.h:51:5:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	is.setstate(std::ios::eofbit);
data/xmpi-2.2.3b8/src/xmpi/xmpi_getline.h:65:10:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
      is.setstate(std::ios::failbit);
data/xmpi-2.2.3b8/src/libxmpi/bhostparse.cc:38: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 linebuf[MAXLINE];
data/xmpi-2.2.3b8/src/libxmpi/build_run.cc:247: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(copy_string, "%d", copy);
data/xmpi-2.2.3b8/src/libxmpi/build_run.cc:343: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(tmp, "n%d", schema->asc_srcnode);
data/xmpi-2.2.3b8/src/libxmpi/mpitr_com.cc:90:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(*ptrcom, (char *) ptrc, len);
data/xmpi-2.2.3b8/src/libxmpi/mpitr_dtype.cc:120: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(*ptrdtype, (char *) ptrdt, ptrdt->trd_length);
data/xmpi-2.2.3b8/src/libxmpi/nodeslist.cc:47: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		name[1024];
data/xmpi-2.2.3b8/src/libxmpi/nodeslist.cc:60: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(name, "invalid node");
data/xmpi-2.2.3b8/src/libxmpi/nodeslist.cc:165:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(number, "%d", i - 2);
data/xmpi-2.2.3b8/src/libxmpi/nodeslist.cc:171: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(number, "%d", j - 3);
data/xmpi-2.2.3b8/src/libxmpi/xmpi_asc_parse.cc:55: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 ebuf[1024];		       /* formatting buffer */
data/xmpi-2.2.3b8/src/libxmpi/xmpi_asc_parse.cc:98:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open(appfile, O_RDONLY, 0);
data/xmpi-2.2.3b8/src/libxmpi/xmpi_asc_parse.cc:119:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  (void) memcpy(tmp_string, filebuf, bufsize);
data/xmpi-2.2.3b8/src/libxmpi/xmpi_sys.lam.cc:330:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char errstring[256];	       /* error string */
data/xmpi-2.2.3b8/src/libxmpi/xmpi_sys.lam.cc:337: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(errstring, "LAM error");
data/xmpi-2.2.3b8/src/libxmpi/xmpi_sys.lam.cc:441: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 server[LAM_PATH_MAX];	       /* fd server socket name */
data/xmpi-2.2.3b8/src/libxmpi/xmpi_sys.lam.cc:491:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[512];
data/xmpi-2.2.3b8/src/libxmpi/xmpi_sys.lam.cc:528: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(mpiworld, world, world_n * sizeof(struct _gps));
data/xmpi-2.2.3b8/src/libxmpi/xmpi_sys_snapshot.lam.cc:80: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 buf[128];		       /* formatting buffer */
data/xmpi-2.2.3b8/src/libxmpi/xmpi_sys_snapshot.lam.cc:117:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf, "Probing node n%d", app[i].gps_node);
data/xmpi-2.2.3b8/src/xmpi/lamtr_util.cc:63:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((traces = fopen(tracefile, "r")) == 0) {
data/xmpi-2.2.3b8/src/xmpi/lamtr_util.cc:306: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(*dtype, (char *) &dttr, sizeof(struct trdtype));
data/xmpi-2.2.3b8/src/xmpi/lamtrace.h:46: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((char *) (w), (char *) (t), (n) * sizeof(struct _gps)); \
data/xmpi-2.2.3b8/src/xmpi/mpitrace.h:146: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		tri_name[TRDPROGMAX];	/* application name */
data/xmpi-2.2.3b8/src/xmpi/mpitrace.h:170:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char trb_name[32]; /* string name */
data/xmpi-2.2.3b8/src/xmpi/mpitrace.h:181: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 comm_name[128];
data/xmpi-2.2.3b8/src/xmpi/xmpi.cc:64: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 xmpi_info[XMPI_PATHMAX];	       /* information string */
data/xmpi-2.2.3b8/src/xmpi/xmpi.h:222:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char            xmb_name[32];   /* buoy name */
data/xmpi-2.2.3b8/src/xmpi/xmpi_about.cc:57:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1024];
data/xmpi-2.2.3b8/src/xmpi/xmpi_about.cc:65: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(buf, " / ");
data/xmpi-2.2.3b8/src/xmpi/xmpi_copies.cc:95: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(numb_text, "%d", numb);
data/xmpi-2.2.3b8/src/xmpi/xmpi_copies.cc:188: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 fbuf[16];		       /* small formatting buffer */
data/xmpi-2.2.3b8/src/xmpi/xmpi_copies.cc:202: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(fbuf, "%d", copies);
data/xmpi-2.2.3b8/src/xmpi/xmpi_ctl.cc:96: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 appschema[XMPI_PATHMAX]
data/xmpi-2.2.3b8/src/xmpi/xmpi_ctl.cc:549: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 fmtbuf[80];
data/xmpi-2.2.3b8/src/xmpi/xmpi_db_parse.cc:1253:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(tmp, "%d", cid);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dbase.h:49: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		xdbp_prog[TRDPROGMAX];	/* program name */
data/xmpi-2.2.3b8/src/xmpi/xmpi_dbase.h:101:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char            xdbb_name[32];          /* buoy name */
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:58: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 fmtbuf[80];		       /* formatting buffer */
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:350: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(fmtbuf, " (%d, %d)", (*dtrace)->trd_length,
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:400: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(fmtbuf, "(%d, %d)",
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtype.cc:65: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 fmtbuf[2048];	       /* large buffer */
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtype.cc:502:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "invalid datatype: %d", dtype);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtype.cc:508:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf, "unknown datatype: %d", dtype);
data/xmpi-2.2.3b8/src/xmpi/xmpi_error.cc:47: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 buffer[BUFLEN];	       /* complete message */
data/xmpi-2.2.3b8/src/xmpi/xmpi_error.cc:111: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 anum[16];		       /* ascii error code */
data/xmpi-2.2.3b8/src/xmpi/xmpi_error.cc:123: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(buffer, ": ");
data/xmpi-2.2.3b8/src/xmpi/xmpi_error.cc:133:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(buffer, ": ");
data/xmpi-2.2.3b8/src/xmpi/xmpi_error.cc:137: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(buffer, ": Unknown error ");
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:95: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 fmtbuf[130];	       /* formatting buffer */
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:96: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 task_str[32];	       /* task formatting buffer */
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:97: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 func_str[64];	       /* function formatting buf */
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:98: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 peer_str[32];	       /* peer formatting buffer */
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:99: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 root_str[32];	       /* root formatting buffer */
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:100: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 tag_str[16];	       /* tag formatting buffer */
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:101: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 cid_str[130];	       /* cid formatting buffer */
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:102: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 count_str[16];	       /* count formatting buffer */
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:288:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(fmtbuf, "%d", rank);
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:783: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(fmtbuf, "%d / %d", pmsg->xmm_gsrc, pmsg->xmm_lsrc);
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:786: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(fmtbuf, "%d", pmsg->xmm_tag);
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:789: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(fmtbuf, "%d", pmsg->xmm_cnt);
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1361: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(task_str, "   ");
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1392: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(count_str, "%d", p->xmp_cnt);
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1427: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(count_str, "%d", p->xmp_cnt);
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1442: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(count_str, "%d", p->xmp_cnt);
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1515: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(buf, "MPI_ANY_SOURCE");
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1517:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%d", global);
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1519:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%d / %d", global, local);
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1534: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(str, "ANY");
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1536: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(str, "%d", tag);
data/xmpi-2.2.3b8/src/xmpi/xmpi_help.cc:54: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 errbuf[512];
data/xmpi-2.2.3b8/src/xmpi/xmpi_kiviat.cc:435: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 fmtbuf[8];		       /* formatting buffer */
data/xmpi-2.2.3b8/src/xmpi/xmpi_kiviat.cc:459: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(fmtbuf, "%d", i);
data/xmpi-2.2.3b8/src/xmpi/xmpi_matrix.cc:106:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *src_colours[XMPI_MTCNTMAX + 1] = {
data/xmpi-2.2.3b8/src/xmpi/xmpi_matrix.cc:117:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char *src_bits[XMPI_MTCNTMAX + 1] = {
data/xmpi-2.2.3b8/src/xmpi/xmpi_matrix.cc:413:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		    (const char *) src_bits[i], src1_width, src1_height);
data/xmpi-2.2.3b8/src/xmpi/xmpi_matrix.cc:427:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		   (char *) src_bits[i], src1_width, src1_height, bg, fg,
data/xmpi-2.2.3b8/src/xmpi/xmpi_matrix.cc:538: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 fmtbuf[8];		       /* formatting buffer */
data/xmpi-2.2.3b8/src/xmpi/xmpi_matrix.cc:575: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(fmtbuf, "%d", i);
data/xmpi-2.2.3b8/src/xmpi/xmpi_misc.cc:588:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static unsigned char stipplebitmap[8] = {0x55, 0xAA, 0x55, 0xAA,
data/xmpi-2.2.3b8/src/xmpi/xmpi_pophelp.cc:58: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 ph_text[LABEL_MAX + 1];	       /* help message text */
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:130:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char prog_dir[XMPI_PATHMAX] = "";	/* dir. selected prog. */
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:131: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 tempfile[32];
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:760: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(tempfile, "/tmp/xmpiXXXXXX");
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:761:3:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  mkstemp(tempfile);
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:799:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644);
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:1003: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 cwdir[XMPI_PATHMAX];
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:1231:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  input_file.open(name, ios::in);
data/xmpi-2.2.3b8/src/xmpi/xmpi_sys.h:132: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		xmp_prog[TRDPROGMAX];	/* program name */
data/xmpi-2.2.3b8/src/xmpi/xmpi_tr_dump.cc:60: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 tempfile[XMPI_PATHMAX];
data/xmpi-2.2.3b8/src/xmpi/xmpi_tr_dump.cc:86: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(tempfile, "/tmp/lam-xmpi%d.lamtr", (int) getpid());
data/xmpi-2.2.3b8/src/xmpi/xmpi_tr_dump.cc:171:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open(file, O_WRONLY | O_CREAT | O_TRUNC, 0644);
data/xmpi-2.2.3b8/src/xmpi/xmpi_tr_dump.cc:205: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(tempfile, "/tmp/lam-xmpi%d.lamtr", (int) getpid());
data/xmpi-2.2.3b8/src/xmpi/xmpi_tr_dump.cc:211:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  dbfs = fopen(tracefile, "r");
data/xmpi-2.2.3b8/src/xmpi/xmpi_tr_file.cc:112:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  trfs = fopen(tracefile, "r");
data/xmpi-2.2.3b8/src/xmpi/xmpi_tr_segment.cc:46:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		buf[32];		/* formatting buffer */
data/xmpi-2.2.3b8/src/xmpi/xmpi_tr_segment.cc:66: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(buf, "Enter segment to display (0-%d)", maxseg - 1);
data/xmpi-2.2.3b8/src/xmpi/xmpi_trace.cc:129: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 tracefile[XMPI_PATHMAX];	       /* trace filename */
data/xmpi-2.2.3b8/src/xmpi/xmpi_trace.cc:205: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 fmtbuf[80];		       /* formatting buffer */
data/xmpi-2.2.3b8/src/xmpi/xmpi_trace.cc:1697:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(fmtbuf, "%.6f", tmin + (xdial / scale));
data/xmpi-2.2.3b8/src/xmpi/xmpi_trace.cc:1705: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(fmtbuf, "%.6f", tleft);
data/xmpi-2.2.3b8/src/xmpi/xmpi_trace.cc:1710: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(fmtbuf, "%.6f", tright);
data/xmpi-2.2.3b8/src/xmpi/xmpi_trace.cc:1723:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(fmtbuf, "Scale: %-.4g x %-.4g", zoomhi, zoomlo);
data/xmpi-2.2.3b8/src/xmpi/xmpi_trace.cc:1762: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 numstr[8];
data/xmpi-2.2.3b8/src/xmpi/xmpi_trace.cc:1786: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(numstr, "%d", i);
data/xmpi-2.2.3b8/src/xmpi/xmpi_view.cc:117: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 fmtbuf[40];		       /* formatting buffer */
data/xmpi-2.2.3b8/src/xmpi/xmpi_view.cc:792:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[16];			       /* temporary buffer */
data/xmpi-2.2.3b8/src/xmpi/xmpi_view.cc:823:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(fmtbuf, "%d", grank);
data/xmpi-2.2.3b8/src/xmpi/xmpi_view.cc:827:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "/%d", lrank);
data/xmpi-2.2.3b8/src/xmpi/xmpi_view.cc:910: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(fmtbuf, "99+");
data/xmpi-2.2.3b8/src/xmpi/xmpi_view.cc:912: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(fmtbuf, "%d", nmsg);
data/xmpi-2.2.3b8/src/xmpi/xpm.cc:92: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 pixel_desc[2];
data/xmpi-2.2.3b8/src/xmpi/xpm.cc:96:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char c[2];			       /* character code for color */
data/xmpi-2.2.3b8/src/xmpi/xpm.cc:97:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char rgb[64];			       /* string specifying color value */
data/xmpi-2.2.3b8/src/xmpi/xpm.cc:244:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[80];
data/xmpi-2.2.3b8/src/xmpi/xpm.cc:267:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[80];
data/xmpi-2.2.3b8/src/xmpi/xpm.cc:365:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char reverse_byte[0x100] = {
data/xmpi-2.2.3b8/src/xmpi/xpm.cc:445:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char lomask[0x09] = {
data/xmpi-2.2.3b8/src/xmpi/xpm.cc:448:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char himask[0x09] = {
data/xmpi-2.2.3b8/src/libxmpi/bhostparse.cc:115: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).
    lamnet[node].lnd_hname = (char*) malloc((unsigned) strlen(host) + 1);
data/xmpi-2.2.3b8/src/libxmpi/bhostparse.cc:126: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).
				      strlen(user) + 1);
data/xmpi-2.2.3b8/src/libxmpi/build_run.cc:255: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 (strlen(schema_options[0].current_val.xmpi_text) != 0)
data/xmpi-2.2.3b8/src/libxmpi/build_run.cc:260: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 (strlen(schema_options[1].current_val.xmpi_text) != 0)
data/xmpi-2.2.3b8/src/libxmpi/build_run.cc:267: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(args) != 0)
data/xmpi-2.2.3b8/src/libxmpi/build_run.cc:313: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).
  app = asc_bufparse(app_schema_entry, strlen(app_schema_entry), 
data/xmpi-2.2.3b8/src/libxmpi/build_run.cc:375: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).
  app = asc_bufparse(app_schema_entry, strlen(app_schema_entry), 
data/xmpi-2.2.3b8/src/libxmpi/nodeslist.cc:65:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(name, hent->h_name, sizeof(name));
data/xmpi-2.2.3b8/src/libxmpi/nodeslist.cc:120: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).
					    (strlen(name) + 15 +
data/xmpi-2.2.3b8/src/libxmpi/xmpi_asc_parse.cc:104:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  nbytes = read(fd, filebuf, bufsize);
data/xmpi-2.2.3b8/src/libxmpi/xmpi_asc_parse.cc:253: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).
  cmdline = (char*) malloc(sizeof(char) * (strlen(run_options) + 3));
data/xmpi-2.2.3b8/src/xmpi/xmpi.cc:295:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(xmpi_info, info, XMPI_PATHMAX);
data/xmpi-2.2.3b8/src/xmpi/xmpi_about.cc:68: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(buf, "\n");
data/xmpi-2.2.3b8/src/xmpi/xmpi_browse.cc:118: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).
    XmTextFieldSetInsertionPosition(text_w, strlen(cwd));
data/xmpi-2.2.3b8/src/xmpi/xmpi_browse.cc:210: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).
    XmTextFieldSetInsertionPosition(text_w, strlen(p));
data/xmpi-2.2.3b8/src/xmpi/xmpi_browse.cc:293: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).
    fnamelen = strlen(pfile->d_name);
data/xmpi-2.2.3b8/src/xmpi/xmpi_ctl.cc:231: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(app_res.ap_helpcmd) == 0) {
data/xmpi-2.2.3b8/src/xmpi/xmpi_db_parse.cc:523:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dbase.xdb_procs[rank].xdbp_prog, name, TRDPROGMAX);
data/xmpi-2.2.3b8/src/xmpi/xmpi_db_parse.cc:815: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 (strlen(commname.comm_name) != 0) {
data/xmpi-2.2.3b8/src/xmpi/xmpi_db_parse.cc:1250: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).
			   (sizeof(int4) * 8 * strlen("COMM ")));
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:278: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).
  colcount += strlen(fmtbuf);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:310: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).
  colcount += strlen(fmtbuf);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:347: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).
  colcount += strlen(fmtbuf);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:358: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).
    colcount += strlen(fmtbuf);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:408: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).
    colcount += strlen(fmtbuf);
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:428: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(obuf, "\n");
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:440: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(obuf, " ");
data/xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc:442: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(obuf, " ");
data/xmpi-2.2.3b8/src/xmpi/xmpi_error.cc:120:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buffer, msg, BUFLEN - MAXERRMSGLEN);
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:680:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(fmtbuf, " ");
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:726:7:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
      strcpy(fmtbuf, " ");
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:773:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(fmtbuf, " ");
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1261: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(fmtbuf, " ");
data/xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc:1271:7:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
      strcpy(fmtbuf, "?");
data/xmpi-2.2.3b8/src/xmpi/xmpi_help.cc:66: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 (app_res.ap_helpcmd == 0 || strlen(app_res.ap_helpcmd) == 0) {
data/xmpi-2.2.3b8/src/xmpi/xmpi_kiviat.cc:460: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).
    fmtlen = strlen(fmtbuf);
data/xmpi-2.2.3b8/src/xmpi/xmpi_matrix.cc:576: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).
    fmtlen = strlen(fmtbuf);
data/xmpi-2.2.3b8/src/xmpi/xmpi_matrix.cc:605: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).
    XTextExtents(app_res.ap_rankfont, srctxt, strlen(srctxt),
data/xmpi-2.2.3b8/src/xmpi/xmpi_matrix.cc:612: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).
    XDrawString(disp, pixmap, lblpen, x, y, srctxt, strlen(srctxt));
data/xmpi-2.2.3b8/src/xmpi/xmpi_misc.cc:163: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).
  XTextExtents(&font, str, strlen(str),
data/xmpi-2.2.3b8/src/xmpi/xmpi_misc.cc:214: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).
  XTextExtents(&font, str, strlen(str),
data/xmpi-2.2.3b8/src/xmpi/xmpi_misc.cc:233: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).
  XDrawImageString(disp, pix, gc, 0, fmtinfo.ascent, str, strlen(str));
data/xmpi-2.2.3b8/src/xmpi/xmpi_misc.cc:570: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).
		string, strlen(string) + 1, NULL);
data/xmpi-2.2.3b8/src/xmpi/xmpi_pophelp.cc:108:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(pop->ph_text, msg, LABEL_MAX);
data/xmpi-2.2.3b8/src/xmpi/xmpi_pophelp.cc:127:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(newpop.ph_text, msg, LABEL_MAX);
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:196:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(prog_dir, "");
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:811: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).
  write(fd, header, strlen(header));
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:817: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).
    write(fd, progline, strlen(progline));
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:886: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).
  full_prog = (char*) malloc(sizeof(char) * (strlen(prog_dir) + 
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:887: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).
					     strlen(prog) + 
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:896:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(full_prog, "");
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:899: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 (prog_dir[strlen(prog_dir) - 1] != STRDIR) {
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:915: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("Error in vendor library: ") + 
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:1008:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(cwdir, "/");
data/xmpi-2.2.3b8/src/xmpi/xmpi_run.cc:1162: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).
  xmpi_run_set_prog(name + strlen(dir), dir);
data/xmpi-2.2.3b8/src/xmpi/xmpi_tr_dump.cc:210:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(tracefile, tempfile, XMPI_PATHMAX);
data/xmpi-2.2.3b8/src/xmpi/xmpi_tr_file.cc:108:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tracefile, name, XMPI_PATHMAX);
data/xmpi-2.2.3b8/src/xmpi/xmpi_trace.cc:739: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).
	       x - strlen(pbuoy->xmb_name) * 4,
data/xmpi-2.2.3b8/src/xmpi/xmpi_trace.cc:740: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).
	       y - 30, strlen(pbuoy->xmb_name) * 8,
data/xmpi-2.2.3b8/src/xmpi/xmpi_trace.cc:743: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(pbuoy->xmb_name) * 3, y - 15,
data/xmpi-2.2.3b8/src/xmpi/xmpi_trace.cc:744: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).
		  pbuoy->xmb_name, strlen(pbuoy->xmb_name));
data/xmpi-2.2.3b8/src/xmpi/xmpi_trace.cc: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).
		numstr, strlen(numstr));
data/xmpi-2.2.3b8/src/xmpi/xmpi_trace.cc:1790: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).
		numstr, strlen(numstr));
data/xmpi-2.2.3b8/src/xmpi/xmpi_vendor.cc:188: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(temp_string) != 0)
data/xmpi-2.2.3b8/src/xmpi/xmpi_vendor.cc:224: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(temp_string) != 0)
data/xmpi-2.2.3b8/src/xmpi/xmpi_vendor.cc:281: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).
		sizeof(char) * (strlen(options[i].default_val.xmpi_text) + 1));
data/xmpi-2.2.3b8/src/xmpi/xmpi_view.cc:824: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).
  strwidth = XTextWidth(app_res.ap_rankfont, fmtbuf, strlen(fmtbuf));
data/xmpi-2.2.3b8/src/xmpi/xmpi_view.cc:828: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).
    strwidth2 = XTextWidth(app_res.ap_rankfont, buf, strlen(buf));
data/xmpi-2.2.3b8/src/xmpi/xmpi_view.cc:845: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).
	      fmtbuf, strlen(fmtbuf));
data/xmpi-2.2.3b8/src/xmpi/xmpi_view.cc:850: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).
		buf, strlen(buf));
data/xmpi-2.2.3b8/src/xmpi/xmpi_view.cc:914: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(fmtbuf, "+");
data/xmpi-2.2.3b8/src/xmpi/xmpi_view.cc:916:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(fmtbuf, "?");
data/xmpi-2.2.3b8/src/xmpi/xmpi_view.cc:922: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).
  strwidth = XTextWidth(app_res.ap_msgfont, fmtbuf, strlen(fmtbuf));
data/xmpi-2.2.3b8/src/xmpi/xmpi_view.cc:926: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).
  XDrawString(disp, pixmap, fgpen, xnum, ynum, fmtbuf, strlen(fmtbuf));
data/xmpi-2.2.3b8/src/xmpi/xpm.cc:188:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(pixel_desc, p_xpm, char_pixel);
data/xmpi-2.2.3b8/src/xmpi/xpm.cc:270:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(c, desc, char_pixel);

ANALYSIS SUMMARY:

Hits = 280
Lines analyzed = 22483 in approximately 0.49 seconds (45584 lines/second)
Physical Source Lines of Code (SLOC) = 13109
Hits@level = [0]  36 [1]  76 [2] 118 [3]   3 [4]  83 [5]   0
Hits@level+ = [0+] 316 [1+] 280 [2+] 204 [3+]  86 [4+]  83 [5+]   0
Hits/KSLOC@level+ = [0+] 24.1056 [1+] 21.3594 [2+] 15.5618 [3+] 6.56038 [4+] 6.33153 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.