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/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/ack.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/array1.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/cat.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/diviter.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/divrec.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/fft.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/fib.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/fibfp.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/gcbench.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/mbrot.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/ntakl.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/nucleic.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/perm9.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/pnpoly.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/puzzle.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/string.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/sum.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/sum1.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/sumfp.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/sumloop.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/tail.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/tak.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/takl.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/tfib.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/triangl.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/wc.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/lab/interrupts/main.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/lab/prof/main.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-data.h
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-errno.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-exec.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-ffi.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-getaddrinfo.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-getaddrinfo.h
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-io.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-main.h
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-pointers.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-print.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-process.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-symbol-table.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-verify-integrity.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-weak-pairs.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-winmmap.h
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/scheme-script.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-collect.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-fasl.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-main.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-winmmap.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-numerics.c
Examining data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-flonums.c

FINAL RESULTS:

data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:667:11:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  int r = chmod((char*)(path+off_bytevector_data), (mode_t)unfix(mode));
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/perm9.c:549: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( msg );
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/string.c:18:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        sprintf(p, "123%s456%s789", s, s);
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/string.c:23:25:  [4] (buffer) strcpy:
  Does not 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 + len/2);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-process.c:160:7:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      execvp(cmd_str, argv_strs);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-process.c:162:7:  [4] (shell) execv:
  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.
      execv(cmd_str, argv_strs);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:709:13:  [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.
    int r = system((char*)(long)(str+off_bytevector_data));
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:1084:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  r = access(fn, c_how);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus.c:53:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(stderr, helpstring, BOOTFILE);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-process.c:65:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  searchpath = getenv("PATH");
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:695:13:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
  char* p = realpath((char*)(bv+off_bytevector_data), buff);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:924: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* v = getenv((char*)(long)(bv + off_bytevector_data));
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/ack.c:17:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                m = atoi(argv[1]);
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/ack.c:19:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                n = atoi(argv[2]);
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/array1.c:11:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                n = atoi(argv[1]);
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/cat.c:14: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).
        infp = fopen(infile, "r");
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/cat.c:19: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).
        outfp = fopen(outfile, "w");
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/fib.c:21:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    n = atoi (argv[1]);
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/fibfp.c:22:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    n = atoi (argv[1]);
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/string.c:11:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                n = atoi(argv[1]);
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/sum.c:25:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    n = atoi (argv[1]);
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/sum1.c:10:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen(infile, "r");
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/sumfp.c:27:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    n = atoi (argv[1]);
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/sumloop.c:8:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                n = atoi(argv[1]);
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/tail.c:8:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[5000];
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/tail.c:19: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).
        infp = fopen(infile, "r");
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/tail.c:24: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).
        outfp = fopen(outfile, "w");
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/tak.c:25:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    x = atoi (argv[1]);
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/tak.c:28:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    y = atoi (argv[2]);
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/tak.c:31:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    z = atoi (argv[3]);
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/wc.c:13:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen(infile, "r");
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-collect.c:799:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char*)(long)(y+disp_code_data),
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-collect.c:1049:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char*)(long)(y-closure_tag), 
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-collect.c:1076:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy((char*)(long)(y+off_vector_data),
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-collect.c:1087: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((char*)(long)(y+off_vector_data), 
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-collect.c:1170: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((char*)(long)new_top, 
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-collect.c:1237: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((char*)(long)(new-vector_tag),
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-collect.c:1298: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((char*)(long)(new_str+off_string_data),
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-collect.c:1319:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char*)(long)(new_bv+off_bytevector_data),
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-errno.c:169: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((char*)(bv+off_bytevector_data), ei->s, len+1);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-errno.c:195: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((char*)(bv+off_bytevector_data), es, len+1);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-exec.c:76:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char*)(long)new_fbase, (char*)(long)top, framesize);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-fasl.c:54:12:  [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).
  int fd = open(fasl_file, O_RDONLY);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-fasl.c:237:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, p->memp, n);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-fasl.c:592:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[IK_FASL_HEADER_LEN];
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-getaddrinfo.c:57: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(&sa_in->sin_addr, *ap, sizeof(struct in_addr));
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-io.c:59:12:  [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).
  int fh = open((char*)(long)(fn+off_bytevector_data), O_RDONLY, 0);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-io.c:85:12:  [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).
  int fh = open((char*)(long)(fn+off_bytevector_data), 
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-io.c:308:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy((char*)(r+disp_bytevector_data+2), s, len);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-io.c:403:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy((char*)(bv+off_bytevector_data), ent->d_name, len+1);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-main.c:76: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((char*)(bv+off_bytevector_data), s, n+1);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-numerics.c:459:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy((char*)(long)bn+disp_bignum_data,
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-numerics.c:1570: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((char*)(long)r+disp_bignum_data,
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-numerics.c:1626:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(((char*)s) + whole_limb_shift*wordsize, 
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-numerics.c:1891:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy((char*)(long)mem,
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-pointers.c:92: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((void*)(bv+disp_bytevector_data), str, len+1);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-pointers.c:159: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_ptr, src_ptr, unfix(count));
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-pointers.c:170: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_ptr, src_ptr, unfix(count));
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-pointers.c:315:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  bcopy((char*)(&n), (char*)(bn+disp_bignum_data), sizeof(long long));
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-process.c:87:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(path, searchpath, prefix_len);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-process.c:89: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(path + prefix_len, cmd, cmd_len + 1);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-process.c:92: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(path + prefix_len + 1, cmd, cmd_len + 1);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:69:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char*)(long)(v+new_vec_size-old_vec_size),
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:77:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char*)(long)(s+new_vec_size-old_vec_size),
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:92:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char*)(long)v, 
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:100:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char*)(long)s, pcb->segment_vector_base, old_vec_size);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:534:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open("/dev/urandom", O_RDONLY);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:637:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char*)(bv+off_bytevector_data), de->d_name, len+1);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:694: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 buff[PATH_MAX];
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:702:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy((char*)(r+disp_bytevector_data), p, n+1);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:930:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char*)(long)(s+off_bytevector_data), v, n+1);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:999:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char*)(long)(s+off_bytevector_data), e, n+1);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:1047: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 buff[MAXPATHLEN+1];
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:1055: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(disp_bytevector_data+(char*)(bv), path, len+1);
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/cat.c:24:21:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((c = getc(infp)) != EOF)
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/string.c:16: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).
                while ((len = strlen(s)) <= n) {
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/string.c:21: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).
                        len = strlen(s);
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/string.c:24:25:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
                        strncat(p + len/2, s, len/2+1);
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/string.c:29: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).
        printf("%d\n", strlen(s));
data/ikarus-0.0.3+bzr.2010.01.26/benchmarks.larceny/src/wc.c:21:21:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((c = getc(fp)) != EOF) {
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-collect.c:1295: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).
      long int memreq = align(strlen*string_char_size + disp_string_data);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-collect.c:1300: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).
             strlen*string_char_size);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-data.h:233: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).
#define IK_FASL_HEADER_LEN (strlen(IK_FASL_HEADER))
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-errno.c:165:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      int len = strlen(ei->s);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-errno.c:191:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      int len = strlen(es);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-io.c:102:4:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   read(unfix(fd),
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-io.c:399:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int len = strlen(ent->d_name);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-main.c: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).
      int n = strlen(s);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-numerics.c:1663:4:  [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.
or equal to dn. The most significant limb of dp must be non-zero.
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-pointers.c:89:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int len = strlen(str);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-process.c:69: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).
  cmd_len = strlen(cmd);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-process.c:77: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).
      sep = searchpath + strlen(searchpath);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:538: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).
    uuid_strlen = strlen(uuid_chars);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:542:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int r = read(fd, data, n);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:633:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(de->d_name);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:699:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int n = strlen(p);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:926: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).
    long int n = strlen(v);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:995: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).
    long int n = strlen(e);
data/ikarus-0.0.3+bzr.2010.01.26/src/ikarus-runtime.c:1052:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int len = strlen(path);

ANALYSIS SUMMARY:

Hits = 99
Lines analyzed = 16091 in approximately 0.61 seconds (26363 lines/second)
Physical Source Lines of Code (SLOC) = 13225
Hits@level = [0] 243 [1]  25 [2]  62 [3]   3 [4]   8 [5]   1
Hits@level+ = [0+] 342 [1+]  99 [2+]  74 [3+]  12 [4+]   9 [5+]   1
Hits/KSLOC@level+ = [0+] 25.8601 [1+] 7.48582 [2+] 5.59546 [3+] 0.907372 [4+] 0.680529 [5+] 0.0756144
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.