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/mrmpi-1.0~20140404/examples/rmat2.cpp
Examining data/mrmpi-1.0~20140404/examples/in.cc
Examining data/mrmpi-1.0~20140404/examples/cwordfreq.c
Examining data/mrmpi-1.0~20140404/examples/rmat.cpp
Examining data/mrmpi-1.0~20140404/examples/crmat.c
Examining data/mrmpi-1.0~20140404/examples/wordfreq.cpp
Examining data/mrmpi-1.0~20140404/oink/main.cpp
Examining data/mrmpi-1.0~20140404/oink/oink.h
Examining data/mrmpi-1.0~20140404/oink/sssp.h
Examining data/mrmpi-1.0~20140404/oink/neigh_tri.cpp
Examining data/mrmpi-1.0~20140404/oink/memory.cpp
Examining data/mrmpi-1.0~20140404/oink/degree_weight.h
Examining data/mrmpi-1.0~20140404/oink/scan_print_string_int.cpp
Examining data/mrmpi-1.0~20140404/oink/rmat2.cpp
Examining data/mrmpi-1.0~20140404/oink/universe.cpp
Examining data/mrmpi-1.0~20140404/oink/neighbor.cpp
Examining data/mrmpi-1.0~20140404/oink/error.h
Examining data/mrmpi-1.0~20140404/oink/rmat.h
Examining data/mrmpi-1.0~20140404/oink/pointers.h
Examining data/mrmpi-1.0~20140404/oink/version.h
Examining data/mrmpi-1.0~20140404/oink/degree.cpp
Examining data/mrmpi-1.0~20140404/oink/neigh_tri.h
Examining data/mrmpi-1.0~20140404/oink/reduce_count.cpp
Examining data/mrmpi-1.0~20140404/oink/oink.cpp
Examining data/mrmpi-1.0~20140404/oink/random_mars.cpp
Examining data/mrmpi-1.0~20140404/oink/neighbor.h
Examining data/mrmpi-1.0~20140404/oink/map_add_label.cpp
Examining data/mrmpi-1.0~20140404/oink/reduce_cull.cpp
Examining data/mrmpi-1.0~20140404/oink/error.cpp
Examining data/mrmpi-1.0~20140404/oink/cc_stats.h
Examining data/mrmpi-1.0~20140404/oink/scan_print_vertex.cpp
Examining data/mrmpi-1.0~20140404/oink/vertex_extract.h
Examining data/mrmpi-1.0~20140404/oink/object.h
Examining data/mrmpi-1.0~20140404/oink/histo.cpp
Examining data/mrmpi-1.0~20140404/oink/object.cpp
Examining data/mrmpi-1.0~20140404/oink/command.cpp
Examining data/mrmpi-1.0~20140404/oink/scan_print_edge.cpp
Examining data/mrmpi-1.0~20140404/oink/luby_find.cpp
Examining data/mrmpi-1.0~20140404/oink/map_edge_to_vertices.cpp
Examining data/mrmpi-1.0~20140404/oink/cc_find.h
Examining data/mrmpi-1.0~20140404/oink/typedefs.h
Examining data/mrmpi-1.0~20140404/oink/luby_find.h
Examining data/mrmpi-1.0~20140404/oink/universe.h
Examining data/mrmpi-1.0~20140404/oink/map_edge_to_vertex_pair.cpp
Examining data/mrmpi-1.0~20140404/oink/edge_upper.h
Examining data/mrmpi-1.0~20140404/oink/pagerank.cpp
Examining data/mrmpi-1.0~20140404/oink/map_edge_upper.cpp
Examining data/mrmpi-1.0~20140404/oink/pagerank.h
Examining data/mrmpi-1.0~20140404/oink/blockmacros.h
Examining data/mrmpi-1.0~20140404/oink/map_read_words.cpp
Examining data/mrmpi-1.0~20140404/oink/sssp.cpp
Examining data/mrmpi-1.0~20140404/oink/edge_upper.cpp
Examining data/mrmpi-1.0~20140404/oink/map_edge_to_vertex.cpp
Examining data/mrmpi-1.0~20140404/oink/degree_weight.cpp
Examining data/mrmpi-1.0~20140404/oink/degree_stats.h
Examining data/mrmpi-1.0~20140404/oink/mrmpi.h
Examining data/mrmpi-1.0~20140404/oink/cc_stats.cpp
Examining data/mrmpi-1.0~20140404/oink/variable.h
Examining data/mrmpi-1.0~20140404/oink/input.h
Examining data/mrmpi-1.0~20140404/oink/memory.h
Examining data/mrmpi-1.0~20140404/oink/command.h
Examining data/mrmpi-1.0~20140404/oink/vertex_extract.cpp
Examining data/mrmpi-1.0~20140404/oink/library.h
Examining data/mrmpi-1.0~20140404/oink/rmat.cpp
Examining data/mrmpi-1.0~20140404/oink/random_mars.h
Examining data/mrmpi-1.0~20140404/oink/map_add_weight.cpp
Examining data/mrmpi-1.0~20140404/oink/tri_find.cpp
Examining data/mrmpi-1.0~20140404/oink/library.cpp
Examining data/mrmpi-1.0~20140404/oink/cc_find.cpp
Examining data/mrmpi-1.0~20140404/oink/variable.cpp
Examining data/mrmpi-1.0~20140404/oink/rmat2.h
Examining data/mrmpi-1.0~20140404/oink/histo.h
Examining data/mrmpi-1.0~20140404/oink/map_invert.cpp
Examining data/mrmpi-1.0~20140404/oink/mrmpi.cpp
Examining data/mrmpi-1.0~20140404/oink/input.cpp
Examining data/mrmpi-1.0~20140404/oink/degree_stats.cpp
Examining data/mrmpi-1.0~20140404/oink/map_rmat_generate.cpp
Examining data/mrmpi-1.0~20140404/oink/map_read_edge_label.cpp
Examining data/mrmpi-1.0~20140404/oink/map_rmat_generate.h
Examining data/mrmpi-1.0~20140404/oink/map_read_vertex_label.cpp
Examining data/mrmpi-1.0~20140404/oink/degree.h
Examining data/mrmpi-1.0~20140404/oink/map_read_edge.cpp
Examining data/mrmpi-1.0~20140404/oink/tri_find.h
Examining data/mrmpi-1.0~20140404/oink/map_read_vertex_weight.cpp
Examining data/mrmpi-1.0~20140404/oink/map_read_edge_weight.cpp
Examining data/mrmpi-1.0~20140404/oink/wordfreq.cpp
Examining data/mrmpi-1.0~20140404/oink/wordfreq.h
Examining data/mrmpi-1.0~20140404/src/cmapreduce.h
Examining data/mrmpi-1.0~20140404/src/keyvalue.h
Examining data/mrmpi-1.0~20140404/src/memory.cpp
Examining data/mrmpi-1.0~20140404/src/spool.h
Examining data/mrmpi-1.0~20140404/src/keymultivalue.cpp
Examining data/mrmpi-1.0~20140404/src/mrtype.h
Examining data/mrmpi-1.0~20140404/src/error.h
Examining data/mrmpi-1.0~20140404/src/mapreduce.h
Examining data/mrmpi-1.0~20140404/src/version.h
Examining data/mrmpi-1.0~20140404/src/cmapreduce.cpp
Examining data/mrmpi-1.0~20140404/src/mapreduce.cpp
Examining data/mrmpi-1.0~20140404/src/error.cpp
Examining data/mrmpi-1.0~20140404/src/keyvalue.cpp
Examining data/mrmpi-1.0~20140404/src/keymultivalue.h
Examining data/mrmpi-1.0~20140404/src/hash.h
Examining data/mrmpi-1.0~20140404/src/hash.cpp
Examining data/mrmpi-1.0~20140404/src/irregular.h
Examining data/mrmpi-1.0~20140404/src/memory.h
Examining data/mrmpi-1.0~20140404/src/irregular.cpp
Examining data/mrmpi-1.0~20140404/src/spool.cpp
Examining data/mrmpi-1.0~20140404/src/mrmpi_config.h
Examining data/mrmpi-1.0~20140404/mpistubs/mpi.h
Examining data/mrmpi-1.0~20140404/mpistubs/mpi.cpp
Examining data/mrmpi-1.0~20140404/txt2html/txt2html.cpp

FINAL RESULTS:

data/mrmpi-1.0~20140404/examples/crmat.c:85: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(rmat.outfile,args[9]);
data/mrmpi-1.0~20140404/examples/crmat.c:131:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(fname,"%s.%d",rmat.outfile,me);
data/mrmpi-1.0~20140404/examples/rmat.cpp:89: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(rmat.outfile,args[9]);
data/mrmpi-1.0~20140404/examples/rmat.cpp:135:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(fname,"%s.%d",rmat.outfile,me);
data/mrmpi-1.0~20140404/examples/rmat2.cpp:104: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(rmat.outfile,args[9]);
data/mrmpi-1.0~20140404/examples/rmat2.cpp:163:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(fname,"%s.%d",rmat.outfile,me);
data/mrmpi-1.0~20140404/examples/rmat2.cpp:174:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(fname,"%s.header",rmat.outfile);
data/mrmpi-1.0~20140404/oink/input.cpp:154:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(str,"Input line too long: %s",line);
data/mrmpi-1.0~20140404/oink/input.cpp:179:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(str,"Unknown command: %s",line);
data/mrmpi-1.0~20140404/oink/input.cpp:202:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(str,"Cannot open input script %s",filename);
data/mrmpi-1.0~20140404/oink/input.cpp:218:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(line,single);
data/mrmpi-1.0~20140404/oink/input.cpp:241:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str,"Unknown command: %s",line);
data/mrmpi-1.0~20140404/oink/input.cpp:262: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(copy,line);
data/mrmpi-1.0~20140404/oink/input.cpp:360: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(work,str);
data/mrmpi-1.0~20140404/oink/input.cpp:363: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(work,value);
data/mrmpi-1.0~20140404/oink/input.cpp:366: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(work,beyond);
data/mrmpi-1.0~20140404/oink/input.cpp:367: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(str,work);
data/mrmpi-1.0~20140404/oink/input.cpp:536: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(scopy,arg[0]);
data/mrmpi-1.0~20140404/oink/input.cpp:568: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(commands[ncommands],arg[i]);
data/mrmpi-1.0~20140404/oink/input.cpp:597: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(scopy,arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/input.cpp:623: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(commands[ncommands],arg[i]);
data/mrmpi-1.0~20140404/oink/input.cpp:657:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(str,"Cannot open input script %s",arg[0]);
data/mrmpi-1.0~20140404/oink/input.cpp:682:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(str,"Cannot open input script %s",arg[0]);
data/mrmpi-1.0~20140404/oink/input.cpp:694: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(labelstr,arg[1]);
data/mrmpi-1.0~20140404/oink/input.cpp:719:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(str,"Cannot open logfile %s",arg[0]);
data/mrmpi-1.0~20140404/oink/memory.cpp:32:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str,"Failed to allocate %d bytes for array %s",n,name);
data/mrmpi-1.0~20140404/oink/memory.cpp:62:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str,"Failed to reallocate %d bytes for array %s",n,name);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:140: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(strings[i],one);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:175: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(strings[i],one);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:211: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(strings[i],one);
data/mrmpi-1.0~20140404/oink/neigh_tri.cpp:70: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(dirname,arg[0]);
data/mrmpi-1.0~20140404/oink/neigh_tri.cpp:118:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(fname,"%s/%lu",nt->dirname,vi);
data/mrmpi-1.0~20140404/oink/object.cpp:322: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(mrwrap[index]->name,out->name);
data/mrmpi-1.0~20140404/oink/object.cpp:341:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(str,"Command output could not open output file %s",
data/mrmpi-1.0~20140404/oink/object.cpp:521: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(out->name,name);
data/mrmpi-1.0~20140404/oink/object.cpp:576: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(mrwrap[nmr]->name,name);
data/mrmpi-1.0~20140404/oink/object.cpp:640: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(in->prepend,arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:661: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(in->sepstr,arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:701: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(out->prepend,arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:739: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(global.scratch,arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:744: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(global.prepend,arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:919:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tmppath,"%s/%s.%d",prepend,inpath,me);
data/mrmpi-1.0~20140404/oink/object.cpp:921:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tmppath,"%s/%s",prepend,inpath);
data/mrmpi-1.0~20140404/oink/object.cpp:923:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tmppath,"%s.%d",inpath,me);
data/mrmpi-1.0~20140404/oink/object.cpp:925: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(tmppath,inpath);
data/mrmpi-1.0~20140404/oink/object.cpp:928: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).
  if (!ptr) strcpy(outpath,tmppath);
data/mrmpi-1.0~20140404/oink/object.cpp:931:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(outpath,"%s%d%s",tmppath,me,ptr+1);
data/mrmpi-1.0~20140404/oink/object.cpp:934:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(outpath,"%s%d%s",tmppath,(me%substitute)+1,ptr+1);
data/mrmpi-1.0~20140404/oink/object.cpp:940:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tmppath,"%s%d%s",outpath,multi,ptr+1);
data/mrmpi-1.0~20140404/oink/object.cpp:941: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(outpath,tmppath);
data/mrmpi-1.0~20140404/oink/object.cpp:958: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(dironly,path);
data/mrmpi-1.0~20140404/oink/object.cpp:969: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(copy,dironly);
data/mrmpi-1.0~20140404/oink/object.cpp:987:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str,"Could not create dir for file %s\n",path);
data/mrmpi-1.0~20140404/oink/oink.cpp:149:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(str,"Cannot open input script %s",arg[inflag]);
data/mrmpi-1.0~20140404/oink/oink.cpp:179:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(str,"%s.%d",arg[screenflag],universe->iworld);
data/mrmpi-1.0~20140404/oink/oink.cpp:195:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(str,"%s.%d",arg[logflag],universe->iworld);
data/mrmpi-1.0~20140404/oink/oink.cpp:205:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(str,"Cannot open input script %s",arg[inflag]);
data/mrmpi-1.0~20140404/oink/variable.cpp:276: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(names[nvar],arg[0]);
data/mrmpi-1.0~20140404/oink/variable.cpp:412:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(result,padstr,which[ivar]+offset[ivar]);
data/mrmpi-1.0~20140404/oink/variable.cpp:417: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(data[ivar][0],result);
data/mrmpi-1.0~20140404/oink/variable.cpp:428: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(data[ivar][1],result);
data/mrmpi-1.0~20140404/oink/variable.cpp:465:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(result,padstr,nth+offset[ivar]);
data/mrmpi-1.0~20140404/oink/variable.cpp:470: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(data[ivar][0],result);
data/mrmpi-1.0~20140404/oink/variable.cpp:556: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(to[i],from[i]);
data/mrmpi-1.0~20140404/oink/variable.cpp:669: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(id,&word[2]);
data/mrmpi-1.0~20140404/oink/variable.cpp:922: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(arg1,contents);
data/mrmpi-1.0~20140404/oink/variable.cpp:927: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(arg2,ptr1+1);
data/mrmpi-1.0~20140404/oink/variable.cpp:933: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(arg3,ptr2+1);
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:1488:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(msg,"Cannot open KeyMultiValue file %s for writing",filename);
data/mrmpi-1.0~20140404/src/keyvalue.cpp:687:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(msg,"Cannot open KeyValue file %s for writing",filename);
data/mrmpi-1.0~20140404/src/mapreduce.cpp:223:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(fpath,QMRMPI_FPATH);
data/mrmpi-1.0~20140404/src/mapreduce.cpp:295: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(mrnew->fpath,fpath);
data/mrmpi-1.0~20140404/src/mapreduce.cpp:1207: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(filemap.sepstr,sepstr);
data/mrmpi-1.0~20140404/src/mapreduce.cpp:1247: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(filemap.filename[i],files[i]);
data/mrmpi-1.0~20140404/src/mapreduce.cpp:1645:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(procfile,"%s.%d",file,me);
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2735:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(msg,"Could not query status of file %s in map",str);
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2744:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(msg,"Cannot open directory %s to search for files in map",str);
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2749:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(newstr,"%s/%s",str,ep->d_name);
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2758:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(msg,"Invalid filename %s in map",str);
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2780: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(files[nfile],str);
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2788:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(msg,"Could not open file %s of filenames in map",str);
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2799:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(msg,"Blank line in file %s of filenames in map",str);
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2814: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(files[nfile],ptr);
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2987: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(fpath,str);
data/mrmpi-1.0~20140404/src/mapreduce.cpp:3029:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(str,"%s time (secs) =",heading);
data/mrmpi-1.0~20140404/src/mapreduce.cpp:3096:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(fname,"%s/mrmpi.kv.%d.%d.%d",fpath,instance_me,fcounter_kv++,me);
data/mrmpi-1.0~20140404/src/mapreduce.cpp:3098:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(fname,"%s/mrmpi.kmv.%d.%d.%d",fpath,instance_me,fcounter_kmv++,me);
data/mrmpi-1.0~20140404/src/mapreduce.cpp:3100:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(fname,"%s/mrmpi.sort.%d.%d.%d",fpath,instance_me,
data/mrmpi-1.0~20140404/src/mapreduce.cpp:3103:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(fname,"%s/mrmpi.part.%d.%d.%d",fpath,instance_me,
data/mrmpi-1.0~20140404/src/mapreduce.cpp:3106:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(fname,"%s/mrmpi.set.%d.%d.%d",fpath,instance_me,
data/mrmpi-1.0~20140404/src/memory.cpp:48:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str,"Failed to allocate %lu bytes for array %s",n,name);
data/mrmpi-1.0~20140404/src/memory.cpp:67:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str,"Failed to allocate %lu bytes for array %s",n,name);
data/mrmpi-1.0~20140404/src/memory.cpp:97:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str,"Failed to reallocate %lu bytes for array %s",n,name);
data/mrmpi-1.0~20140404/src/spool.cpp:227:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(msg,"Cannot open Spool file %s for writing",filename);
data/mrmpi-1.0~20140404/txt2html/txt2html.cpp:103: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(skipfiles[nskip],arg[iarg+1]);
data/mrmpi-1.0~20140404/examples/crmat.c:201:12:  [3] (random) drand48:
  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.
      rn = drand48();
data/mrmpi-1.0~20140404/examples/crmat.c:214:23:  [3] (random) drand48:
  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.
	a1 += a1*fraction * (drand48() - 0.5);
data/mrmpi-1.0~20140404/examples/crmat.c:215:23:  [3] (random) drand48:
  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.
	b1 += b1*fraction * (drand48() - 0.5);
data/mrmpi-1.0~20140404/examples/crmat.c:216:23:  [3] (random) drand48:
  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.
	c1 += c1*fraction * (drand48() - 0.5);
data/mrmpi-1.0~20140404/examples/crmat.c:217:23:  [3] (random) drand48:
  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.
	d1 += d1*fraction * (drand48() - 0.5);
data/mrmpi-1.0~20140404/examples/rmat.cpp:205:12:  [3] (random) drand48:
  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.
      rn = drand48();
data/mrmpi-1.0~20140404/examples/rmat.cpp:218:23:  [3] (random) drand48:
  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.
	a1 += a1*fraction * (drand48() - 0.5);
data/mrmpi-1.0~20140404/examples/rmat.cpp:219:23:  [3] (random) drand48:
  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.
	b1 += b1*fraction * (drand48() - 0.5);
data/mrmpi-1.0~20140404/examples/rmat.cpp:220:23:  [3] (random) drand48:
  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.
	c1 += c1*fraction * (drand48() - 0.5);
data/mrmpi-1.0~20140404/examples/rmat.cpp:221:23:  [3] (random) drand48:
  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.
	d1 += d1*fraction * (drand48() - 0.5);
data/mrmpi-1.0~20140404/examples/rmat2.cpp:252:12:  [3] (random) drand48:
  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.
      rn = drand48();
data/mrmpi-1.0~20140404/examples/rmat2.cpp:265:23:  [3] (random) drand48:
  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.
	a1 += a1*fraction * (drand48() - 0.5);
data/mrmpi-1.0~20140404/examples/rmat2.cpp:266:23:  [3] (random) drand48:
  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.
	b1 += b1*fraction * (drand48() - 0.5);
data/mrmpi-1.0~20140404/examples/rmat2.cpp:267:23:  [3] (random) drand48:
  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.
	c1 += c1*fraction * (drand48() - 0.5);
data/mrmpi-1.0~20140404/examples/rmat2.cpp:268:23:  [3] (random) drand48:
  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.
	d1 += d1*fraction * (drand48() - 0.5);
data/mrmpi-1.0~20140404/oink/cc_find.cpp:234:60:  [3] (random) drand48:
  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.
    uint64_t iproc = static_cast<uint64_t> (data->nprocs * drand48());
data/mrmpi-1.0~20140404/oink/luby_find.cpp:131:13:  [3] (random) drand48:
  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.
  edge.ri = drand48();
data/mrmpi-1.0~20140404/oink/luby_find.cpp:134:13:  [3] (random) drand48:
  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.
  edge.rj = drand48();
data/mrmpi-1.0~20140404/oink/map_rmat_generate.cpp:38:12:  [3] (random) drand48:
  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.
      rn = drand48();
data/mrmpi-1.0~20140404/oink/map_rmat_generate.cpp:51:23:  [3] (random) drand48:
  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.
	a1 += a1*fraction * (drand48() - 0.5);
data/mrmpi-1.0~20140404/oink/map_rmat_generate.cpp:52:23:  [3] (random) drand48:
  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.
	b1 += b1*fraction * (drand48() - 0.5);
data/mrmpi-1.0~20140404/oink/map_rmat_generate.cpp:53:23:  [3] (random) drand48:
  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.
	c1 += c1*fraction * (drand48() - 0.5);
data/mrmpi-1.0~20140404/oink/map_rmat_generate.cpp:54:23:  [3] (random) drand48:
  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.
	d1 += d1*fraction * (drand48() - 0.5);
data/mrmpi-1.0~20140404/examples/crmat.c:74:18:  [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).
  rmat.nlevels = atoi(args[1]); 
data/mrmpi-1.0~20140404/examples/crmat.c:75: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).
  rmat.nnonzero = atoi(args[2]); 
data/mrmpi-1.0~20140404/examples/crmat.c:81: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).
  int seed = atoi(args[8]);
data/mrmpi-1.0~20140404/examples/crmat.c:130:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fname[128];
data/mrmpi-1.0~20140404/examples/crmat.c:132:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    rmat.fp = fopen(fname,"w");
data/mrmpi-1.0~20140404/examples/cwordfreq.c:115:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *fp = fopen(files[itask],"r");
data/mrmpi-1.0~20140404/examples/cwordfreq.c:116:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char text[filesize+1];
data/mrmpi-1.0~20140404/examples/rmat.cpp:78:18:  [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).
  rmat.nlevels = atoi(args[1]); 
data/mrmpi-1.0~20140404/examples/rmat.cpp:79: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).
  rmat.nnonzero = atoi(args[2]); 
data/mrmpi-1.0~20140404/examples/rmat.cpp:85: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).
  int seed = atoi(args[8]);
data/mrmpi-1.0~20140404/examples/rmat.cpp:134:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fname[128];
data/mrmpi-1.0~20140404/examples/rmat.cpp:136:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    rmat.fp = fopen(fname,"w");
data/mrmpi-1.0~20140404/examples/rmat2.cpp:93:18:  [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).
  rmat.nlevels = atoi(args[1]); 
data/mrmpi-1.0~20140404/examples/rmat2.cpp:94: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).
  rmat.nnonzero = atoi(args[2]); 
data/mrmpi-1.0~20140404/examples/rmat2.cpp:100: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).
  int seed = atoi(args[8]);
data/mrmpi-1.0~20140404/examples/rmat2.cpp:162:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fname[128];
data/mrmpi-1.0~20140404/examples/rmat2.cpp:164:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    rmat.fp = fopen(fname,"w");
data/mrmpi-1.0~20140404/examples/rmat2.cpp:175: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).
      rmat.fp = fopen(fname,"w");
data/mrmpi-1.0~20140404/examples/wordfreq.cpp:116:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *fp = fopen(fname,"r");
data/mrmpi-1.0~20140404/mpistubs/mpi.cpp:93: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(name,"Proc 0");
data/mrmpi-1.0~20140404/mpistubs/mpi.cpp:256: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(recvbuf,sendbuf,n);
data/mrmpi-1.0~20140404/mpistubs/mpi.cpp:273: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(recvbuf,sendbuf,n);
data/mrmpi-1.0~20140404/mpistubs/mpi.cpp:293: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(recvbuf,sendbuf,n);
data/mrmpi-1.0~20140404/mpistubs/mpi.cpp:313: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(recvbuf,sendbuf,n);
data/mrmpi-1.0~20140404/mpistubs/mpi.cpp:332: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(recvbuf,sendbuf,n);
data/mrmpi-1.0~20140404/mpistubs/mpi.cpp:352: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(recvbuf,sendbuf,n);
data/mrmpi-1.0~20140404/mpistubs/mpi.cpp:372: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(recvbuf,sendbuf,n);
data/mrmpi-1.0~20140404/mpistubs/mpi.cpp:394: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(recvbuf,sendbuf,n);
data/mrmpi-1.0~20140404/oink/cc_find.cpp:104: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 msg[128];
data/mrmpi-1.0~20140404/oink/cc_find.cpp:105: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(msg,"CC_find: %lu components in %d iterations",ncc,niterate);
data/mrmpi-1.0~20140404/oink/cc_find.cpp:116:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  nthresh = atoi(arg[0]); 
data/mrmpi-1.0~20140404/oink/cc_stats.cpp:56: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 msg[128];
data/mrmpi-1.0~20140404/oink/cc_stats.cpp:57: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(msg,"CCStats: %lu components, %lu vertices",ncc,nvert);
data/mrmpi-1.0~20140404/oink/cc_stats.cpp:75: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 line[MAXLINE];
data/mrmpi-1.0~20140404/oink/cc_stats.cpp:78:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *fp = fopen(file,"r");
data/mrmpi-1.0~20140404/oink/degree.cpp: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 msg[128];
data/mrmpi-1.0~20140404/oink/degree.cpp:55: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(msg,"Degree: %lu vertices, %lu edges",nvert,nedge);
data/mrmpi-1.0~20140404/oink/degree.cpp:67: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).
  duplicate = atoi(arg[0]);
data/mrmpi-1.0~20140404/oink/degree_stats.cpp: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 msg[128];
data/mrmpi-1.0~20140404/oink/degree_stats.cpp:59: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(msg,"DegreeStats: %lu vertices, %lu edges",nvert,nedge);
data/mrmpi-1.0~20140404/oink/degree_stats.cpp:72: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).
  duplicate = atoi(arg[0]);
data/mrmpi-1.0~20140404/oink/degree_weight.cpp: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 msg[128];
data/mrmpi-1.0~20140404/oink/degree_weight.cpp:56: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(msg,"DegreeWeight: %lu vertices, %lu edges",nvert,nedge);
data/mrmpi-1.0~20140404/oink/edge_upper.cpp: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 msg[128];
data/mrmpi-1.0~20140404/oink/edge_upper.cpp:55: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(msg,"EdgeUpper: %lu original edges, %lu final edges",
data/mrmpi-1.0~20140404/oink/histo.cpp:67: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 msg[128];
data/mrmpi-1.0~20140404/oink/histo.cpp:68: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(msg,"Histo: %lu total keys, %lu unique",ntotal,nunique);
data/mrmpi-1.0~20140404/oink/input.cpp:153: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 str[MAXLINE+32];
data/mrmpi-1.0~20140404/oink/input.cpp:178: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 str[MAXLINE];
data/mrmpi-1.0~20140404/oink/input.cpp:199: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).
    infile = fopen(filename,"r");
data/mrmpi-1.0~20140404/oink/input.cpp:201: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 str[128];
data/mrmpi-1.0~20140404/oink/input.cpp:240:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[MAXLINE];
data/mrmpi-1.0~20140404/oink/input.cpp:654: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).
    infile = fopen(arg[0],"r");
data/mrmpi-1.0~20140404/oink/input.cpp:656: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 str[128];
data/mrmpi-1.0~20140404/oink/input.cpp:679: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).
      infile = fopen(arg[0],"r");
data/mrmpi-1.0~20140404/oink/input.cpp:681: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/mrmpi-1.0~20140404/oink/input.cpp:716: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).
      logfile = fopen(arg[0],"w");
data/mrmpi-1.0~20140404/oink/input.cpp:718: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/mrmpi-1.0~20140404/oink/luby_find.cpp:73: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).
  mrv->open();
data/mrmpi-1.0~20140404/oink/luby_find.cpp: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 msg[128];
data/mrmpi-1.0~20140404/oink/luby_find.cpp:93: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(msg,"Luby_find: %lu MIS vertices in %d iterations",nset,niterate);
data/mrmpi-1.0~20140404/oink/luby_find.cpp:104: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).
  seed = atoi(arg[0]); 
data/mrmpi-1.0~20140404/oink/map_read_edge.cpp:16: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 line[MAXLINE];
data/mrmpi-1.0~20140404/oink/map_read_edge.cpp:19:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *fp = fopen(file,"r");
data/mrmpi-1.0~20140404/oink/map_read_edge_label.cpp:17: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 line[MAXLINE];
data/mrmpi-1.0~20140404/oink/map_read_edge_label.cpp:21:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *fp = fopen(file,"r");
data/mrmpi-1.0~20140404/oink/map_read_edge_weight.cpp:17: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 line[MAXLINE];
data/mrmpi-1.0~20140404/oink/map_read_edge_weight.cpp:21:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *fp = fopen(file,"r");
data/mrmpi-1.0~20140404/oink/map_read_vertex_label.cpp:17: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 line[MAXLINE];
data/mrmpi-1.0~20140404/oink/map_read_vertex_label.cpp:21:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *fp = fopen(file,"r");
data/mrmpi-1.0~20140404/oink/map_read_vertex_weight.cpp:17: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 line[MAXLINE];
data/mrmpi-1.0~20140404/oink/map_read_vertex_weight.cpp:21:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *fp = fopen(file,"r");
data/mrmpi-1.0~20140404/oink/map_read_words.cpp:15: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 line[MAXLINE];
data/mrmpi-1.0~20140404/oink/map_read_words.cpp:21:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *fp = fopen(file,"r");
data/mrmpi-1.0~20140404/oink/memory.cpp:31:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[128];
data/mrmpi-1.0~20140404/oink/memory.cpp:61:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[128];
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:74: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).
    int root = atoi(arg[0]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:85:18:  [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).
      int ikey = atoi(arg[1]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:113:18:  [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).
    int nprocs = atoi(arg[0]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:118: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).
    int nmap = atoi(arg[0]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:144: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).
    int self = atoi(arg[1]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:145: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).
    int recurse = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:146: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).
    int readfile = atoi(arg[3]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:160: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).
    int nmap = atoi(arg[0]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:179: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).
    int recurse = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:180: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).
    int readfile = atoi(arg[3]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:182: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).
    int delta = atoi(arg[5]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:196: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).
    int nmap = atoi(arg[0]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:215: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).
    int recurse = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:216: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).
    int readfile = atoi(arg[3]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:218: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).
    int delta = atoi(arg[5]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:241:9:  [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).
    mr->open();
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:244:18:  [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).
      int proc = atoi(arg[0]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:245: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).
      int nstride = atoi(arg[1]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:246: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).
      int kflag = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:247: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).
      int vflag = atoi(arg[3]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:251: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).
      int fflag = atoi(arg[1]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:252:18:  [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).
      int proc = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:253: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).
      int nstride = atoi(arg[3]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:254: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).
      int kflag = atoi(arg[4]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:255: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).
      int vflag = atoi(arg[5]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:275:18:  [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).
    int nprocs = atoi(arg[0]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:277:18:  [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).
      int ikey = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:283: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).
      double dkey = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:292:18:  [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).
      int flag = atoi(arg[0]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:301:18:  [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).
      int flag = atoi(arg[0]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:310:18:  [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).
      int flag = atoi(arg[0]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:318: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).
    int level = atoi(arg[0]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:322: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).
    int level = atoi(arg[0]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:326: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).
    int level = atoi(arg[0]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:327: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).
    int reset = atoi(arg[1]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:332:56:  [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 (strcmp(arg[1],"mapstyle") == 0) mr->mapstyle = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:333:59:  [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 (strcmp(arg[1],"all2all") == 0) mr->all2all = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:334:63:  [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 (strcmp(arg[1],"verbosity") == 0) mr->verbosity = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:335:55:  [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 (strcmp(arg[1],"timer") == 0) mr->timer = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:336:59:  [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 (strcmp(arg[1],"memsize") == 0) mr->memsize = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:337:59:  [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 (strcmp(arg[1],"minpage") == 0) mr->minpage = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:338:59:  [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 (strcmp(arg[1],"maxpage") == 0) mr->maxpage = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:339:61:  [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 (strcmp(arg[1],"freepage") == 0) mr->freepage = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:340:63:  [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 (strcmp(arg[1],"outofcore") == 0) mr->outofcore = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:341:61:  [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 (strcmp(arg[1],"zeropage") == 0) mr->zeropage = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:342:61:  [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 (strcmp(arg[1],"keyalign") == 0) mr->keyalign = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:343:65:  [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 (strcmp(arg[1],"valuealign") == 0) mr->valuealign = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/neigh_tri.cpp:47: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 line[MAXLINE];
data/mrmpi-1.0~20140404/oink/neigh_tri.cpp:81:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *fp = fopen(file,"r");
data/mrmpi-1.0~20140404/oink/neigh_tri.cpp: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 line[MAXLINE];
data/mrmpi-1.0~20140404/oink/neigh_tri.cpp:99:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *fp = fopen(file,"r");
data/mrmpi-1.0~20140404/oink/neigh_tri.cpp:117:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fname[128];
data/mrmpi-1.0~20140404/oink/neigh_tri.cpp:119:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *fp = fopen(fname,"w");
data/mrmpi-1.0~20140404/oink/object.cpp:338: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).
    FILE *fp = fopen(out->procfile,"w");
data/mrmpi-1.0~20140404/oink/object.cpp:340: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 str[256];
data/mrmpi-1.0~20140404/oink/object.cpp:602:34:  [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 (narg >= 2) mr->verbosity = atoi(arg[1]);
data/mrmpi-1.0~20140404/oink/object.cpp:603:30:  [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 (narg >= 3) mr->timer = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/object.cpp:604:32:  [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 (narg >= 4) mr->memsize = atoi(arg[3]);
data/mrmpi-1.0~20140404/oink/object.cpp:605:34:  [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 (narg == 5) mr->outofcore = atoi(arg[4]);
data/mrmpi-1.0~20140404/oink/object.cpp:616: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).
  int index = atoi(arg[0]) - 1;
data/mrmpi-1.0~20140404/oink/object.cpp:643: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).
      in->substitute = atoi(arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:645: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).
      in->multi = atoi(arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:647: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).
      in->mmode = atoi(arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:649: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).
      in->recurse = atoi(arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:651:18:  [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).
      in->self = atoi(arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:653:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      in->readfile = atoi(arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:655:18:  [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).
      in->nmap = atoi(arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:663: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).
      in->delta = atoi(arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:677: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).
  int index = atoi(arg[0]) - 1;
data/mrmpi-1.0~20140404/oink/object.cpp:704:25:  [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).
      out->substitute = atoi(arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:720:26:  [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).
      global.verbosity = atoi(arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:722:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      global.timer = atoi(arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:724: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).
      global.memsize = atoi(arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:726:26:  [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).
      global.outofcore = atoi(arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:728: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).
      global.minpage = atoi(arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:730: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).
      global.maxpage = atoi(arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:732:25:  [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).
      global.freepage = atoi(arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:734:25:  [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).
      global.zeropage = atoi(arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:746: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).
      global.substitute = atoi(arg[iarg+1]);
data/mrmpi-1.0~20140404/oink/object.cpp:813:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sdir[MAXLINE];
data/mrmpi-1.0~20140404/oink/object.cpp:916: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 tmppath[MAXLINE];
data/mrmpi-1.0~20140404/oink/object.cpp:953: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 dironly[MAXLINE],copy[MAXLINE];
data/mrmpi-1.0~20140404/oink/object.cpp:986:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[256];
data/mrmpi-1.0~20140404/oink/oink.cpp:110:27:  [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).
      universe->uscreen = fopen(arg[screenflag],"w");
data/mrmpi-1.0~20140404/oink/oink.cpp:115:28:  [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).
      universe->ulogfile = fopen("log.oink","w");
data/mrmpi-1.0~20140404/oink/oink.cpp:121:28:  [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).
      universe->ulogfile = fopen(arg[logflag],"w");
data/mrmpi-1.0~20140404/oink/oink.cpp:146: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).
      else infile = fopen(arg[inflag],"r");
data/mrmpi-1.0~20140404/oink/oink.cpp:148: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/mrmpi-1.0~20140404/oink/oink.cpp:171: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[32];
data/mrmpi-1.0~20140404/oink/oink.cpp:172: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,"screen.%d",universe->iworld);
data/mrmpi-1.0~20140404/oink/oink.cpp:173: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).
	screen = fopen(str,"w");
data/mrmpi-1.0~20140404/oink/oink.cpp:178: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/mrmpi-1.0~20140404/oink/oink.cpp:180: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).
	screen = fopen(str,"w");
data/mrmpi-1.0~20140404/oink/oink.cpp:187: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[32];
data/mrmpi-1.0~20140404/oink/oink.cpp:188: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,"log.lammps.%d",universe->iworld);
data/mrmpi-1.0~20140404/oink/oink.cpp:189: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).
	logfile = fopen(str,"w");
data/mrmpi-1.0~20140404/oink/oink.cpp:194: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/mrmpi-1.0~20140404/oink/oink.cpp:196: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).
	logfile = fopen(str,"w");
data/mrmpi-1.0~20140404/oink/oink.cpp:202: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).
      infile = fopen(arg[inflag],"r");
data/mrmpi-1.0~20140404/oink/oink.cpp:204: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/mrmpi-1.0~20140404/oink/pagerank.cpp:73:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  maxiter = atoi(arg[1]);
data/mrmpi-1.0~20140404/oink/rmat.cpp:65: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 msg[128];
data/mrmpi-1.0~20140404/oink/rmat.cpp:66: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(msg,"RMAT: %lu rows, %lu non-zeroes, %d iterations",
data/mrmpi-1.0~20140404/oink/rmat.cpp:79:18:  [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).
  rmat.nlevels = atoi(arg[0]); 
data/mrmpi-1.0~20140404/oink/rmat.cpp:80: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).
  rmat.nnonzero = atoi(arg[1]); 
data/mrmpi-1.0~20140404/oink/rmat.cpp:86: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).
  int seed = atoi(arg[7]);
data/mrmpi-1.0~20140404/oink/rmat2.cpp:68: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 msg[128];
data/mrmpi-1.0~20140404/oink/rmat2.cpp:69: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(msg,"RMAT2: %lu rows, %lu non-zeroes, %d iterations",
data/mrmpi-1.0~20140404/oink/rmat2.cpp:82:18:  [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).
  rmat.nlevels = atoi(arg[0]); 
data/mrmpi-1.0~20140404/oink/rmat2.cpp:83: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).
  rmat.nnonzero = atoi(arg[1]); 
data/mrmpi-1.0~20140404/oink/rmat2.cpp:89: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).
  int seed = atoi(arg[7]);
data/mrmpi-1.0~20140404/oink/sssp.cpp:399: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).
  ncnt = atoi(arg[0]);  std::cout << "PARAM ncnt=" << ncnt << std::endl;
data/mrmpi-1.0~20140404/oink/sssp.cpp:400: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).
  seed = atoi(arg[1]);  std::cout << "PARAM seed=" << seed << std::endl;
data/mrmpi-1.0~20140404/oink/tri_find.cpp:77: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 msg[128];
data/mrmpi-1.0~20140404/oink/tri_find.cpp:78: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(msg,"Tri_find: %lu triangles",ntri);
data/mrmpi-1.0~20140404/oink/universe.cpp:65: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).
    n = atoi(str);
data/mrmpi-1.0~20140404/oink/universe.cpp:66: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).
    nper = atoi(ptr+1);
data/mrmpi-1.0~20140404/oink/universe.cpp:69: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).
    nper = atoi(str);
data/mrmpi-1.0~20140404/oink/variable.cpp:136: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).
      nlast = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/variable.cpp:139: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 digits[12];
data/mrmpi-1.0~20140404/oink/variable.cpp:140: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(digits,"%d",nlast);
data/mrmpi-1.0~20140404/oink/variable.cpp:144: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).
      nfirst = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/variable.cpp:145: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).
      nlast = atoi(arg[3]);
data/mrmpi-1.0~20140404/oink/variable.cpp:148: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 digits[12];
data/mrmpi-1.0~20140404/oink/variable.cpp:149: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(digits,"%d",nlast);
data/mrmpi-1.0~20140404/oink/variable.cpp:199: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).
      num[nvar] = atoi(arg[2]);
data/mrmpi-1.0~20140404/oink/variable.cpp:204: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 digits[12];
data/mrmpi-1.0~20140404/oink/variable.cpp:205: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(digits,"%d",num[nvar]);
data/mrmpi-1.0~20140404/oink/variable.cpp:215:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FILE *fp = fopen("tmp.oink.variable","w");
data/mrmpi-1.0~20140404/oink/variable.cpp:357:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FILE *fp = fopen("tmp.oink.variable.lock","r");
data/mrmpi-1.0~20140404/oink/variable.cpp:360: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).
      fp = fopen("tmp.oink.variable.lock","w");
data/mrmpi-1.0~20140404/oink/variable.cpp:407:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char result[16];
data/mrmpi-1.0~20140404/oink/variable.cpp:408: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 (pad[ivar] == 0) sprintf(result,"%d",which[ivar]+offset[ivar]);
data/mrmpi-1.0~20140404/oink/variable.cpp:410: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 padstr[16];
data/mrmpi-1.0~20140404/oink/variable.cpp:411: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(padstr,"%%0%dd",pad[ivar]);
data/mrmpi-1.0~20140404/oink/variable.cpp:422:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char result[32];
data/mrmpi-1.0~20140404/oink/variable.cpp:424: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(result,"%.10g",answer);
data/mrmpi-1.0~20140404/oink/variable.cpp:460: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 result[16];
data/mrmpi-1.0~20140404/oink/variable.cpp:461:23:  [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 (pad[ivar] == 0) sprintf(result,"%d",nth+offset[ivar]);
data/mrmpi-1.0~20140404/oink/variable.cpp:463:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char padstr[16];
data/mrmpi-1.0~20140404/oink/variable.cpp:464: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(padstr,"%%0%dd",pad[ivar]);
data/mrmpi-1.0~20140404/oink/variable.cpp:1121: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);
data/mrmpi-1.0~20140404/oink/wordfreq.cpp:84: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 msg[128];
data/mrmpi-1.0~20140404/oink/wordfreq.cpp:85: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(msg,"WordFreq: %d files, %lu words, %lu unique",
data/mrmpi-1.0~20140404/oink/wordfreq.cpp:97: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).
  ntop = atoi(arg[0]); 
data/mrmpi-1.0~20140404/src/cmapreduce.cpp:256: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).
  return mr->open();
data/mrmpi-1.0~20140404/src/cmapreduce.cpp:262: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).
  return mr->open(addflag);
data/mrmpi-1.0~20140404/src/error.cpp:49:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[255];
data/mrmpi-1.0~20140404/src/irregular.cpp:252:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(cptrs[iproc],ptrs[i],sizes[i]);
data/mrmpi-1.0~20140404/src/irregular.cpp:297: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(ptr,ptrs[j],sizes[j]);
data/mrmpi-1.0~20140404/src/irregular.cpp:310: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(ptr,ptrs[j],sizes[j]);
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:174: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(page_hold,page,alignsize);
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:328: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(kptr,key,keybytes);
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:329: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(vptr,value,valuebytes);
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:422: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(cptr,key,keybytes);
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:454: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(multivalue,key_kv,keybytes_kv);
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:458: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(multivalue,value_kv,valuebytes_kv);
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:723: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(keyunique,key,keybytes);
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:881: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(kptr,keyunique,uptr->keybytes);
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:992: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(kptr,keyunique,uptr->keybytes);
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:1033:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(kptr,keyunique,uptr->keybytes);
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:1191: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(&multivalue[uptr->mvbytes],value,valuebytes);
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:1315: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(multivalue,value,valuebytes);
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:1485:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(filename,"wb");
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:1487: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 msg[1023];
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:1500:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[128];
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:1501: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,"Bad KMV fwrite/fseek on proc %d: %u",me,fileoffset);
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:1505:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[128];
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:1506: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,"Bad KMV fwrite on proc %d: %d %u",
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:1520:25:  [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 (writeflag) fp = fopen(filename,"r+b");
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:1521:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    else fp = fopen(filename,"rb");
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:1532:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[128];
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:1533: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,"Bad KMV fread/fseek on proc %d: %u",me,fileoffset);
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:1537:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[128];
data/mrmpi-1.0~20140404/src/keymultivalue.cpp:1538: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,"Bad KMV fread on proc %d: %d %u",
data/mrmpi-1.0~20140404/src/keyvalue.cpp:175: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(page_hold,page,alignsize);
data/mrmpi-1.0~20140404/src/keyvalue.cpp:378: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(kptr,key,keybytes);
data/mrmpi-1.0~20140404/src/keyvalue.cpp:379: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(vptr,value,valuebytes);
data/mrmpi-1.0~20140404/src/keyvalue.cpp:569:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&page[alignsize],ptr_begin,chunksize);
data/mrmpi-1.0~20140404/src/keyvalue.cpp:590: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(&page[alignsize],ptr,alignsize_buf);
data/mrmpi-1.0~20140404/src/keyvalue.cpp:684:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(filename,"wb");
data/mrmpi-1.0~20140404/src/keyvalue.cpp:686: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 msg[1023];
data/mrmpi-1.0~20140404/src/keyvalue.cpp:699:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[128];
data/mrmpi-1.0~20140404/src/keyvalue.cpp:700: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,"Bad KV fwrite/fseek on proc %d: %u",me,fileoffset);
data/mrmpi-1.0~20140404/src/keyvalue.cpp:704:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[128];
data/mrmpi-1.0~20140404/src/keyvalue.cpp:705: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,"Bad KV fwrite on proc %d: %d %u",
data/mrmpi-1.0~20140404/src/keyvalue.cpp:719:25:  [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 (writeflag) fp = fopen(filename,"r+b");
data/mrmpi-1.0~20140404/src/keyvalue.cpp:720:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    else fp = fopen(filename,"rb");
data/mrmpi-1.0~20140404/src/keyvalue.cpp:730:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[128];
data/mrmpi-1.0~20140404/src/keyvalue.cpp:731: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,"Bad KV fread/fseek on proc %d: %u",me,fileoffset);
data/mrmpi-1.0~20140404/src/keyvalue.cpp:735:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[128];
data/mrmpi-1.0~20140404/src/keyvalue.cpp:736: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,"Bad KV fread on proc %d: %d %u",
data/mrmpi-1.0~20140404/src/mapreduce.cpp:1317:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[128];
data/mrmpi-1.0~20140404/src/mapreduce.cpp:1318: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,"File(s) too small for file delta - decreased map tasks to %d",
data/mrmpi-1.0~20140404/src/mapreduce.cpp:1401:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *fp = fopen(filemap.filename[filemap.whichfile[imap]],"rb");
data/mrmpi-1.0~20140404/src/mapreduce.cpp:1543:17:  [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).
void MapReduce::open(int addflag)
data/mrmpi-1.0~20140404/src/mapreduce.cpp:1625: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).
    FILE *fp = fopen(file,"w");
data/mrmpi-1.0~20140404/src/mapreduce.cpp:1646: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).
    FILE *fp = fopen(procfile,"w");
data/mrmpi-1.0~20140404/src/mapreduce.cpp:1664: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).
    FILE *fp = fopen(file,"a");
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2230: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(ptr2,dptr[k],slength[k]);
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2233: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(multivalue,scratch,mvaluebytes);
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2241: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(valuesizes,newsizes,nvalues*sizeof(int));
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2448:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr,dptr[j],slength[j]);
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2730: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 newstr[MAXLINE];
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2734:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[256];
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2743: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 msg[256];
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2757:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[256];
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2785:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *fp = fopen(str,"r");
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2787:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[256];
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2792: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 line[MAXLINE];
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2798: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 msg[256];
data/mrmpi-1.0~20140404/src/mapreduce.cpp:3028: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 str[64];
data/mrmpi-1.0~20140404/src/mapreduce.h:96: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).
  void open(int addflag = 0);
data/mrmpi-1.0~20140404/src/memory.cpp:47:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[128];
data/mrmpi-1.0~20140404/src/memory.cpp:66:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[128];
data/mrmpi-1.0~20140404/src/memory.cpp:96:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[128];
data/mrmpi-1.0~20140404/src/spool.cpp:168: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(&page[size],entry,nbytes);
data/mrmpi-1.0~20140404/src/spool.cpp:193: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(&page[size],entries,nbytes);
data/mrmpi-1.0~20140404/src/spool.cpp:224:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(filename,"wb");
data/mrmpi-1.0~20140404/src/spool.cpp:226: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 msg[1023];
data/mrmpi-1.0~20140404/src/spool.cpp:237:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[128];
data/mrmpi-1.0~20140404/src/spool.cpp:238: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,"Bad SP fwrite: %d %u",nwrite,pages[npage].filesize);
data/mrmpi-1.0~20140404/src/spool.cpp:250:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(filename,"rb");
data/mrmpi-1.0~20140404/src/spool.cpp:258:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[128];
data/mrmpi-1.0~20140404/src/spool.cpp:259: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,"Bad SP fread: %d %u",nread,pages[ipage].filesize);
data/mrmpi-1.0~20140404/txt2html/txt2html.cpp: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 str[MAXLINE];
data/mrmpi-1.0~20140404/txt2html/txt2html.cpp:450: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).
	  rowquit = atoi(collumn.c_str());
data/mrmpi-1.0~20140404/txt2html/txt2html.cpp:471:18:  [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).
	  cnum[ncnum] = atoi(cwnum.c_str());
data/mrmpi-1.0~20140404/txt2html/txt2html.cpp:478: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).
	  acolnum[ncalign] = atoi(canum.c_str());
data/mrmpi-1.0~20140404/txt2html/txt2html.cpp:485:25:  [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).
	  vacolnum[ncvalign] = atoi(cvanum.c_str());
data/mrmpi-1.0~20140404/txt2html/txt2html.cpp:783:9:  [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).
  *in = fopen(infile.c_str(),"r");
data/mrmpi-1.0~20140404/txt2html/txt2html.cpp:787: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).
    *in = fopen(infile.c_str(),"r");
data/mrmpi-1.0~20140404/txt2html/txt2html.cpp:802: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).
    *out = fopen(outfile.c_str(),"w");
data/mrmpi-1.0~20140404/examples/crmat.c:83:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int n = strlen(args[9]) + 1;
data/mrmpi-1.0~20140404/examples/cwordfreq.c:124: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).
    MR_kv_add(kv,word,strlen(word)+1,NULL,0);
data/mrmpi-1.0~20140404/examples/in.cc:3:12:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
variable t equal time
data/mrmpi-1.0~20140404/examples/in.cc:4:12:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
variable p equal nprocs
data/mrmpi-1.0~20140404/examples/rmat.cpp:87:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int n = strlen(args[9]) + 1;
data/mrmpi-1.0~20140404/examples/rmat2.cpp:102:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int n = strlen(args[9]) + 1;
data/mrmpi-1.0~20140404/examples/wordfreq.cpp:125: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).
    kv->add(word,strlen(word)+1,NULL,0);
data/mrmpi-1.0~20140404/mpistubs/mpi.cpp:94: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(name);
data/mrmpi-1.0~20140404/oink/cc_stats.cpp:44:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  MapReduce *mrv = obj->input(1,read,NULL);
data/mrmpi-1.0~20140404/oink/cc_stats.cpp:73:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void CCStats::read(int itask, char *file, KeyValue *kv, void *ptr)
data/mrmpi-1.0~20140404/oink/cc_stats.h:31:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  static void read(int, char *, KeyValue *kv, void *);
data/mrmpi-1.0~20140404/oink/input.cpp:121: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).
	else n = strlen(line) + 1;
data/mrmpi-1.0~20140404/oink/input.cpp:309: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 (quote && arg[narg][strlen(arg[narg])-1] == quote) {
data/mrmpi-1.0~20140404/oink/input.cpp:311: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).
	arg[iarg][strlen(arg[iarg])] = ' ';
data/mrmpi-1.0~20140404/oink/input.cpp:312: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).
      arg[narg][strlen(arg[narg])-1] = '\0';
data/mrmpi-1.0~20140404/oink/input.cpp:349: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).
	beyond = ptr + strlen(var) + 3;
data/mrmpi-1.0~20140404/oink/input.cpp:354: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).
	beyond = ptr + strlen(var) + 1;
data/mrmpi-1.0~20140404/oink/input.cpp:361:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(work)+strlen(value) >= MAXLINE)
data/mrmpi-1.0~20140404/oink/input.cpp:361: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 (strlen(work)+strlen(value) >= MAXLINE)
data/mrmpi-1.0~20140404/oink/input.cpp:364:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(work)+strlen(beyond) >= MAXLINE)
data/mrmpi-1.0~20140404/oink/input.cpp:364: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 (strlen(work)+strlen(beyond) >= MAXLINE)
data/mrmpi-1.0~20140404/oink/input.cpp:368: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).
      ptr += strlen(value);
data/mrmpi-1.0~20140404/oink/input.cpp:565: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 n = strlen(arg[i]) + 1;
data/mrmpi-1.0~20140404/oink/input.cpp:620: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 n = strlen(arg[i]) + 1;
data/mrmpi-1.0~20140404/oink/input.cpp:692:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int n = strlen(arg[1]) + 1;
data/mrmpi-1.0~20140404/oink/map_read_words.cpp:25: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).
      kv->add(word,strlen(word)+1,NULL,0);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:95: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).
      mr->collapse(str,strlen(str)+1);
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:138: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).
	int n = strlen(one) + 1;
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:173: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).
	int n = strlen(one) + 1;
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:209: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).
	int n = strlen(one) + 1;
data/mrmpi-1.0~20140404/oink/mrmpi.cpp:287: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).
      mr->scrunch(nprocs,str,strlen(str)+1);
data/mrmpi-1.0~20140404/oink/neigh_tri.cpp:68: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).
  int n = strlen(arg[0]) + 1;
data/mrmpi-1.0~20140404/oink/object.cpp:320:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int n = strlen(out->name) + 1;
data/mrmpi-1.0~20140404/oink/object.cpp:515:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int n = strlen(name) + 1;
data/mrmpi-1.0~20140404/oink/object.cpp:574:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int n = strlen(name) + 1;
data/mrmpi-1.0~20140404/oink/object.cpp:592: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).
  int n = strlen(arg[0]);
data/mrmpi-1.0~20140404/oink/object.cpp:638: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 n = strlen(arg[iarg+1]) + 1;
data/mrmpi-1.0~20140404/oink/object.cpp:659: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 n = strlen(arg[iarg+1]) + 1;
data/mrmpi-1.0~20140404/oink/object.cpp:699: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 n = strlen(arg[iarg+1]) + 1;
data/mrmpi-1.0~20140404/oink/object.cpp:737: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 n = strlen(arg[iarg+1]) + 1;
data/mrmpi-1.0~20140404/oink/object.cpp:742: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 n = strlen(arg[iarg+1]) + 1;
data/mrmpi-1.0~20140404/oink/object.cpp:880: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(in->sepstr,"\n");
data/mrmpi-1.0~20140404/oink/object.cpp:972: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(ptr)) {
data/mrmpi-1.0~20140404/oink/object.cpp:973: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 offset = ptr+strlen(ptr)-copy;
data/mrmpi-1.0~20140404/oink/variable.cpp:141: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).
	pad[nvar] = strlen(digits);
data/mrmpi-1.0~20140404/oink/variable.cpp:150: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).
	pad[nvar] = strlen(digits);
data/mrmpi-1.0~20140404/oink/variable.cpp:206: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).
	pad[nvar] = strlen(digits);
data/mrmpi-1.0~20140404/oink/variable.cpp:274: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).
  int n = strlen(arg[0]) + 1;
data/mrmpi-1.0~20140404/oink/variable.cpp:355:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(100000);
data/mrmpi-1.0~20140404/oink/variable.cpp:414:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int n = strlen(result) + 1;
data/mrmpi-1.0~20140404/oink/variable.cpp:425:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int n = strlen(result) + 1;
data/mrmpi-1.0~20140404/oink/variable.cpp:467: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).
  int n = strlen(result) + 1;
data/mrmpi-1.0~20140404/oink/variable.cpp:554: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).
    n = strlen(from[i]) + 1;
data/mrmpi-1.0~20140404/oink/variable.cpp:635:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(number,&str[istart],n);
data/mrmpi-1.0~20140404/oink/variable.cpp:659:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(word,&str[istart],n);
data/mrmpi-1.0~20140404/oink/variable.cpp:667: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).
	n = strlen(word) - 2 + 1;
data/mrmpi-1.0~20140404/oink/variable.cpp:875:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(contents,&str[istart+1],n);
data/mrmpi-1.0~20140404/oink/variable.cpp:920: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).
  int n = strlen(contents) + 1;
data/mrmpi-1.0~20140404/oink/variable.cpp:925: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).
    n = strlen(ptr1+1) + 1;
data/mrmpi-1.0~20140404/oink/variable.cpp:931: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).
    n = strlen(ptr2+1) + 1;
data/mrmpi-1.0~20140404/oink/variable.cpp:1097: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).
  int n = strlen(str);
data/mrmpi-1.0~20140404/oink/variable.cpp:1115: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).
  int n = strlen(str);
data/mrmpi-1.0~20140404/oink/variable.cpp:1193:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(number,&str[istart],n);
data/mrmpi-1.0~20140404/src/mapreduce.cpp:221: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).
  int n = strlen(QMRMPI_FPATH) + 1;
data/mrmpi-1.0~20140404/src/mapreduce.cpp:226: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(fpath,".");
data/mrmpi-1.0~20140404/src/mapreduce.cpp:293: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).
  int n = strlen(fpath) + 1;
data/mrmpi-1.0~20140404/src/mapreduce.cpp:1205: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).
  int n = strlen(sepstr) + 1;
data/mrmpi-1.0~20140404/src/mapreduce.cpp:1245:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int n = strlen(files[i]) + 1;
data/mrmpi-1.0~20140404/src/mapreduce.cpp:1643:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int n = strlen(file) + 8;
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2778:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int n = strlen(str) + 1;
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2797: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(ptr) == 0) {
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2802: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).
    char *ptr2 = ptr + strlen(ptr) - 1;
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2812:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int n = strlen(ptr) + 1;
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2834: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 (me == 0) n = strlen(files[i]) + 1;
data/mrmpi-1.0~20140404/src/mapreduce.cpp:2985: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).
  int n = strlen(str) + 1;
data/mrmpi-1.0~20140404/src/mapreduce.cpp:3093: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).
  int n = strlen(fpath) + 32;
data/mrmpi-1.0~20140404/txt2html/txt2html.cpp:101: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).
      n = strlen(arg[iarg+1]) + 1;
data/mrmpi-1.0~20140404/txt2html/txt2html.cpp: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).
    if (strlen(str) == MAXLINE-1) {
data/mrmpi-1.0~20140404/txt2html/txt2html.cpp:255: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 (strspn(str," \t\n") == strlen(str) && first) continue;
data/mrmpi-1.0~20140404/txt2html/txt2html.cpp:256: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 (strspn(str," \t\n") == strlen(str)) return 1;

ANALYSIS SUMMARY:

Hits = 507
Lines analyzed = 20932 in approximately 0.65 seconds (32033 lines/second)
Physical Source Lines of Code (SLOC) = 13746
Hits@level = [0] 232 [1]  80 [2] 309 [3]  23 [4]  95 [5]   0
Hits@level+ = [0+] 739 [1+] 507 [2+] 427 [3+] 118 [4+]  95 [5+]   0
Hits/KSLOC@level+ = [0+] 53.7611 [1+] 36.8835 [2+] 31.0636 [3+] 8.58432 [4+] 6.9111 [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.