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/zimpl-3.3.6/src/WIN/getopt.h
Examining data/zimpl-3.3.6/src/WIN/unistd.h
Examining data/zimpl-3.3.6/src/WIN/getopt.c
Examining data/zimpl-3.3.6/src/zimpl/stmt.c
Examining data/zimpl-3.3.6/src/zimpl/zimpllib.c
Examining data/zimpl-3.3.6/src/zimpl/set4.c
Examining data/zimpl-3.3.6/src/zimpl/zimpl.c
Examining data/zimpl-3.3.6/src/zimpl/heap.h
Examining data/zimpl-3.3.6/src/zimpl/xlpglue.h
Examining data/zimpl-3.3.6/src/zimpl/hash.c
Examining data/zimpl-3.3.6/src/zimpl/code.c
Examining data/zimpl-3.3.6/src/zimpl/inst.h
Examining data/zimpl-3.3.6/src/zimpl/vinst.c
Examining data/zimpl-3.3.6/src/zimpl/strstore.h
Examining data/zimpl-3.3.6/src/zimpl/prog.c
Examining data/zimpl-3.3.6/src/zimpl/hash.h
Examining data/zimpl-3.3.6/src/zimpl/tuple.c
Examining data/zimpl-3.3.6/src/zimpl/setrange.c
Examining data/zimpl-3.3.6/src/zimpl/ratlpfwrite.c
Examining data/zimpl-3.3.6/src/zimpl/setmulti.c
Examining data/zimpl-3.3.6/src/zimpl/strstore2.c
Examining data/zimpl-3.3.6/src/zimpl/list.h
Examining data/zimpl-3.3.6/src/zimpl/setprod.c
Examining data/zimpl-3.3.6/src/zimpl/elem.h
Examining data/zimpl-3.3.6/src/zimpl/symbol.c
Examining data/zimpl-3.3.6/src/zimpl/heap.c
Examining data/zimpl-3.3.6/src/zimpl/define.h
Examining data/zimpl-3.3.6/src/zimpl/conname.h
Examining data/zimpl-3.3.6/src/zimpl/iread.c
Examining data/zimpl-3.3.6/src/zimpl/rdefpar.c
Examining data/zimpl-3.3.6/src/zimpl/setpseudo.c
Examining data/zimpl-3.3.6/src/zimpl/blkmem.h
Examining data/zimpl-3.3.6/src/zimpl/prog.h
Examining data/zimpl-3.3.6/src/zimpl/setlist.c
Examining data/zimpl-3.3.6/src/zimpl/ratordwrite.c
Examining data/zimpl-3.3.6/src/zimpl/elem.c
Examining data/zimpl-3.3.6/src/zimpl/random.h
Examining data/zimpl-3.3.6/src/zimpl/ratpresolve.c
Examining data/zimpl-3.3.6/src/zimpl/mono.c
Examining data/zimpl-3.3.6/src/zimpl/mme.h
Examining data/zimpl-3.3.6/src/zimpl/set4.h
Examining data/zimpl-3.3.6/src/zimpl/entry.c
Examining data/zimpl-3.3.6/src/zimpl/ratlpstore.h
Examining data/zimpl-3.3.6/src/zimpl/gmpmisc.c
Examining data/zimpl-3.3.6/src/zimpl/idxset.c
Examining data/zimpl-3.3.6/src/zimpl/metaio.h
Examining data/zimpl-3.3.6/src/zimpl/ratmpswrite.c
Examining data/zimpl-3.3.6/src/zimpl/inst.c
Examining data/zimpl-3.3.6/src/zimpl/stkchk.h
Examining data/zimpl-3.3.6/src/zimpl/load.c
Examining data/zimpl-3.3.6/src/zimpl/entry.h
Examining data/zimpl-3.3.6/src/zimpl/numbgmp.c
Examining data/zimpl-3.3.6/src/zimpl/code.h
Examining data/zimpl-3.3.6/src/zimpl/setempty.c
Examining data/zimpl-3.3.6/src/zimpl/bound.c
Examining data/zimpl-3.3.6/src/zimpl/idxset.h
Examining data/zimpl-3.3.6/src/zimpl/conname.c
Examining data/zimpl-3.3.6/src/zimpl/zlpglue.h
Examining data/zimpl-3.3.6/src/zimpl/define.c
Examining data/zimpl-3.3.6/src/zimpl/bound.h
Examining data/zimpl-3.3.6/src/zimpl/numbdbl.c
Examining data/zimpl-3.3.6/src/zimpl/numb.h
Examining data/zimpl-3.3.6/src/zimpl/metaio.c
Examining data/zimpl-3.3.6/src/zimpl/term.h
Examining data/zimpl-3.3.6/src/zimpl/blkmem.c
Examining data/zimpl-3.3.6/src/zimpl/mshell.c
Examining data/zimpl-3.3.6/src/zimpl/random.c
Examining data/zimpl-3.3.6/src/zimpl/ratlptypes.h
Examining data/zimpl-3.3.6/src/zimpl/xlpglue.c
Examining data/zimpl-3.3.6/src/zimpl/tuple.h
Examining data/zimpl-3.3.6/src/zimpl/term2.c
Examining data/zimpl-3.3.6/src/zimpl/zlpglue.c
Examining data/zimpl-3.3.6/src/zimpl/ratsoswrite.c
Examining data/zimpl-3.3.6/src/zimpl/symbol.h
Examining data/zimpl-3.3.6/src/zimpl/lint.h
Examining data/zimpl-3.3.6/src/zimpl/mshell.h
Examining data/zimpl-3.3.6/src/zimpl/stmt.h
Examining data/zimpl-3.3.6/src/zimpl/list.c
Examining data/zimpl-3.3.6/src/zimpl/rdefpar.h
Examining data/zimpl-3.3.6/src/zimpl/stkchk.c
Examining data/zimpl-3.3.6/src/zimpl/gmpmisc.h
Examining data/zimpl-3.3.6/src/zimpl/ratmstwrite.c
Examining data/zimpl-3.3.6/src/zimpl/local.h
Examining data/zimpl-3.3.6/src/zimpl/ratlp.h
Examining data/zimpl-3.3.6/src/zimpl/set.h
Examining data/zimpl-3.3.6/src/zimpl/source.c
Examining data/zimpl-3.3.6/src/zimpl/local.c
Examining data/zimpl-3.3.6/src/zimpl/zimpllib.h
Examining data/zimpl-3.3.6/src/zimpl/mono.h
Examining data/zimpl-3.3.6/src/zimpl/rathumwrite.c
Examining data/zimpl-3.3.6/src/zimpl/ratlpstore.c

FINAL RESULTS:

data/zimpl-3.3.6/src/WIN/unistd.h:23:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#define access _access 
data/zimpl-3.3.6/src/zimpl/conname.c: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(cname, cpfix);
data/zimpl-3.3.6/src/zimpl/conname.c:119:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(cname, "%s_%d", cpfix, count);
data/zimpl-3.3.6/src/zimpl/conname.c:132:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(cname, "%s_%s%s",
data/zimpl-3.3.6/src/zimpl/elem.c:307:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(fp, use_quotes ? "\"%s\"" : "%s", elem->value.strg);
data/zimpl-3.3.6/src/zimpl/inst.c:422: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(t, s1);
data/zimpl-3.3.6/src/zimpl/inst.c:423: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(t, s2);
data/zimpl-3.3.6/src/zimpl/inst.c:3378:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(varname, "%s%s", name, tuplestr);
data/zimpl-3.3.6/src/zimpl/iread.c:703: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(filename, rdef_get_filename(rdef));
data/zimpl-3.3.6/src/zimpl/iread.c:709: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(&comment[2], rdef_get_comment(rdef));
data/zimpl-3.3.6/src/zimpl/lint.h:61:14:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
extern FILE* popen(const char *command, const char *type);
data/zimpl-3.3.6/src/zimpl/load.c:167: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(target, filename);
data/zimpl-3.3.6/src/zimpl/load.c:172: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(target, pathname);
data/zimpl-3.3.6/src/zimpl/load.c:175:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
         strcpy(target, filename);
data/zimpl-3.3.6/src/zimpl/load.c:177:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
         strcpy(s + 1, filename);
data/zimpl-3.3.6/src/zimpl/load.c:250:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(&myfilename[1], cmdpipe, filename);
data/zimpl-3.3.6/src/zimpl/local.c:205: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(str, after_elem ? "@" : "");
data/zimpl-3.3.6/src/zimpl/local.c:206: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(str, selem);
data/zimpl-3.3.6/src/zimpl/metaio.c:188: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(filename, name);
data/zimpl-3.3.6/src/zimpl/metaio.c:215:38:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
         if (NULL == (mfp->fp.file = popen(&filename[1], "r")))
data/zimpl-3.3.6/src/zimpl/metaio.c:233:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
         if (access(filename, R_OK) != 0)
data/zimpl-3.3.6/src/zimpl/metaio.c:235:13:  [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(filename, ext);
data/zimpl-3.3.6/src/zimpl/metaio.c:240:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            if (access(filename, R_OK) != 0)
data/zimpl-3.3.6/src/zimpl/metaio.c:241:16:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
               strcpy(filename, name);
data/zimpl-3.3.6/src/zimpl/mshell.c:205:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, errmsg2, size, file, line);
data/zimpl-3.3.6/src/zimpl/mshell.c:214:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, errmsg1, size, file, line);
data/zimpl-3.3.6/src/zimpl/mshell.c:245:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, errmsg2, item, size, file, line);
data/zimpl-3.3.6/src/zimpl/mshell.c:250:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, errmsg1, item, size, file, line);
data/zimpl-3.3.6/src/zimpl/mshell.c:283:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, errmsg2, file, line);
data/zimpl-3.3.6/src/zimpl/mshell.c:293:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, errmsg3, size, file, line);
data/zimpl-3.3.6/src/zimpl/mshell.c:298:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, errmsg1, size, file, line);
data/zimpl-3.3.6/src/zimpl/mshell.c:323:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      (void)fprintf(stderr, errmsg1, file, line);
data/zimpl-3.3.6/src/zimpl/mshell.c:326:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   return(strcpy(mem_malloc((size_t)(strlen(str) + 1), file, line), str));
data/zimpl-3.3.6/src/zimpl/mshell.c:340:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      (void)fprintf(stderr, errmsg, file, line);
data/zimpl-3.3.6/src/zimpl/mshell.c:362:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      (void)fprintf(stderr, errmsg, file, line);
data/zimpl-3.3.6/src/zimpl/mshell.c:444:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, errmsg1, size, file, line);
data/zimpl-3.3.6/src/zimpl/mshell.c:466:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, errmsg1, item, size, file, line);
data/zimpl-3.3.6/src/zimpl/mshell.c:488:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, errmsg1, size, file, line);
data/zimpl-3.3.6/src/zimpl/mshell.c:508:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, errmsg1, strlen(str), file, line);
data/zimpl-3.3.6/src/zimpl/mshell.c:524:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, errmsg, file, line);
data/zimpl-3.3.6/src/zimpl/prog.c:213:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   pos  = sprintf(&text[pos], "%s%s", prefix, title);
data/zimpl-3.3.6/src/zimpl/prog.c:224:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            k = sprintf(&text[pos], "\n%s", prefix);            
data/zimpl-3.3.6/src/zimpl/ratlpfwrite.c:80:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(fp, force_sign ? "%+.15g" : "%.15g", mpq_get_d(val));
data/zimpl-3.3.6/src/zimpl/ratlpstore.c:1977:10:  [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(target, temp);
data/zimpl-3.3.6/src/zimpl/ratlpstore.c:1989: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(target, temp);
data/zimpl-3.3.6/src/zimpl/strstore2.c:121:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   return strcpy(t, s);
data/zimpl-3.3.6/src/zimpl/term2.c:530:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(vname, format, SYMBOL_NAME_INTERNAL);
data/zimpl-3.3.6/src/zimpl/tuple.c:270: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(str, selem);
data/zimpl-3.3.6/src/zimpl/tuple.c:271: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(str, i < tuple->dim - 1 ? "," : "]");
data/zimpl-3.3.6/src/zimpl/tuple.c:310: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(str, elem_get_type(tuple->element[i]) == ELEM_NUMB ? "#" : "$");
data/zimpl-3.3.6/src/zimpl/tuple.c:311: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(str, selem);
data/zimpl-3.3.6/src/zimpl/vinst.c:101:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(cname, "%s%s_%d", basename, extension, internal_cons++);
data/zimpl-3.3.6/src/zimpl/vinst.c:129:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(vname, "%s%s%s_%d", SYMBOL_NAME_INTERNAL, basename, extension, internal_vars++);
data/zimpl-3.3.6/src/zimpl/vinst.c:856:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(cname, "%s_%c_%c", basename,
data/zimpl-3.3.6/src/zimpl/vinst.c:892:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(cname, "%s_%c", basename, then_case ? 't' : 'f');
data/zimpl-3.3.6/src/zimpl/zimpl.c:127: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(basename, filename);
data/zimpl-3.3.6/src/zimpl/zimpl.c:129:11:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   return strcat(basename, extension); /*lint !e429 suppress 'Custodial pointer 'basename' has not been freed or returned' */
data/zimpl-3.3.6/src/zimpl/zimpl.c:228:10:  [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(usage, argv[0]);
data/zimpl-3.3.6/src/zimpl/zimpl.c:238:22:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
         openfile  = popen;
data/zimpl-3.3.6/src/zimpl/zimpl.c:250:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr, usage, argv[0]);
data/zimpl-3.3.6/src/zimpl/zimpl.c:265:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr, usage, argv[0]);
data/zimpl-3.3.6/src/zimpl/zimpl.c:318:10:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
         fprintf(stderr, usage, argv[0]);
data/zimpl-3.3.6/src/zimpl/zimpl.c:326:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, usage, argv[0]);      
data/zimpl-3.3.6/src/zimpl/zimpl.c:422:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(outpipe, filter, ordfile, "ord");
data/zimpl-3.3.6/src/zimpl/zimpl.c:443:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(outpipe, filter, mstfile, "mst");
data/zimpl-3.3.6/src/zimpl/zimpl.c:462:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
   sprintf(outpipe, filter, outfile, "lp");
data/zimpl-3.3.6/src/zimpl/zimpl.c:481:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(prog_text, "\\%s\n", title);
data/zimpl-3.3.6/src/zimpl/zimpl.c:496:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(outpipe, filter, tblfile, "tbl");
data/zimpl-3.3.6/src/zimpl/zimpllib.c:88:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(fp, banner, VERSION);
data/zimpl-3.3.6/src/zimpl/zimpllib.c:176:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, warning, def);
data/zimpl-3.3.6/src/zimpl/zimpllib.c:186:10:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
         fprintf(stderr, warning, def);
data/zimpl-3.3.6/src/WIN/getopt.c:216:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#ifndef getenv
data/zimpl-3.3.6/src/WIN/getopt.c:217:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
extern char *getenv ();
data/zimpl-3.3.6/src/WIN/getopt.c:402:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  posixly_correct = getenv ("POSIXLY_CORRECT");
data/zimpl-3.3.6/src/WIN/getopt.c:1171:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt (
data/zimpl-3.3.6/src/WIN/getopt.c:1207:11:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt (argc, argv, "abc:d:0123456789");
data/zimpl-3.3.6/src/WIN/getopt.h:150:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt (int ___argc, char *const *___argv, const char *__shortopts);
data/zimpl-3.3.6/src/WIN/getopt.h:152:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt ();
data/zimpl-3.3.6/src/WIN/getopt.h:156:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt_long (int ___argc, char *const *___argv,
data/zimpl-3.3.6/src/WIN/getopt.h:170:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt ();
data/zimpl-3.3.6/src/WIN/getopt.h:172:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt_long ();
data/zimpl-3.3.6/src/WIN/unistd.h:17:9:  [3] (random) srandom:
  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.
#define srandom srand 
data/zimpl-3.3.6/src/WIN/unistd.h:17:17:  [3] (random) srand:
  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.
#define srandom srand 
data/zimpl-3.3.6/src/WIN/unistd.h:18:9:  [3] (random) random:
  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.
#define random rand 
data/zimpl-3.3.6/src/zimpl/lint.h:54:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt(int argc, char* const argv[], const char* optstring);
data/zimpl-3.3.6/src/zimpl/zimpl.c:213:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
   while((c = getopt(argc, argv, options)) != -1)
data/zimpl-3.3.6/src/zimpl/zimpllib.c:310:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
   while((c = getopt(argc, argv, options)) != -1)
data/zimpl-3.3.6/src/zimpl/conname.c:95:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
   strcat(cname, "_1");
data/zimpl-3.3.6/src/zimpl/conname.c:100:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
   strcat(cname, "_a_0");
data/zimpl-3.3.6/src/zimpl/conname.c:116: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(cname, "c%d", count);
data/zimpl-3.3.6/src/zimpl/elem.c:355: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(str, "%.16g", numb_todbl(elem->value.numb));
data/zimpl-3.3.6/src/zimpl/gmpmisc.c:51:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char      pad[POOL_ELEM_SIZE]; //lint !e754 union member not referenced
data/zimpl-3.3.6/src/zimpl/gmpmisc.c:124:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  tmp[1024]; 
data/zimpl-3.3.6/src/zimpl/gmpmisc.c:158: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).
         exponent += atoi(&num[i + 1]);
data/zimpl-3.3.6/src/zimpl/gmpmisc.c:220: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(p, ptr, old_size);
data/zimpl-3.3.6/src/zimpl/gmpmisc.c:233: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(p, ptr, new_size);
data/zimpl-3.3.6/src/zimpl/inst.c:3672:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char name[13]; /* "@-2000000000" */
data/zimpl-3.3.6/src/zimpl/inst.c:3674:10:  [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(name, "@%d", i + 1);
data/zimpl-3.3.6/src/zimpl/iread.c:717:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char errmsg[1024];
data/zimpl-3.3.6/src/zimpl/load.c:235:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  newname [1024];
data/zimpl-3.3.6/src/zimpl/metaio.c:267:41:  [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 (NULL == (mfp->fp.file = fopen(filename, "r")))
data/zimpl-3.3.6/src/zimpl/numbdbl.c:486: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 temp[256];
data/zimpl-3.3.6/src/zimpl/numbdbl.c:488: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(temp, "*** Error 700: log(%f)", numb_a->value.numb);
data/zimpl-3.3.6/src/zimpl/numbdbl.c:507: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 temp[256];
data/zimpl-3.3.6/src/zimpl/numbdbl.c:509: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(temp, "*** Error 701: sqrt(%f)", numb_a->value.numb);
data/zimpl-3.3.6/src/zimpl/numbdbl.c:518:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char temp[32];
data/zimpl-3.3.6/src/zimpl/numbdbl.c:541: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 temp[256];
data/zimpl-3.3.6/src/zimpl/numbdbl.c:543: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(temp, "*** Error 702: ln(%f)", numb->value.numb);
data/zimpl-3.3.6/src/zimpl/numbdbl.c:611:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(str, "%.16g", numb->value.numb);
data/zimpl-3.3.6/src/zimpl/numbgmp.c:582:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   temp[256];
data/zimpl-3.3.6/src/zimpl/numbgmp.c:592: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(temp, "*** Error 700: log(%f)", mpq_get_d(numb->value.numb));
data/zimpl-3.3.6/src/zimpl/numbgmp.c:596: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(temp, "%.16e", d);
data/zimpl-3.3.6/src/zimpl/numbgmp.c:603:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   temp[256];
data/zimpl-3.3.6/src/zimpl/numbgmp.c:613: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(temp, "*** Error 701: sqrt(%f)", mpq_get_d(numb->value.numb));
data/zimpl-3.3.6/src/zimpl/numbgmp.c:617: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(temp, "%.16e", d);
data/zimpl-3.3.6/src/zimpl/numbgmp.c:624:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char temp[32];
data/zimpl-3.3.6/src/zimpl/numbgmp.c:628: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(temp, "%.16e", exp(mpq_get_d(numb->value.numb)));
data/zimpl-3.3.6/src/zimpl/numbgmp.c:635:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   temp[256];
data/zimpl-3.3.6/src/zimpl/numbgmp.c:645: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(temp, "*** Error 702: ln(%f)", mpq_get_d(numb->value.numb));
data/zimpl-3.3.6/src/zimpl/numbgmp.c:649: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(temp, "%.16e", d);
data/zimpl-3.3.6/src/zimpl/numbgmp.c:733:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(str, "%.16g", mpq_get_d(numb->value.numb));
data/zimpl-3.3.6/src/zimpl/ratlpstore.c:1935:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  temp[12]; /* 9 is sufficient (see assertions below), use 12 to avoid compiler warnings */
data/zimpl-3.3.6/src/zimpl/ratlpstore.c:1964:10:  [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(temp, "@%x", (unsigned int)no);
data/zimpl-3.3.6/src/zimpl/ratlpstore.c:1982: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(temp, "@%x", (unsigned int)no);
data/zimpl-3.3.6/src/zimpl/setmulti.c:513:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
         memcpy(iter->multi.subset, set->multi.subset,
data/zimpl-3.3.6/src/zimpl/zimpl.c:203:58:  [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*         (*openfile)(const char*, const char*) = fopen;
data/zimpl-3.3.6/src/zimpl/zimpl.c:242: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).
         name_length = atoi(optarg);
data/zimpl-3.3.6/src/zimpl/zimpl.c:279:32:  [2] (integer) atol:
  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 = (unsigned long)atol(optarg);
data/zimpl-3.3.6/src/zimpl/zimpl.c:312: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).
         verbose = atoi(optarg);
data/zimpl-3.3.6/src/zimpl/zimpllib.c:331:32:  [2] (integer) atol:
  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 = (unsigned long)atol(optarg);
data/zimpl-3.3.6/src/zimpl/zimpllib.c:334: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).
         verbose = atoi(optarg);
data/zimpl-3.3.6/src/WIN/getopt.c:239:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
# if (!defined __STDC__ || !__STDC__) && !defined strlen
data/zimpl-3.3.6/src/WIN/getopt.c:242: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).
extern int strlen (const char *);
data/zimpl-3.3.6/src/WIN/getopt.c:433:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              int len = nonoption_flags_max_len = strlen (orig_str);
data/zimpl-3.3.6/src/WIN/getopt.c:661:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                == (unsigned int) strlen (p->name))
data/zimpl-3.3.6/src/WIN/getopt.c:704: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).
          nextchar += strlen (nextchar);
data/zimpl-3.3.6/src/WIN/getopt.c:766: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).
                  nextchar += strlen (nextchar);
data/zimpl-3.3.6/src/WIN/getopt.c:799: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).
                  nextchar += strlen (nextchar);
data/zimpl-3.3.6/src/WIN/getopt.c:804: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).
          nextchar += strlen (nextchar);
data/zimpl-3.3.6/src/WIN/getopt.c:981: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).
              if ((unsigned int) (nameend - nextchar) == strlen (p->name))
data/zimpl-3.3.6/src/WIN/getopt.c:1020: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).
            nextchar += strlen (nextchar);
data/zimpl-3.3.6/src/WIN/getopt.c:1057: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).
                    nextchar += strlen (nextchar);
data/zimpl-3.3.6/src/WIN/getopt.c:1088: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).
                    nextchar += strlen (nextchar);
data/zimpl-3.3.6/src/WIN/getopt.c:1092: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).
            nextchar += strlen (nextchar);
data/zimpl-3.3.6/src/zimpl/conname.c:82: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).
   clen  = strlen(cpfix) + 16;
data/zimpl-3.3.6/src/zimpl/conname.c:123: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).
      newlen   = strlen(localstr) + strlen(cpfix) + 16;
data/zimpl-3.3.6/src/zimpl/conname.c:123:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      newlen   = strlen(localstr) + strlen(cpfix) + 16;
data/zimpl-3.3.6/src/zimpl/conname.c:134: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).
         strlen(localstr) > 0 ? ";" : "",
data/zimpl-3.3.6/src/zimpl/conname.c:140: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).
   assert(strlen(cname) < clen);
data/zimpl-3.3.6/src/zimpl/define.c:75: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).
   assert(strlen(name)   >  0);
data/zimpl-3.3.6/src/zimpl/gmpmisc.c:131: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).
   assert(strlen(num) <  32);
data/zimpl-3.3.6/src/zimpl/inst.c:418:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char* t        = malloc(strlen(s1) + strlen(s2) + 1);
data/zimpl-3.3.6/src/zimpl/inst.c:418: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).
      char* t        = malloc(strlen(s1) + strlen(s2) + 1);
data/zimpl-3.3.6/src/zimpl/inst.c:1407: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).
      numb_new_integer((int)strlen(code_eval_child_strg(self, 0))));
data/zimpl-3.3.6/src/zimpl/inst.c:1438: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).
      beg = (int)strlen(strg) + beg;
data/zimpl-3.3.6/src/zimpl/inst.c:1445: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).
   maxlen = (int)strlen(strg) - beg;
data/zimpl-3.3.6/src/zimpl/inst.c:1453:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(tmp, &strg[beg], (size_t)len);
data/zimpl-3.3.6/src/zimpl/inst.c:3374:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char* varname  = malloc(strlen(name) + strlen(tuplestr) + 2);
data/zimpl-3.3.6/src/zimpl/inst.c:3374: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).
      char* varname  = malloc(strlen(name) + strlen(tuplestr) + 2);
data/zimpl-3.3.6/src/zimpl/iread.c:266:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         if (strlen(t) != 4 || (t[1] != 'n' && t[1] != 's') || t[2] != '+' || t[3] != '>')
data/zimpl-3.3.6/src/zimpl/iread.c:277: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(t) != 2 || (t[0] != 'n' && t[0] != 's') || t[1] != '+')
data/zimpl-3.3.6/src/zimpl/iread.c:701: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).
   filename = malloc(strlen(rdef_get_filename(rdef)) + 4);
data/zimpl-3.3.6/src/zimpl/iread.c:705: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).
   comment  = malloc(strlen(rdef_get_comment(rdef)) + 3);
data/zimpl-3.3.6/src/zimpl/load.c:248: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).
      myfilename = malloc(strlen(filename) + strlen(cmdpipe) + 1024);
data/zimpl-3.3.6/src/zimpl/load.c:248: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).
      myfilename = malloc(strlen(filename) + strlen(cmdpipe) + 1024);
data/zimpl-3.3.6/src/zimpl/load.c:270: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).
         temp = malloc(strlen(filename) + strlen(newname) + 2);
data/zimpl-3.3.6/src/zimpl/load.c:270: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).
         temp = malloc(strlen(filename) + strlen(newname) + 2);
data/zimpl-3.3.6/src/zimpl/local.c:55: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).
   assert(strlen(anchor.name) == 0);
data/zimpl-3.3.6/src/zimpl/local.c:62: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).
   assert(strlen(anchor.name) == 0);
data/zimpl-3.3.6/src/zimpl/local.c:194: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).
         selemlen = strlen(selem) + (after_elem ? 1 : 0);
data/zimpl-3.3.6/src/zimpl/metaio.c:111: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).
   sf->length   = (int)strlen(content); /* the final '\0' is not part of the file */
data/zimpl-3.3.6/src/zimpl/metaio.c:186: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).
   filename = malloc(strlen(name) + strlen(ext) + 1);
data/zimpl-3.3.6/src/zimpl/metaio.c:186:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   filename = malloc(strlen(name) + strlen(ext) + 1);
data/zimpl-3.3.6/src/zimpl/metaio.c:244: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).
         len = (int)strlen(filename);
data/zimpl-3.3.6/src/zimpl/metaio.c:326:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = fgetc(mfp->fp.file);
data/zimpl-3.3.6/src/zimpl/mshell.c:326: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).
   return(strcpy(mem_malloc((size_t)(strlen(str) + 1), file, line), str));
data/zimpl-3.3.6/src/zimpl/mshell.c:508: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).
      fprintf(stderr, errmsg1, strlen(str), file, line);
data/zimpl-3.3.6/src/zimpl/prog.c:197: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).
   assert(max_output_line_len > strlen(prefix));
data/zimpl-3.3.6/src/zimpl/prog.c:203: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(prefix) + strlen(title) + 2;
data/zimpl-3.3.6/src/zimpl/prog.c:203: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).
   len = strlen(prefix) + strlen(title) + 2;
data/zimpl-3.3.6/src/zimpl/prog.c:207: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).
      size_t line_len         = strlen(stmt_get_text(prog->stmt[i]));
data/zimpl-3.3.6/src/zimpl/prog.c:208: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).
      size_t max_eff_line_len = max_output_line_len - strlen(prefix) - 1;
data/zimpl-3.3.6/src/zimpl/prog.c:210:83:  [1] (buffer) strlen:
  Does not handle 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 += line_len + ((line_len + max_eff_line_len - 1) / max_eff_line_len) * (strlen(prefix) + 1);
data/zimpl-3.3.6/src/zimpl/ratlpstore.c:1945: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).
   nlen = (int)strlen(name);
data/zimpl-3.3.6/src/zimpl/ratlpstore.c:1966: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).
         len = size - (int)strlen(temp) - 1;
data/zimpl-3.3.6/src/zimpl/ratlpstore.c:1984: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).
      len = size - (int)strlen(temp) - 1; /* -1 for '\0' */
data/zimpl-3.3.6/src/zimpl/ratlpstore.c:1991: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).
   assert(strlen(target) <= (size_t)size - 1);
data/zimpl-3.3.6/src/zimpl/source.c:53: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).
   len = (int)strlen(text);
data/zimpl-3.3.6/src/zimpl/strstore2.c:90: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(s) + 1;
data/zimpl-3.3.6/src/zimpl/symbol.c:77: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).
   assert(strlen(name)   >  0);
data/zimpl-3.3.6/src/zimpl/term2.c:528: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).
      char*  vname = malloc(strlen(SYMBOL_NAME_INTERNAL) + strlen(format) + 1);
data/zimpl-3.3.6/src/zimpl/term2.c:528:60:  [1] (buffer) strlen:
  Does not handle 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*  vname = malloc(strlen(SYMBOL_NAME_INTERNAL) + strlen(format) + 1);
data/zimpl-3.3.6/src/zimpl/tuple.c:254:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
   strcpy(str, "[");
data/zimpl-3.3.6/src/zimpl/tuple.c:259: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).
      selemlen = strlen(selem) + 1;
data/zimpl-3.3.6/src/zimpl/tuple.c:296: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).
      size_t selemlen = strlen(selem) + 1;
data/zimpl-3.3.6/src/zimpl/vinst.c:100: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).
   cname = malloc(strlen(basename) + strlen(extension) + 10 + 1);
data/zimpl-3.3.6/src/zimpl/vinst.c:100: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).
   cname = malloc(strlen(basename) + strlen(extension) + 10 + 1);
data/zimpl-3.3.6/src/zimpl/vinst.c:128: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).
   vname = malloc(strlen(basename) + strlen(extension) + strlen(SYMBOL_NAME_INTERNAL) + 16);
data/zimpl-3.3.6/src/zimpl/vinst.c:128: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).
   vname = malloc(strlen(basename) + strlen(extension) + strlen(SYMBOL_NAME_INTERNAL) + 16);
data/zimpl-3.3.6/src/zimpl/vinst.c:128: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).
   vname = malloc(strlen(basename) + strlen(extension) + strlen(SYMBOL_NAME_INTERNAL) + 16);
data/zimpl-3.3.6/src/zimpl/vinst.c:132:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   tuple_set_elem(tuple, 0, elem_new_strg(str_new(vname + strlen(SYMBOL_NAME_INTERNAL))));
data/zimpl-3.3.6/src/zimpl/vinst.c:847: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).
      char*        cname     = malloc(strlen(basename) + 5);
data/zimpl-3.3.6/src/zimpl/vinst.c:891: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).
   cname    = malloc(strlen(basename) + 5);
data/zimpl-3.3.6/src/zimpl/zimpl.c:120:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   assert(strlen(filename) > 0);
data/zimpl-3.3.6/src/zimpl/zimpl.c:123: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).
   basename = malloc(strlen(filename) + strlen(extension) + 1);
data/zimpl-3.3.6/src/zimpl/zimpl.c:123:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   basename = malloc(strlen(filename) + strlen(extension) + 1);
data/zimpl-3.3.6/src/zimpl/zimpl.c:137: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).
   assert(strlen(filename) > 0);
data/zimpl-3.3.6/src/zimpl/zimpl.c:149: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).
   assert(strlen(filename) > 0);
data/zimpl-3.3.6/src/zimpl/zimpl.c:151:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   for(i = (int)strlen(filename) - 1; i >= 0; i--)
data/zimpl-3.3.6/src/zimpl/zimpl.c:158: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).
   i = (int)strlen(filename);
data/zimpl-3.3.6/src/zimpl/zimpl.c:362: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).
   outpipe = malloc(strlen(basefile) + strlen(filter) + 256);
data/zimpl-3.3.6/src/zimpl/zimpl.c:362: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).
   outpipe = malloc(strlen(basefile) + strlen(filter) + 256);
data/zimpl-3.3.6/src/zimpl/zimpl.c:477:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      prog_text = malloc(strlen(title) + 4);
data/zimpl-3.3.6/src/zimpl/zimpllib.c:183:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen(name) == 0 || strlen(value) == 0 || !is_valid_identifier(name))
data/zimpl-3.3.6/src/zimpl/zimpllib.c:183:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen(name) == 0 || strlen(value) == 0 || !is_valid_identifier(name))

ANALYSIS SUMMARY:

Hits = 215
Lines analyzed = 31168 in approximately 0.73 seconds (42460 lines/second)
Physical Source Lines of Code (SLOC) = 20698
Hits@level = [0] 508 [1]  84 [2]  44 [3]  16 [4]  71 [5]   0
Hits@level+ = [0+] 723 [1+] 215 [2+] 131 [3+]  87 [4+]  71 [5+]   0
Hits/KSLOC@level+ = [0+] 34.9309 [1+] 10.3875 [2+] 6.32911 [3+] 4.2033 [4+] 3.43028 [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.