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/mona-1.4-17/BDD/bdd.c
Examining data/mona-1.4-17/BDD/bdd.h
Examining data/mona-1.4-17/BDD/bdd_cache.c
Examining data/mona-1.4-17/BDD/bdd_double.c
Examining data/mona-1.4-17/BDD/bdd_dump.c
Examining data/mona-1.4-17/BDD/bdd_dump.h
Examining data/mona-1.4-17/BDD/bdd_external.c
Examining data/mona-1.4-17/BDD/bdd_external.h
Examining data/mona-1.4-17/BDD/bdd_internal.h
Examining data/mona-1.4-17/BDD/bdd_manager.c
Examining data/mona-1.4-17/BDD/bdd_trace.c
Examining data/mona-1.4-17/BDD/hash.c
Examining data/mona-1.4-17/BDD/hash.h
Examining data/mona-1.4-17/DFA/analyze.c
Examining data/mona-1.4-17/DFA/basic.c
Examining data/mona-1.4-17/DFA/dfa.c
Examining data/mona-1.4-17/DFA/dfa.h
Examining data/mona-1.4-17/DFA/external.c
Examining data/mona-1.4-17/DFA/hash.h
Examining data/mona-1.4-17/DFA/makebasic.c
Examining data/mona-1.4-17/DFA/minimize.c
Examining data/mona-1.4-17/DFA/prefix.c
Examining data/mona-1.4-17/DFA/printdfa.c
Examining data/mona-1.4-17/DFA/product.c
Examining data/mona-1.4-17/DFA/project.c
Examining data/mona-1.4-17/DFA/quotient.c
Examining data/mona-1.4-17/Examples/bdd_example.c
Examining data/mona-1.4-17/Examples/gta_example.c
Examining data/mona-1.4-17/Examples/presburger_analysis.c
Examining data/mona-1.4-17/Examples/presburger_transduction.c
Examining data/mona-1.4-17/Front/ast.cpp
Examining data/mona-1.4-17/Front/ast.h
Examining data/mona-1.4-17/Front/astdump.cpp
Examining data/mona-1.4-17/Front/code.cpp
Examining data/mona-1.4-17/Front/code.h
Examining data/mona-1.4-17/Front/codedump.cpp
Examining data/mona-1.4-17/Front/codesubst.cpp
Examining data/mona-1.4-17/Front/codetable.cpp
Examining data/mona-1.4-17/Front/codetable.h
Examining data/mona-1.4-17/Front/deque.h
Examining data/mona-1.4-17/Front/env.h
Examining data/mona-1.4-17/Front/freevars.cpp
Examining data/mona-1.4-17/Front/ident.cpp
Examining data/mona-1.4-17/Front/ident.h
Examining data/mona-1.4-17/Front/lib.cpp
Examining data/mona-1.4-17/Front/lib.h
Examining data/mona-1.4-17/Front/makeguide.cpp
Examining data/mona-1.4-17/Front/mona.cpp
Examining data/mona-1.4-17/Front/offsets.cpp
Examining data/mona-1.4-17/Front/offsets.h
Examining data/mona-1.4-17/Front/predlib.cpp
Examining data/mona-1.4-17/Front/predlib.h
Examining data/mona-1.4-17/Front/printline.cpp
Examining data/mona-1.4-17/Front/printline.h
Examining data/mona-1.4-17/Front/reduce.cpp
Examining data/mona-1.4-17/Front/signature.cpp
Examining data/mona-1.4-17/Front/signature.h
Examining data/mona-1.4-17/Front/st_dfa.cpp
Examining data/mona-1.4-17/Front/st_dfa.h
Examining data/mona-1.4-17/Front/st_gta.cpp
Examining data/mona-1.4-17/Front/st_gta.h
Examining data/mona-1.4-17/Front/str.h
Examining data/mona-1.4-17/Front/symboltable.cpp
Examining data/mona-1.4-17/Front/symboltable.h
Examining data/mona-1.4-17/Front/timer.cpp
Examining data/mona-1.4-17/Front/timer.h
Examining data/mona-1.4-17/Front/untyped.cpp
Examining data/mona-1.4-17/Front/untyped.h
Examining data/mona-1.4-17/GTA/analyze.c
Examining data/mona-1.4-17/GTA/analyze_acceptance.c
Examining data/mona-1.4-17/GTA/basic.c
Examining data/mona-1.4-17/GTA/copy.c
Examining data/mona-1.4-17/GTA/dyn.c
Examining data/mona-1.4-17/GTA/dyn.h
Examining data/mona-1.4-17/GTA/external.c
Examining data/mona-1.4-17/GTA/gta.c
Examining data/mona-1.4-17/GTA/gta.h
Examining data/mona-1.4-17/GTA/makebasic.c
Examining data/mona-1.4-17/GTA/minimize.c
Examining data/mona-1.4-17/GTA/negation.c
Examining data/mona-1.4-17/GTA/pairhash.c
Examining data/mona-1.4-17/GTA/pairhash.h
Examining data/mona-1.4-17/GTA/printgta.c
Examining data/mona-1.4-17/GTA/product.c
Examining data/mona-1.4-17/GTA/project.c
Examining data/mona-1.4-17/GTA/projset.c
Examining data/mona-1.4-17/GTA/projset.h
Examining data/mona-1.4-17/GTA/reachable.c
Examining data/mona-1.4-17/GTA/replace_indices.c
Examining data/mona-1.4-17/GTA/restrict.c
Examining data/mona-1.4-17/GTA/subsets.c
Examining data/mona-1.4-17/GTA/subsets.h
Examining data/mona-1.4-17/GTA/types.c
Examining data/mona-1.4-17/Lib/bddlib.h
Examining data/mona-1.4-17/Lib/dfa2dot.c
Examining data/mona-1.4-17/Lib/dfalib.c
Examining data/mona-1.4-17/Lib/dfalib.h
Examining data/mona-1.4-17/Lib/gta2dot.c
Examining data/mona-1.4-17/Lib/gtalib.c
Examining data/mona-1.4-17/Lib/gtalib.h
Examining data/mona-1.4-17/Mem/dlmalloc.c
Examining data/mona-1.4-17/Mem/dlmalloc.h
Examining data/mona-1.4-17/Mem/gnuc.h
Examining data/mona-1.4-17/Mem/mem.c
Examining data/mona-1.4-17/Mem/mem.h

FINAL RESULTS:

data/mona-1.4-17/BDD/bdd_manager.c:191:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  printf(title, "size", "bddms", "double", "app1", "app2", 
data/mona-1.4-17/BDD/bdd_manager.c:195:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(form, 
data/mona-1.4-17/BDD/bdd_manager.c:215:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
 printf(total_form, 
data/mona-1.4-17/DFA/external.c:120:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      if (fscanf(file, " %s ", (*vars)[i]) != 1) {
data/mona-1.4-17/DFA/external.c:128:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      if (fscanf(file, " %s ", ts) != 1) {
data/mona-1.4-17/DFA/makebasic.c:52: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(exceptions[exception_index].path, path);
data/mona-1.4-17/Front/lib.cpp:57:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(x, "%s^", name);
data/mona-1.4-17/Front/lib.cpp:64: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(x+len, tmp);
data/mona-1.4-17/Front/lib.cpp:68: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(x+len, tmp);
data/mona-1.4-17/Front/lib.cpp:74: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(x+len, tmp);
data/mona-1.4-17/Front/lib.cpp:77:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(tmp, "_%s_%i", guide.univPos[i], guide.numUnivSS[i]);
data/mona-1.4-17/Front/lib.cpp:78: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(x+len, tmp);
data/mona-1.4-17/Front/lib.cpp:82: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(x+len, tmp);
data/mona-1.4-17/Front/lib.cpp:94:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(x+len, tmp);
data/mona-1.4-17/Front/lib.cpp:107: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(descriptor, x);
data/mona-1.4-17/Front/lib.cpp:122: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(descriptor, x);
data/mona-1.4-17/Front/lib.cpp:143:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(libname, "%s/LIB", dirname);
data/mona-1.4-17/Front/lib.cpp:162:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(t, "/bin/rm %s/*%s %s/LIB", 
data/mona-1.4-17/Front/lib.cpp:166:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system(t)) {
data/mona-1.4-17/Front/lib.cpp:206:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(t, "%s/%i%s", dirname, a->filenumber, 
data/mona-1.4-17/Front/lib.cpp:233: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(monalib, s);
data/mona-1.4-17/Front/lib.cpp:264: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(d, monalib);
data/mona-1.4-17/Front/lib.cpp:265:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(d, s);
data/mona-1.4-17/Front/makeguide.cpp:194:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(ssname, "ss-%s", pos); // ss-01101
data/mona-1.4-17/Front/makeguide.cpp:237:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(ssname, "ss-%s-%s-%s", univ, type, pos); // ss-U-A-01101
data/mona-1.4-17/Front/makeguide.cpp:258:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(ssname, "ss-%s-%s-%s-", univ, type, v->name);// ss-U-A-a1-
data/mona-1.4-17/Front/makeguide.cpp:286:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(ssname, "ss-%s-%s-%s-%s", univ, type, variant, pos);// ss-U-A-a1-01
data/mona-1.4-17/Front/makeguide.cpp:324:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(ssname, "ss-%s-%s-", univ, c->type); // ss-U-A-
data/mona-1.4-17/Front/makeguide.cpp:329:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(ssname, "ss-%s-%s-%s-", univ, c->type, v->name);// ss-U-A-a1-
data/mona-1.4-17/Front/makeguide.cpp:348:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(*leftpos, "%s0", pos);
data/mona-1.4-17/Front/makeguide.cpp:351:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(*rightpos, "%s1", pos);
data/mona-1.4-17/Front/makeguide.cpp:363:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(ssname, "dummy-%s", univ);
data/mona-1.4-17/Front/printline.cpp:68: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(temp, str);
data/mona-1.4-17/Front/str.h:43:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(p->s, s);
data/mona-1.4-17/Front/str.h:62: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(t, s1.p->s);
data/mona-1.4-17/Front/str.h:63:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(t, s2.p->s);
data/mona-1.4-17/GTA/external.c:212:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (fscanf(file, "%s %u %u\n", 
data/mona-1.4-17/GTA/external.c:216:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(f_ssName[i], buffer);
data/mona-1.4-17/GTA/external.c:223:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (fscanf(file, "\ntype: %s\n", buffer) != 1)
data/mona-1.4-17/GTA/external.c:226:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(f_treetypes[i].name, buffer);
data/mona-1.4-17/GTA/external.c:242:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      if (fscanf(file, "\nvariant: %s ", buffer) != 1)
data/mona-1.4-17/GTA/external.c:245:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(f_treetypes[i].variantName[j], buffer);
data/mona-1.4-17/GTA/external.c:246:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      if (fscanf(file, "%s\n", buffer) != 1)
data/mona-1.4-17/GTA/external.c:251:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(f_treetypes[i].variantPos[j], buffer);
data/mona-1.4-17/GTA/external.c:261:6:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	if (fscanf(file, "\n%s ", buffer) != 1)
data/mona-1.4-17/GTA/external.c:264: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(f_treetypes[i].componentName[j][k], buffer);
data/mona-1.4-17/GTA/external.c:265:6:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	if (fscanf(file, "%s ", buffer) != 1)
data/mona-1.4-17/GTA/external.c:270: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(f_treetypes[i].componentPos[j][k], buffer);
data/mona-1.4-17/GTA/external.c:282:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (fscanf(file, "%s %s\n", buffer, buffer2) != 2)   
data/mona-1.4-17/GTA/external.c:285:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(f_univName[i], buffer);
data/mona-1.4-17/GTA/external.c:287:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(f_univPos[i], buffer2);
data/mona-1.4-17/GTA/external.c:302:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      if (fscanf(file, " %s %d:", buffer, &((*orders)[i])) != 2)
data/mona-1.4-17/GTA/external.c:305:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      if (fscanf(file, " %s %d:", buffer, &ti) != 2)
data/mona-1.4-17/GTA/external.c:309: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((*vars)[i], buffer);
data/mona-1.4-17/GTA/external.c:336:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (fscanf(file, "%s", buffer) != 1)
data/mona-1.4-17/GTA/gta.c:155: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(ssPos[2*s+1], ssPos[s]);
data/mona-1.4-17/GTA/gta.c:158: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(ssPos[2*s+2], ssPos[s]);
data/mona-1.4-17/GTA/gta.c:166: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(guide.univPos[u], ssPos[s]);
data/mona-1.4-17/GTA/gta.c:167: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(guide.ssName[s], univName[u]);
data/mona-1.4-17/GTA/gta.c:245: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(pos0, pos);
data/mona-1.4-17/GTA/gta.c:248: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(pos1, pos);
data/mona-1.4-17/GTA/makebasic.c:175: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(exception[nextException++].path, path);
data/mona-1.4-17/GTA/types.c:262:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(newpath, "%s%s.", path, component);
data/mona-1.4-17/GTA/types.c:289:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(newpath, "%s%s.", path, variant);
data/mona-1.4-17/GTA/types.c:340:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(newpath, "%s%s%s", path, begin ? "" : ".", component);
data/mona-1.4-17/GTA/types.c:363:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(newpath, "%s%s%s", path, begin ? "" : ".", variant);
data/mona-1.4-17/GTA/types.c:434:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(path, "%s:", univname);
data/mona-1.4-17/GTA/types.c:457:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	      sprintf(path, "%s:", univname);
data/mona-1.4-17/GTA/types.c:479:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	      sprintf(path, "%s:", univname);
data/mona-1.4-17/Lib/dfalib.c:58:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (fscanf(file, " %s", t) != 1) {
data/mona-1.4-17/Lib/dfalib.c:64: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(dfa->var[i], t);
data/mona-1.4-17/Lib/gtalib.c:82:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (fscanf(file, "%s %u %u\n", 
data/mona-1.4-17/Lib/gtalib.c:90: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(gta->stateSpace[i].name, buffer);
data/mona-1.4-17/Lib/gtalib.c:101:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (fscanf(file, "\ntype: %s\n", buffer) != 1) {
data/mona-1.4-17/Lib/gtalib.c:107: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(t->name, buffer);
data/mona-1.4-17/Lib/gtalib.c:117:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      if (fscanf(file, "\nvariant: %s ", buffer) != 1) {
data/mona-1.4-17/Lib/gtalib.c:123: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(v->name, buffer);
data/mona-1.4-17/Lib/gtalib.c:124:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      if (fscanf(file, "%s\n", buffer) != 1) {
data/mona-1.4-17/Lib/gtalib.c:132: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(v->pos, buffer);
data/mona-1.4-17/Lib/gtalib.c:142:6:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	if (fscanf(file, "\n%s", buffer) != 1) {
data/mona-1.4-17/Lib/gtalib.c:148: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(c->name, buffer);
data/mona-1.4-17/Lib/gtalib.c:149:6:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	if (fscanf(file, " %s ", buffer) != 1) {
data/mona-1.4-17/Lib/gtalib.c:157: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(c->pos, buffer);
data/mona-1.4-17/Lib/gtalib.c:175:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (fscanf(file, "%s %s\n", buffer, buffer2) != 2) {
data/mona-1.4-17/Lib/gtalib.c:181: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(gta->universe[i].name, buffer);
data/mona-1.4-17/Lib/gtalib.c:183: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(gta->universe[i].pos, buffer2);
data/mona-1.4-17/Lib/gtalib.c:194:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (fscanf(file, " %s %d:", buffer, &gta->var[i].order) != 2) {
data/mona-1.4-17/Lib/gtalib.c:200: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(gta->var[i].name, buffer);
data/mona-1.4-17/Lib/gtalib.c:227:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (fscanf(file, "%s", buffer) != 1) {
data/mona-1.4-17/Front/lib.cpp:230:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *s = getenv("MONALIB");
data/mona-1.4-17/DFA/external.c:36:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((file = fopen(filename, "w")) == 0) 
data/mona-1.4-17/DFA/external.c:101: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 ts[100];
data/mona-1.4-17/DFA/external.c:105:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((file = fopen(filename, "r")) == 0) 
data/mona-1.4-17/DFA/makebasic.c:33:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[MAX_VARIABLES+1];
data/mona-1.4-17/DFA/makebasic.c:101:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char sorted_path[MAX_VARIABLES];    /* holds the current exception path, sorted according to the offsets */
data/mona-1.4-17/DFA/printdfa.c:263: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 *) mem_resize(buffer[pp->to], sizeof(char) * 
data/mona-1.4-17/DFA/product.c:129: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 binfun[4];
data/mona-1.4-17/Examples/gta_example.c:121: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 var_is_used[MAXVARS]; /* var_is_used[i] is true iff variable i
data/mona-1.4-17/Examples/gta_example.c:145: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 bit_vector[6] = {0, 1, 1, 0, 1, 0};
data/mona-1.4-17/Front/ast.cpp:1349: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(newsubst, subst, sizeof(SubstCode)*len);
data/mona-1.4-17/Front/ast.cpp:1379: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(newsubst, subst, sizeof(SubstCode)*len);
data/mona-1.4-17/Front/ast.cpp:1416: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(newsubst, subst, sizeof(SubstCode)*len);
data/mona-1.4-17/Front/ast.cpp:1446: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(newsubst, subst, sizeof(SubstCode)*len);
data/mona-1.4-17/Front/ast.cpp:1476: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(newsubst, subst, sizeof(SubstCode)*len);
data/mona-1.4-17/Front/ast.cpp:1513: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(newsubst, subst, sizeof(SubstCode)*len);
data/mona-1.4-17/Front/ast.cpp:1552: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(newsubst, subst, sizeof(SubstCode)*len);
data/mona-1.4-17/Front/deque.h:74: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(&t[start], &buffer[start], noelems * sizeof(T));
data/mona-1.4-17/Front/deque.h:96: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(&t[start + n - allocated], &buffer[start], noelems * sizeof(T));
data/mona-1.4-17/Front/lib.cpp:53:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tmp[1000];
data/mona-1.4-17/Front/lib.cpp:63:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(tmp, "^%i", guide.numSs);
data/mona-1.4-17/Front/lib.cpp:67:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(tmp, "_%i_%i", guide.muLeft[i], guide.muRight[i]);
data/mona-1.4-17/Front/lib.cpp:73:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(tmp, "^%i", guide.numUnivs);
data/mona-1.4-17/Front/lib.cpp:81: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(tmp, "_%i", guide.univSS[i][j]);
data/mona-1.4-17/Front/lib.cpp:93:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(tmp, "_%d", j);
data/mona-1.4-17/Front/lib.cpp:115: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 x[1000];
data/mona-1.4-17/Front/lib.cpp:161: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 t[500];
data/mona-1.4-17/Front/lib.cpp:268:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(d, ".lib");
data/mona-1.4-17/Front/printline.cpp:39: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 temp[77];
data/mona-1.4-17/Front/signature.cpp:90:11:  [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.
    to += sprintf(to, "_%i", sign[i]);
data/mona-1.4-17/Front/str.h:56: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(p->s, "%d", i);
data/mona-1.4-17/Front/str.h: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 t[1000];
data/mona-1.4-17/Front/symboltable.cpp:218: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(n, "<id%d>", noIdents);
data/mona-1.4-17/Front/untyped.cpp:1096: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 t[10];
data/mona-1.4-17/Front/untyped.cpp:1097: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(t, "%i",no);
data/mona-1.4-17/GTA/external.c:46:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((file = fopen(filename, "w")) == 0) 
data/mona-1.4-17/GTA/external.c:172:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1000], buffer2[1000];
data/mona-1.4-17/GTA/external.c:182:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((file = fopen(filename, "r")) == 0)  
data/mona-1.4-17/GTA/external.c:230:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      (char **) mem_alloc(sizeof(char *)*f_treetypes[i].numVariants);
data/mona-1.4-17/GTA/external.c:230:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      (char **) mem_alloc(sizeof(char *)*f_treetypes[i].numVariants);
data/mona-1.4-17/GTA/external.c:232:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      (char **) mem_alloc(sizeof(char *)*f_treetypes[i].numVariants);
data/mona-1.4-17/GTA/external.c:232:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      (char **) mem_alloc(sizeof(char *)*f_treetypes[i].numVariants);
data/mona-1.4-17/GTA/external.c:236:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      (char ***) mem_alloc(sizeof(char **)*f_treetypes[i].numVariants);
data/mona-1.4-17/GTA/external.c:236:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      (char ***) mem_alloc(sizeof(char **)*f_treetypes[i].numVariants);
data/mona-1.4-17/GTA/external.c:238:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      (char ***) mem_alloc(sizeof(char **)*f_treetypes[i].numVariants);
data/mona-1.4-17/GTA/external.c:238:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      (char ***) mem_alloc(sizeof(char **)*f_treetypes[i].numVariants);
data/mona-1.4-17/GTA/external.c:255: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 **) mem_alloc(sizeof(char *)*f_treetypes[i].numComponents[j]);
data/mona-1.4-17/GTA/external.c:255:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	(char **) mem_alloc(sizeof(char *)*f_treetypes[i].numComponents[j]);
data/mona-1.4-17/GTA/external.c:257: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 **) mem_alloc(sizeof(char *)*f_treetypes[i].numComponents[j]);
data/mona-1.4-17/GTA/external.c:257:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	(char **) mem_alloc(sizeof(char *)*f_treetypes[i].numComponents[j]);
data/mona-1.4-17/GTA/gta.c:153:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(guide.ssName[s], "<hat>");
data/mona-1.4-17/GTA/gta.c:154:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    ssPos[2*s+1] = (char *) mem_alloc(strlen(ssPos[s])+2);
data/mona-1.4-17/GTA/gta.c:157:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    ssPos[2*s+2] = (char *) mem_alloc(strlen(ssPos[s])+2);
data/mona-1.4-17/GTA/gta.c:164:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    guide.ssName[s] = (char *) mem_alloc(strlen(univName[u])+1);
data/mona-1.4-17/GTA/gta.c:165:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    guide.univPos[u] = (char *) mem_alloc(strlen(ssPos[s])+1);
data/mona-1.4-17/GTA/makebasic.c:33:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[MAX_VARIABLES+1];
data/mona-1.4-17/GTA/makebasic.c:45:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char sortedPath[MAX_VARIABLES]; /* current exception path, sorted according to offsets */
data/mona-1.4-17/GTA/product.c: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 binfun[4];
data/mona-1.4-17/Lib/dfa2dot.c:86:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!(file = fopen(argv[2], "w"))) {
data/mona-1.4-17/Lib/dfalib.c:43:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((file = fopen(filename, "r")) == 0)
data/mona-1.4-17/Lib/dfalib.c:57: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 t[100];
data/mona-1.4-17/Lib/dfalib.c:157:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((file = fopen(filename, "w")) == 0)
data/mona-1.4-17/Lib/gta2dot.c:105:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!(file = fopen(argv[2], "w"))) {
data/mona-1.4-17/Lib/gtalib.c:35:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1000], buffer2[1000];
data/mona-1.4-17/Lib/gtalib.c:38:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((file = fopen(filename, "r")) == 0)
data/mona-1.4-17/Lib/gtalib.c:300:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((file = fopen(filename, "w")) == 0)
data/mona-1.4-17/Mem/dlmalloc.c:1316:27:  [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).
           (dev_zero_fd = open("/dev/zero", O_RDWR), \
data/mona-1.4-17/Mem/dlmalloc.c:2440:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char buf[sizeof(size_t)];
data/mona-1.4-17/Mem/dlmalloc.c:2442: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).
      if ((fd = open("/dev/urandom", O_RDONLY)) >= 0 &&
data/mona-1.4-17/Mem/dlmalloc.c:3802:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(newmem, oldmem, (oc < bytes)? oc : bytes);
data/mona-1.4-17/Mem/mem.c:91: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(dst, src, s);
data/mona-1.4-17/DFA/analyze.c:151:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  length = strlen(example)/(no_free_vars+1);
data/mona-1.4-17/DFA/external.c:196:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (fgetc(file) != 'e' ||
data/mona-1.4-17/DFA/external.c:197:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      fgetc(file) != 'n' ||
data/mona-1.4-17/DFA/external.c:198:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      fgetc(file) != 'd') {
data/mona-1.4-17/Examples/presburger_analysis.c:32:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int i, val = 0, length = strlen(example)/(num_rows+1);
data/mona-1.4-17/Front/code.cpp:165:27:  [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.
    if ((*i).code == c && equal((*i).vars, v)) {
data/mona-1.4-17/Front/code.cpp:188:32:  [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.
	if ((*i).code == (*j).code && equal((*i).vars, (*j).vars))
data/mona-1.4-17/Front/code.cpp:193:34:  [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.
	  if ((*i).code == (*j).code && equal((*i).vars, (*j).vars))
data/mona-1.4-17/Front/code.cpp:594:5:  [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.
    equal(universes, ((Code_EqRoot&) c).universes);
data/mona-1.4-17/Front/code.cpp:653:5:  [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.
    equal(ss, ((Code_InStateSpace&) c).ss) &&
data/mona-1.4-17/Front/code.h:105:24:  [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.
  {return vc==sc.vc && equal(actuals, sc.actuals);}
data/mona-1.4-17/Front/codesubst.cpp:31:22:  [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.
  if (!regenerate && equal(vars, newactuals)) 
data/mona-1.4-17/Front/ident.cpp:138:1:  [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.
equal(IdentList *l1, IdentList *l2)
data/mona-1.4-17/Front/ident.cpp:292:10:  [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.
  return equal(symbolTable.lookupUnivs(id1),
data/mona-1.4-17/Front/ident.h:45: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.
bool       equal(IdentList *l1, IdentList *l2);
data/mona-1.4-17/Front/lib.cpp:58:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  sign->dump(x+strlen(x));
data/mona-1.4-17/Front/lib.cpp:59:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(x);
data/mona-1.4-17/Front/lib.cpp:65: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).
    len += strlen(tmp);
data/mona-1.4-17/Front/lib.cpp:69: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).
      len += strlen(tmp);
data/mona-1.4-17/Front/lib.cpp:75: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).
    len += strlen(tmp);
data/mona-1.4-17/Front/lib.cpp:79: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).
      len += strlen(tmp);
data/mona-1.4-17/Front/lib.cpp:83: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).
      len += strlen(tmp);
data/mona-1.4-17/Front/lib.cpp:90:7:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
      sprintf(x+(len++), "^");
data/mona-1.4-17/Front/lib.cpp:95:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  len += strlen(tmp);
data/mona-1.4-17/Front/lib.cpp:121:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  descriptor = new char[strlen(x)+1];
data/mona-1.4-17/Front/lib.cpp:142: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).
  libname = new char[strlen(dirname)+5];
data/mona-1.4-17/Front/lib.cpp:205:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char *t = new char[strlen(dirname)+20];
data/mona-1.4-17/Front/lib.cpp:232: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).
    monalib = new char[strlen(s)+2];
data/mona-1.4-17/Front/lib.cpp:237:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(monalib, ".");
data/mona-1.4-17/Front/lib.cpp:239:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat(monalib, "/");
data/mona-1.4-17/Front/lib.cpp:260:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char *s = src + strlen(src);
data/mona-1.4-17/Front/lib.cpp:263:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char *d = new char[strlen(s)+strlen(monalib)+1];
data/mona-1.4-17/Front/lib.cpp:263: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).
  char *d = new char[strlen(s)+strlen(monalib)+1];
data/mona-1.4-17/Front/lib.cpp:266:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(s) > 5 && strcmp(s+strlen(s)-5, ".mona") == 0)
data/mona-1.4-17/Front/lib.cpp:266:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(s) > 5 && strcmp(s+strlen(s)-5, ".mona") == 0)
data/mona-1.4-17/Front/lib.cpp:267:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    d[strlen(d)-5] = 0;
data/mona-1.4-17/Front/makeguide.cpp:193: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).
    ssname = new char[strlen(pos)+4];
data/mona-1.4-17/Front/makeguide.cpp:236: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).
    ssname = new char[strlen(univ)+strlen(type)+strlen(pos)+6];
data/mona-1.4-17/Front/makeguide.cpp:236:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ssname = new char[strlen(univ)+strlen(type)+strlen(pos)+6];
data/mona-1.4-17/Front/makeguide.cpp:236:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ssname = new char[strlen(univ)+strlen(type)+strlen(pos)+6];
data/mona-1.4-17/Front/makeguide.cpp:257: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).
    ssname = new char[strlen(univ)+strlen(type)+strlen(v->name)+7];
data/mona-1.4-17/Front/makeguide.cpp:257:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ssname = new char[strlen(univ)+strlen(type)+strlen(v->name)+7];
data/mona-1.4-17/Front/makeguide.cpp:257:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ssname = new char[strlen(univ)+strlen(type)+strlen(v->name)+7];
data/mona-1.4-17/Front/makeguide.cpp:285: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).
    ssname = new char[strlen(univ)+strlen(type)+strlen(variant)+strlen(pos)+7];
data/mona-1.4-17/Front/makeguide.cpp:285:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ssname = new char[strlen(univ)+strlen(type)+strlen(variant)+strlen(pos)+7];
data/mona-1.4-17/Front/makeguide.cpp:285:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ssname = new char[strlen(univ)+strlen(type)+strlen(variant)+strlen(pos)+7];
data/mona-1.4-17/Front/makeguide.cpp:285:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ssname = new char[strlen(univ)+strlen(type)+strlen(variant)+strlen(pos)+7];
data/mona-1.4-17/Front/makeguide.cpp:323: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).
	ssname = new char[strlen(univ)+strlen(c->type)+6];
data/mona-1.4-17/Front/makeguide.cpp:323:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ssname = new char[strlen(univ)+strlen(c->type)+6];
data/mona-1.4-17/Front/makeguide.cpp:328: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).
	ssname = new char[strlen(univ)+strlen(c->type)+strlen(v->name)+7];
data/mona-1.4-17/Front/makeguide.cpp:328:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ssname = new char[strlen(univ)+strlen(c->type)+strlen(v->name)+7];
data/mona-1.4-17/Front/makeguide.cpp:328:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ssname = new char[strlen(univ)+strlen(c->type)+strlen(v->name)+7];
data/mona-1.4-17/Front/makeguide.cpp:347: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).
  *leftpos = new char[strlen(pos)+2];
data/mona-1.4-17/Front/makeguide.cpp:350: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).
  *rightpos = new char[strlen(pos)+2];
data/mona-1.4-17/Front/makeguide.cpp:362:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char *ssname = new char[strlen(univ)+7];
data/mona-1.4-17/Front/printline.cpp:51:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(str) >= 73) {
data/mona-1.4-17/Front/printline.cpp:63:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(temp, str, 77);
data/mona-1.4-17/Front/printline.cpp:72:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (t < strlen(temp) && temp[t] == '\t')
data/mona-1.4-17/Front/reduce.cpp:379:5:  [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.
	   equal(vc1.vars, vc2.vars)) {
data/mona-1.4-17/Front/reduce.cpp:416:5:  [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.
	   equal(vc1.vars, vc2.vars)) {
data/mona-1.4-17/Front/reduce.cpp:450:5:  [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.
	   equal(vc1.vars, vc2.vars))
data/mona-1.4-17/Front/reduce.cpp:487:5:  [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.
	   equal(vc1.vars, vc2.vars))
data/mona-1.4-17/Front/str.h:42:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    p->s = new char[strlen(s)+1];
data/mona-1.4-17/Front/untyped.cpp:2014:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(varp, "p");
data/mona-1.4-17/Front/untyped.cpp:2015:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(varP, "P");
data/mona-1.4-17/Front/untyped.cpp:2016:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(vardol, "$");
data/mona-1.4-17/GTA/external.c:215:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    f_ssName[i] = (char *) mem_alloc(strlen(buffer)+1);
data/mona-1.4-17/GTA/external.c:225:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    f_treetypes[i].name = (char *) mem_alloc(strlen(buffer)+1);
data/mona-1.4-17/GTA/external.c:244:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      f_treetypes[i].variantName[j] = (char *) mem_alloc(strlen(buffer)+1);
data/mona-1.4-17/GTA/external.c:248:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      f_treetypes[i].variantPos[j] = (char *) mem_alloc(strlen(buffer)+1);
data/mona-1.4-17/GTA/external.c:263:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	f_treetypes[i].componentName[j][k] = (char *) mem_alloc(strlen(buffer)+1);
data/mona-1.4-17/GTA/external.c:267:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	f_treetypes[i].componentPos[j][k] = (char *) mem_alloc(strlen(buffer)+1);
data/mona-1.4-17/GTA/external.c:284:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    f_univName[i] = (char *) mem_alloc(strlen(buffer)+1);
data/mona-1.4-17/GTA/external.c:286:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    f_univPos[i] = (char *) mem_alloc(strlen(buffer2)+1);
data/mona-1.4-17/GTA/external.c:308:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      (*vars)[i] = (char *) mem_alloc(strlen(buffer)+1);
data/mona-1.4-17/GTA/external.c:321:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (fgetc(file)=='\n')
data/mona-1.4-17/GTA/external.c:368:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (fgetc(file) != 'e' ||
data/mona-1.4-17/GTA/external.c:369:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      fgetc(file) != 'n' ||
data/mona-1.4-17/GTA/external.c:370:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      fgetc(file) != 'd')   
data/mona-1.4-17/GTA/gta.c:154:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ssPos[2*s+1] = (char *) mem_alloc(strlen(ssPos[s])+2);
data/mona-1.4-17/GTA/gta.c:156:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(ssPos[2*s+1], "0");
data/mona-1.4-17/GTA/gta.c:157:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ssPos[2*s+2] = (char *) mem_alloc(strlen(ssPos[s])+2);
data/mona-1.4-17/GTA/gta.c:159:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(ssPos[2*s+2], "1");
data/mona-1.4-17/GTA/gta.c:164:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    guide.ssName[s] = (char *) mem_alloc(strlen(univName[u])+1);
data/mona-1.4-17/GTA/gta.c:165:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    guide.univPos[u] = (char *) mem_alloc(strlen(ssPos[s])+1);
data/mona-1.4-17/GTA/gta.c:244:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  pos0 = (char *) mem_alloc(strlen(pos)+2);
data/mona-1.4-17/GTA/gta.c:246:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat(pos0, "0");
data/mona-1.4-17/GTA/gta.c:247:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  pos1 = (char *) mem_alloc(strlen(pos)+2);
data/mona-1.4-17/GTA/gta.c:249:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat(pos1, "1");
data/mona-1.4-17/GTA/makebasic.c:174: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).
  invariant(strlen(path) <= MAX_VARIABLES);
data/mona-1.4-17/GTA/makebasic.c:228: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).
  invariant(strlen(final) == gta->ss[0].size);
data/mona-1.4-17/GTA/types.c:261:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *newpath = (char *) mem_alloc(strlen(path)+strlen(component)+2);
data/mona-1.4-17/GTA/types.c:261:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *newpath = (char *) mem_alloc(strlen(path)+strlen(component)+2);
data/mona-1.4-17/GTA/types.c:288:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *newpath = (char *) mem_alloc(strlen(path)+strlen(variant)+2);
data/mona-1.4-17/GTA/types.c:288:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *newpath = (char *) mem_alloc(strlen(path)+strlen(variant)+2);
data/mona-1.4-17/GTA/types.c:339:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *newpath = (char *) mem_alloc(strlen(path)+strlen(component)+2);
data/mona-1.4-17/GTA/types.c:339:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *newpath = (char *) mem_alloc(strlen(path)+strlen(component)+2);
data/mona-1.4-17/GTA/types.c:362:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *newpath = (char *) mem_alloc(strlen(path)+strlen(variant)+2);
data/mona-1.4-17/GTA/types.c:362:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *newpath = (char *) mem_alloc(strlen(path)+strlen(variant)+2);
data/mona-1.4-17/GTA/types.c:433:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    char *path = (char *) mem_alloc(strlen(univname)+2);
data/mona-1.4-17/GTA/types.c:456:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      char *path = (char *) mem_alloc(strlen(univname)+2);
data/mona-1.4-17/GTA/types.c:478:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      char *path = (char *) mem_alloc(strlen(univname)+2);
data/mona-1.4-17/Lib/dfalib.c:63:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    dfa->var[i] = (char *) malloc(sizeof(char)*(strlen(t)+1));
data/mona-1.4-17/Lib/dfalib.c:132:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (fgetc(file) != 'e' ||
data/mona-1.4-17/Lib/dfalib.c:133:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      fgetc(file) != 'n' ||
data/mona-1.4-17/Lib/dfalib.c:134:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      fgetc(file) != 'd') {
data/mona-1.4-17/Lib/gtalib.c:89:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gta->stateSpace[i].name = (char *) malloc(strlen(buffer)+1);
data/mona-1.4-17/Lib/gtalib.c:106:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    t->name = (char *) malloc(strlen(buffer)+1);
data/mona-1.4-17/Lib/gtalib.c:122:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      v->name = (char *) malloc(strlen(buffer)+1);
data/mona-1.4-17/Lib/gtalib.c:131: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).
      v->pos = (char *) malloc(strlen(buffer)+1);
data/mona-1.4-17/Lib/gtalib.c:147: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).
	c->name = (char *) malloc(strlen(buffer)+1);
data/mona-1.4-17/Lib/gtalib.c:156:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	c->pos = (char *) malloc(strlen(buffer)+1);
data/mona-1.4-17/Lib/gtalib.c:180:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gta->universe[i].name = (char *) malloc(strlen(buffer)+1);
data/mona-1.4-17/Lib/gtalib.c:182:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gta->universe[i].pos = (char *) malloc(strlen(buffer2)+1);
data/mona-1.4-17/Lib/gtalib.c:199:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gta->var[i].name = (char *) malloc(strlen(buffer)+1);
data/mona-1.4-17/Lib/gtalib.c:209:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (fgetc(file)=='\n')
data/mona-1.4-17/Lib/gtalib.c:281:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (fgetc(file) != 'e' ||
data/mona-1.4-17/Lib/gtalib.c:282:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      fgetc(file) != 'n' ||
data/mona-1.4-17/Lib/gtalib.c:283:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      fgetc(file) != 'd') {
data/mona-1.4-17/Mem/dlmalloc.c:653:32:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
#define dlmemalign             memalign
data/mona-1.4-17/Mem/dlmalloc.c:2443:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          read(fd, buf, sizeof(buf)) == sizeof(buf)) {
data/mona-1.4-17/Mem/dlmalloc.h:42:32:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
#define dlmemalign             memalign

ANALYSIS SUMMARY:

Hits = 282
Lines analyzed = 37963 in approximately 0.92 seconds (41041 lines/second)
Physical Source Lines of Code (SLOC) = 26447
Hits@level = [0] 418 [1] 122 [2]  70 [3]   1 [4]  89 [5]   0
Hits@level+ = [0+] 700 [1+] 282 [2+] 160 [3+]  90 [4+]  89 [5+]   0
Hits/KSLOC@level+ = [0+] 26.468 [1+] 10.6628 [2+] 6.04984 [3+] 3.40303 [4+] 3.36522 [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.