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/mit-scheme-10.1.11/src/berkeley-db/prdb4.c
Examining data/mit-scheme-10.1.11/src/blowfish/blowfish-adapter.c
Examining data/mit-scheme-10.1.11/src/blowfish/blowfish-shim.h
Examining data/mit-scheme-10.1.11/src/compiler/documentation/test-c.c
Examining data/mit-scheme-10.1.11/src/gdbm/gdbm-adapter.c
Examining data/mit-scheme-10.1.11/src/gdbm/gdbm-shim.h
Examining data/mit-scheme-10.1.11/src/mcrypt/mcrypt-adapter.c
Examining data/mit-scheme-10.1.11/src/mcrypt/mcrypt-shim.h
Examining data/mit-scheme-10.1.11/src/microcode/artutl.c
Examining data/mit-scheme-10.1.11/src/microcode/avltree.c
Examining data/mit-scheme-10.1.11/src/microcode/avltree.h
Examining data/mit-scheme-10.1.11/src/microcode/bignmint.h
Examining data/mit-scheme-10.1.11/src/microcode/bignum.c
Examining data/mit-scheme-10.1.11/src/microcode/bignum.h
Examining data/mit-scheme-10.1.11/src/microcode/bigprm.c
Examining data/mit-scheme-10.1.11/src/microcode/bits.h
Examining data/mit-scheme-10.1.11/src/microcode/bitstr.c
Examining data/mit-scheme-10.1.11/src/microcode/bitstr.h
Examining data/mit-scheme-10.1.11/src/microcode/bkpt.c
Examining data/mit-scheme-10.1.11/src/microcode/bkpt.h
Examining data/mit-scheme-10.1.11/src/microcode/boot.c
Examining data/mit-scheme-10.1.11/src/microcode/bytevector.c
Examining data/mit-scheme-10.1.11/src/microcode/chacha.h
Examining data/mit-scheme-10.1.11/src/microcode/chacha12.c
Examining data/mit-scheme-10.1.11/src/microcode/chacha20.c
Examining data/mit-scheme-10.1.11/src/microcode/chacha8.c
Examining data/mit-scheme-10.1.11/src/microcode/char.c
Examining data/mit-scheme-10.1.11/src/microcode/cmpauxmd/asmcvt.c
Examining data/mit-scheme-10.1.11/src/microcode/cmpauxmd/c.c
Examining data/mit-scheme-10.1.11/src/microcode/cmpgc.h
Examining data/mit-scheme-10.1.11/src/microcode/cmpint.c
Examining data/mit-scheme-10.1.11/src/microcode/cmpint.h
Examining data/mit-scheme-10.1.11/src/microcode/cmpintmd/c-config.h
Examining data/mit-scheme-10.1.11/src/microcode/cmpintmd/c.c
Examining data/mit-scheme-10.1.11/src/microcode/cmpintmd/c.h
Examining data/mit-scheme-10.1.11/src/microcode/cmpintmd/i386-config.h
Examining data/mit-scheme-10.1.11/src/microcode/cmpintmd/i386.c
Examining data/mit-scheme-10.1.11/src/microcode/cmpintmd/i386.h
Examining data/mit-scheme-10.1.11/src/microcode/cmpintmd/none-config.h
Examining data/mit-scheme-10.1.11/src/microcode/cmpintmd/none.c
Examining data/mit-scheme-10.1.11/src/microcode/cmpintmd/none.h
Examining data/mit-scheme-10.1.11/src/microcode/cmpintmd/svm1-config.h
Examining data/mit-scheme-10.1.11/src/microcode/cmpintmd/svm1.c
Examining data/mit-scheme-10.1.11/src/microcode/cmpintmd/svm1.h
Examining data/mit-scheme-10.1.11/src/microcode/cmpintmd/x86-64-config.h
Examining data/mit-scheme-10.1.11/src/microcode/cmpintmd/x86-64.c
Examining data/mit-scheme-10.1.11/src/microcode/cmpintmd/x86-64.h
Examining data/mit-scheme-10.1.11/src/microcode/cmpintmd/x86-fenv.c
Examining data/mit-scheme-10.1.11/src/microcode/cmpintmd/x86-fenv.h
Examining data/mit-scheme-10.1.11/src/microcode/comlin.c
Examining data/mit-scheme-10.1.11/src/microcode/comlin.h
Examining data/mit-scheme-10.1.11/src/microcode/comutl.c
Examining data/mit-scheme-10.1.11/src/microcode/confshared.h
Examining data/mit-scheme-10.1.11/src/microcode/const.h
Examining data/mit-scheme-10.1.11/src/microcode/copyrigh.c
Examining data/mit-scheme-10.1.11/src/microcode/critsec.h
Examining data/mit-scheme-10.1.11/src/microcode/daemon.c
Examining data/mit-scheme-10.1.11/src/microcode/debug.c
Examining data/mit-scheme-10.1.11/src/microcode/dfloat.c
Examining data/mit-scheme-10.1.11/src/microcode/dstack.h
Examining data/mit-scheme-10.1.11/src/microcode/edwin.h
Examining data/mit-scheme-10.1.11/src/microcode/error.c
Examining data/mit-scheme-10.1.11/src/microcode/errors.h
Examining data/mit-scheme-10.1.11/src/microcode/extern.c
Examining data/mit-scheme-10.1.11/src/microcode/extern.h
Examining data/mit-scheme-10.1.11/src/microcode/extract-liarc-decls.c
Examining data/mit-scheme-10.1.11/src/microcode/fasdump.c
Examining data/mit-scheme-10.1.11/src/microcode/fasl.c
Examining data/mit-scheme-10.1.11/src/microcode/fasl.h
Examining data/mit-scheme-10.1.11/src/microcode/fasload.c
Examining data/mit-scheme-10.1.11/src/microcode/findprim.c
Examining data/mit-scheme-10.1.11/src/microcode/fixnum.c
Examining data/mit-scheme-10.1.11/src/microcode/fixnum.h
Examining data/mit-scheme-10.1.11/src/microcode/fixobj.h
Examining data/mit-scheme-10.1.11/src/microcode/floenv.c
Examining data/mit-scheme-10.1.11/src/microcode/floenv.h
Examining data/mit-scheme-10.1.11/src/microcode/flonum.c
Examining data/mit-scheme-10.1.11/src/microcode/gc.h
Examining data/mit-scheme-10.1.11/src/microcode/gccode.h
Examining data/mit-scheme-10.1.11/src/microcode/gcloop.c
Examining data/mit-scheme-10.1.11/src/microcode/gen-nonce.c
Examining data/mit-scheme-10.1.11/src/microcode/generic.c
Examining data/mit-scheme-10.1.11/src/microcode/history.h
Examining data/mit-scheme-10.1.11/src/microcode/hooks.c
Examining data/mit-scheme-10.1.11/src/microcode/hunk.c
Examining data/mit-scheme-10.1.11/src/microcode/intern.c
Examining data/mit-scheme-10.1.11/src/microcode/interp.c
Examining data/mit-scheme-10.1.11/src/microcode/interp.h
Examining data/mit-scheme-10.1.11/src/microcode/intext.c
Examining data/mit-scheme-10.1.11/src/microcode/intext.h
Examining data/mit-scheme-10.1.11/src/microcode/intprm.c
Examining data/mit-scheme-10.1.11/src/microcode/intrpt.h
Examining data/mit-scheme-10.1.11/src/microcode/keccak.c
Examining data/mit-scheme-10.1.11/src/microcode/keccak.h
Examining data/mit-scheme-10.1.11/src/microcode/liarc-gendeps.c
Examining data/mit-scheme-10.1.11/src/microcode/liarc.h
Examining data/mit-scheme-10.1.11/src/microcode/list.c
Examining data/mit-scheme-10.1.11/src/microcode/lookprm.c
Examining data/mit-scheme-10.1.11/src/microcode/lookup.c
Examining data/mit-scheme-10.1.11/src/microcode/lookup.h
Examining data/mit-scheme-10.1.11/src/microcode/macosx-starter.c
Examining data/mit-scheme-10.1.11/src/microcode/md5.c
Examining data/mit-scheme-10.1.11/src/microcode/md5.h
Examining data/mit-scheme-10.1.11/src/microcode/memmag.c
Examining data/mit-scheme-10.1.11/src/microcode/memmag.h
Examining data/mit-scheme-10.1.11/src/microcode/missing.c
Examining data/mit-scheme-10.1.11/src/microcode/mul.c
Examining data/mit-scheme-10.1.11/src/microcode/nt.h
Examining data/mit-scheme-10.1.11/src/microcode/ntapi.h
Examining data/mit-scheme-10.1.11/src/microcode/ntenv.c
Examining data/mit-scheme-10.1.11/src/microcode/ntfile.c
Examining data/mit-scheme-10.1.11/src/microcode/ntfs.c
Examining data/mit-scheme-10.1.11/src/microcode/ntfs.h
Examining data/mit-scheme-10.1.11/src/microcode/ntgui.c
Examining data/mit-scheme-10.1.11/src/microcode/ntgui.h
Examining data/mit-scheme-10.1.11/src/microcode/ntio.c
Examining data/mit-scheme-10.1.11/src/microcode/ntio.h
Examining data/mit-scheme-10.1.11/src/microcode/ntproc.c
Examining data/mit-scheme-10.1.11/src/microcode/ntproc.h
Examining data/mit-scheme-10.1.11/src/microcode/ntscmlib.h
Examining data/mit-scheme-10.1.11/src/microcode/ntscreen.c
Examining data/mit-scheme-10.1.11/src/microcode/ntscreen.h
Examining data/mit-scheme-10.1.11/src/microcode/ntsig.c
Examining data/mit-scheme-10.1.11/src/microcode/ntsock.c
Examining data/mit-scheme-10.1.11/src/microcode/ntsys.c
Examining data/mit-scheme-10.1.11/src/microcode/ntsys.h
Examining data/mit-scheme-10.1.11/src/microcode/ntterm.h
Examining data/mit-scheme-10.1.11/src/microcode/nttop.c
Examining data/mit-scheme-10.1.11/src/microcode/nttop.h
Examining data/mit-scheme-10.1.11/src/microcode/nttrap.c
Examining data/mit-scheme-10.1.11/src/microcode/nttrap.h
Examining data/mit-scheme-10.1.11/src/microcode/nttterm.c
Examining data/mit-scheme-10.1.11/src/microcode/nttty.c
Examining data/mit-scheme-10.1.11/src/microcode/ntutl/config.h
Examining data/mit-scheme-10.1.11/src/microcode/ntutl/float.h
Examining data/mit-scheme-10.1.11/src/microcode/ntutl/limits.h
Examining data/mit-scheme-10.1.11/src/microcode/ntutl/ntdialog.h
Examining data/mit-scheme-10.1.11/src/microcode/ntutl/scheme16.c
Examining data/mit-scheme-10.1.11/src/microcode/ntutl/scheme31.c
Examining data/mit-scheme-10.1.11/src/microcode/ntutl/scheme32.c
Examining data/mit-scheme-10.1.11/src/microcode/object.h
Examining data/mit-scheme-10.1.11/src/microcode/obstack.c
Examining data/mit-scheme-10.1.11/src/microcode/obstack.h
Examining data/mit-scheme-10.1.11/src/microcode/option.c
Examining data/mit-scheme-10.1.11/src/microcode/option.h
Examining data/mit-scheme-10.1.11/src/microcode/os.h
Examining data/mit-scheme-10.1.11/src/microcode/osctty.h
Examining data/mit-scheme-10.1.11/src/microcode/osentropy.h
Examining data/mit-scheme-10.1.11/src/microcode/osenv.h
Examining data/mit-scheme-10.1.11/src/microcode/osfile.h
Examining data/mit-scheme-10.1.11/src/microcode/osfs.h
Examining data/mit-scheme-10.1.11/src/microcode/osio.h
Examining data/mit-scheme-10.1.11/src/microcode/osproc.h
Examining data/mit-scheme-10.1.11/src/microcode/ospty.h
Examining data/mit-scheme-10.1.11/src/microcode/osscheme.c
Examining data/mit-scheme-10.1.11/src/microcode/osscheme.h
Examining data/mit-scheme-10.1.11/src/microcode/ossig.h
Examining data/mit-scheme-10.1.11/src/microcode/osterm.h
Examining data/mit-scheme-10.1.11/src/microcode/ostop.h
Examining data/mit-scheme-10.1.11/src/microcode/ostty.c
Examining data/mit-scheme-10.1.11/src/microcode/ostty.h
Examining data/mit-scheme-10.1.11/src/microcode/outf.c
Examining data/mit-scheme-10.1.11/src/microcode/outf.h
Examining data/mit-scheme-10.1.11/src/microcode/prchacha.c
Examining data/mit-scheme-10.1.11/src/microcode/prename.h
Examining data/mit-scheme-10.1.11/src/microcode/prentropy.c
Examining data/mit-scheme-10.1.11/src/microcode/prim.c
Examining data/mit-scheme-10.1.11/src/microcode/prim.h
Examining data/mit-scheme-10.1.11/src/microcode/prims.h
Examining data/mit-scheme-10.1.11/src/microcode/primutl.c
Examining data/mit-scheme-10.1.11/src/microcode/prkeccak.c
Examining data/mit-scheme-10.1.11/src/microcode/prmd5.c
Examining data/mit-scheme-10.1.11/src/microcode/prntenv.c
Examining data/mit-scheme-10.1.11/src/microcode/prntfs.c
Examining data/mit-scheme-10.1.11/src/microcode/prntio.c
Examining data/mit-scheme-10.1.11/src/microcode/prosenv.c
Examining data/mit-scheme-10.1.11/src/microcode/prosfile.c
Examining data/mit-scheme-10.1.11/src/microcode/prosfs.c
Examining data/mit-scheme-10.1.11/src/microcode/prosio.c
Examining data/mit-scheme-10.1.11/src/microcode/prosproc.c
Examining data/mit-scheme-10.1.11/src/microcode/prospty.c
Examining data/mit-scheme-10.1.11/src/microcode/prosterm.c
Examining data/mit-scheme-10.1.11/src/microcode/prostty.c
Examining data/mit-scheme-10.1.11/src/microcode/pruxdld.c
Examining data/mit-scheme-10.1.11/src/microcode/pruxenv.c
Examining data/mit-scheme-10.1.11/src/microcode/pruxffi.c
Examining data/mit-scheme-10.1.11/src/microcode/pruxffi.h
Examining data/mit-scheme-10.1.11/src/microcode/pruxfs.c
Examining data/mit-scheme-10.1.11/src/microcode/pruxio.c
Examining data/mit-scheme-10.1.11/src/microcode/pruxsock.c
Examining data/mit-scheme-10.1.11/src/microcode/ptrvec.c
Examining data/mit-scheme-10.1.11/src/microcode/purify.c
Examining data/mit-scheme-10.1.11/src/microcode/purutl.c
Examining data/mit-scheme-10.1.11/src/microcode/regex.c
Examining data/mit-scheme-10.1.11/src/microcode/regex.h
Examining data/mit-scheme-10.1.11/src/microcode/returns.h
Examining data/mit-scheme-10.1.11/src/microcode/rgxprim.c
Examining data/mit-scheme-10.1.11/src/microcode/sample.c
Examining data/mit-scheme-10.1.11/src/microcode/scheme.h
Examining data/mit-scheme-10.1.11/src/microcode/scode.h
Examining data/mit-scheme-10.1.11/src/microcode/sdata.h
Examining data/mit-scheme-10.1.11/src/microcode/stack.h
Examining data/mit-scheme-10.1.11/src/microcode/stackops.h
Examining data/mit-scheme-10.1.11/src/microcode/step.c
Examining data/mit-scheme-10.1.11/src/microcode/storage.c
Examining data/mit-scheme-10.1.11/src/microcode/string.c
Examining data/mit-scheme-10.1.11/src/microcode/svm1-defns.h
Examining data/mit-scheme-10.1.11/src/microcode/svm1-interp.c
Examining data/mit-scheme-10.1.11/src/microcode/syntax.c
Examining data/mit-scheme-10.1.11/src/microcode/syntax.h
Examining data/mit-scheme-10.1.11/src/microcode/syscall.h
Examining data/mit-scheme-10.1.11/src/microcode/sysprim.c
Examining data/mit-scheme-10.1.11/src/microcode/term.c
Examining data/mit-scheme-10.1.11/src/microcode/termcap.c
Examining data/mit-scheme-10.1.11/src/microcode/terminfo.c
Examining data/mit-scheme-10.1.11/src/microcode/tparam.c
Examining data/mit-scheme-10.1.11/src/microcode/transact.c
Examining data/mit-scheme-10.1.11/src/microcode/trap.h
Examining data/mit-scheme-10.1.11/src/microcode/tterm.c
Examining data/mit-scheme-10.1.11/src/microcode/types.h
Examining data/mit-scheme-10.1.11/src/microcode/unstackify.c
Examining data/mit-scheme-10.1.11/src/microcode/usrdef.h
Examining data/mit-scheme-10.1.11/src/microcode/utabmd.c
Examining data/mit-scheme-10.1.11/src/microcode/utils.c
Examining data/mit-scheme-10.1.11/src/microcode/ux.c
Examining data/mit-scheme-10.1.11/src/microcode/ux.h
Examining data/mit-scheme-10.1.11/src/microcode/uxctty.c
Examining data/mit-scheme-10.1.11/src/microcode/uxentropy.c
Examining data/mit-scheme-10.1.11/src/microcode/uxenv.c
Examining data/mit-scheme-10.1.11/src/microcode/uxfile.c
Examining data/mit-scheme-10.1.11/src/microcode/uxfs.c
Examining data/mit-scheme-10.1.11/src/microcode/uxio.c
Examining data/mit-scheme-10.1.11/src/microcode/uxio.h
Examining data/mit-scheme-10.1.11/src/microcode/uxproc.c
Examining data/mit-scheme-10.1.11/src/microcode/uxproc.h
Examining data/mit-scheme-10.1.11/src/microcode/uxsig.c
Examining data/mit-scheme-10.1.11/src/microcode/uxsig.h
Examining data/mit-scheme-10.1.11/src/microcode/uxsock.c
Examining data/mit-scheme-10.1.11/src/microcode/uxsock.h
Examining data/mit-scheme-10.1.11/src/microcode/uxterm.c
Examining data/mit-scheme-10.1.11/src/microcode/uxterm.h
Examining data/mit-scheme-10.1.11/src/microcode/uxtop.c
Examining data/mit-scheme-10.1.11/src/microcode/uxtop.h
Examining data/mit-scheme-10.1.11/src/microcode/uxtrap.c
Examining data/mit-scheme-10.1.11/src/microcode/uxtrap.h
Examining data/mit-scheme-10.1.11/src/microcode/uxtty.c
Examining data/mit-scheme-10.1.11/src/microcode/uxutil.c
Examining data/mit-scheme-10.1.11/src/microcode/uxutil.h
Examining data/mit-scheme-10.1.11/src/microcode/vector.c
Examining data/mit-scheme-10.1.11/src/microcode/wind.c
Examining data/mit-scheme-10.1.11/src/microcode/xdebug.c
Examining data/mit-scheme-10.1.11/src/pgsql/pgsql-shim.h
Examining data/mit-scheme-10.1.11/src/win32/dibutils/dibutils.c
Examining data/mit-scheme-10.1.11/src/win32/dibutils/dibutils.h
Examining data/mit-scheme-10.1.11/src/x11/x11-shim.h
Examining data/mit-scheme-10.1.11/src/x11/x11.h
Examining data/mit-scheme-10.1.11/src/x11/x11base.c
Examining data/mit-scheme-10.1.11/src/x11/x11color.c
Examining data/mit-scheme-10.1.11/src/x11/x11graph.c
Examining data/mit-scheme-10.1.11/src/x11/x11term.c
Examining data/mit-scheme-10.1.11/tests/ffi/ffi-test.c
Examining data/mit-scheme-10.1.11/tests/ffi/ffi-test.h

FINAL RESULTS:

data/mit-scheme-10.1.11/src/microcode/ntproc.c:164:22:  [5] (misc) SetSecurityDescriptorDacl:
  Never create NULL ACLs; an attacker can set it to Everyone (Deny All
  Access), which would even forbid administrator access (CWE-732).
  STD_BOOL_API_CALL (SetSecurityDescriptorDacl, ((&sdp), TRUE, 0, FALSE));
data/mit-scheme-10.1.11/src/microcode/ux.h:501:18:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
#define UX_chmod chmod
data/mit-scheme-10.1.11/src/microcode/ux.h:546:21:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
#define UX_readlink readlink
data/mit-scheme-10.1.11/src/microcode/cmpauxmd/c.c:245:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (((char *) start), (COMPILED_BLOCK_NAME (block)));
data/mit-scheme-10.1.11/src/microcode/cmpauxmd/c.c:292: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 (ncopy, ((const char *) table));
data/mit-scheme-10.1.11/src/microcode/cmpauxmd/c.c:347: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 (cname, name);
data/mit-scheme-10.1.11/src/microcode/cmpauxmd/c.c:391:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (full, prefix);
data/mit-scheme-10.1.11/src/microcode/cmpauxmd/c.c:392:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat (full, name);
data/mit-scheme-10.1.11/src/microcode/comlin.c:262:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	    sscanf(&argument[1], options[j].format, INT_LVALUE(options[j]));
data/mit-scheme-10.1.11/src/microcode/comlin.c:279:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	    sscanf(&argument[1], options[j].format, DOUBLE_LVALUE(options[j]));
data/mit-scheme-10.1.11/src/microcode/fasload.c:249:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (((char *) file_name), (STRING_POINTER (s)));
data/mit-scheme-10.1.11/src/microcode/findprim.c:114:29:  [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.
#  define dprintf(one, two) fprintf(stderr, one, two)
data/mit-scheme-10.1.11/src/microcode/findprim.c:295:8:  [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 (arg, fn);
data/mit-scheme-10.1.11/src/microcode/findprim.c:675:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (token_buffer, s);						\
data/mit-scheme-10.1.11/src/microcode/findprim.c:686:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (TOKEN_BUFFER_result, token_buffer);				\
data/mit-scheme-10.1.11/src/microcode/macosx-starter.c:61:7:  [4] (shell) execl:
  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.
      execl (bp, bp, "--macosx-application", "--edit", ((char *) 0));
data/mit-scheme-10.1.11/src/microcode/nt.h:124:15:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
extern char * getlogin (void);
data/mit-scheme-10.1.11/src/microcode/ntenv.c:474: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(current_dir_path, name);
data/mit-scheme-10.1.11/src/microcode/ntfs.c:48:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (nscopy, namestring);
data/mit-scheme-10.1.11/src/microcode/ntfs.c:479:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (pattern, search_pattern);
data/mit-scheme-10.1.11/src/microcode/ntgui.c:69: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).
      s = strcpy (cmdline, lpCmdLine);
data/mit-scheme-10.1.11/src/microcode/ntscreen.c:314:12:  [4] (buffer) lstrcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
  envvar = lstrcpy (tempvar, envvar);
data/mit-scheme-10.1.11/src/microcode/ntsock.c:164:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (result, (entry -> h_name));
data/mit-scheme-10.1.11/src/microcode/ntsock.c:178:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (result, (entry -> h_name));
data/mit-scheme-10.1.11/src/microcode/ntsys.c:50:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (buffer, name);
data/mit-scheme-10.1.11/src/microcode/nttop.c:172:6:  [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 (p, (info.szCSDVersion));
data/mit-scheme-10.1.11/src/microcode/nttop.c:179:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (p, "Microsoft Windows %s (Build %u",
data/mit-scheme-10.1.11/src/microcode/nttop.c:189:6:  [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 (p, (info.szCSDVersion));
data/mit-scheme-10.1.11/src/microcode/nttrap.c:356:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      += (sprintf (bufptr, "%s Unknown Exception %d Raised at address %#lx",
data/mit-scheme-10.1.11/src/microcode/nttrap.c:359:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    bufptr += (sprintf (bufptr, "%s %s Exception Raised at address %#lx",
data/mit-scheme-10.1.11/src/microcode/option.c:300:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (result, s);
data/mit-scheme-10.1.11/src/microcode/option.c:642:8:  [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 (element, wd);
data/mit-scheme-10.1.11/src/microcode/option.c:645:8:  [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 (end, unquoted);
data/mit-scheme-10.1.11/src/microcode/option.c:692:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (result, quoted_dir);
data/mit-scheme-10.1.11/src/microcode/option.c:694:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (end, library_path);
data/mit-scheme-10.1.11/src/microcode/outf.c:131:8:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
       vsprintf ((buffer), (format), (args))
data/mit-scheme-10.1.11/src/microcode/outf.c:149:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf (stdout, format, args);
data/mit-scheme-10.1.11/src/microcode/outf.c:165:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf (stderr, format, args);
data/mit-scheme-10.1.11/src/microcode/outf.c:199:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf (stdout, format, args);
data/mit-scheme-10.1.11/src/microcode/outf.c:211:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf (stderr, format, args);
data/mit-scheme-10.1.11/src/microcode/outf.c:223:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf (stderr, format, args);
data/mit-scheme-10.1.11/src/microcode/outf.c:231:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf (stderr, format, args);
data/mit-scheme-10.1.11/src/microcode/primutl.c:323: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 (cname, name);
data/mit-scheme-10.1.11/src/microcode/termcap.c:463:6:  [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 (bp, tem);
data/mit-scheme-10.1.11/src/microcode/termcap.c:502: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 (bp, tcenv);
data/mit-scheme-10.1.11/src/microcode/terminfo.c:53:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (outstring, temp);
data/mit-scheme-10.1.11/src/microcode/tparam.c:350:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (op, up);
data/mit-scheme-10.1.11/src/microcode/tparam.c:352:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (op, left);
data/mit-scheme-10.1.11/src/microcode/ux.c:233:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (s, result);
data/mit-scheme-10.1.11/src/microcode/ux.c:314: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.
    FILE * stream = (popen ("pwd", "r"));
data/mit-scheme-10.1.11/src/microcode/ux.c:343: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 (buffer, internal_buffer);
data/mit-scheme-10.1.11/src/microcode/ux.h:483:20:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
     extern char * getlogin (void);
data/mit-scheme-10.1.11/src/microcode/ux.h:497:19:  [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 UX_access access
data/mit-scheme-10.1.11/src/microcode/ux.h:522:21:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
#define UX_getlogin getlogin
data/mit-scheme-10.1.11/src/microcode/ux.h:558:19:  [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.
#define UX_system system
data/mit-scheme-10.1.11/src/microcode/uxenv.c:697: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(current_dir_path, name);
data/mit-scheme-10.1.11/src/microcode/uxsock.c:180:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (result, host_name);
data/mit-scheme-10.1.11/src/microcode/uxsock.c:193:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (result, (entry -> h_name));
data/mit-scheme-10.1.11/src/microcode/uxsock.c:207:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (result, (entry -> h_name));
data/mit-scheme-10.1.11/src/microcode/uxterm.c:844: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 (slave_name, (ptsname (fd)));
data/mit-scheme-10.1.11/src/microcode/uxtop.c:223:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (result, bp);
data/mit-scheme-10.1.11/src/microcode/uxutil.c:82:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf (buffer, "`%s' (%s%s%c)",
data/mit-scheme-10.1.11/src/microcode/uxutil.c:90:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (buffer, "`%s'", description);
data/mit-scheme-10.1.11/src/x11/x11base.c:1228:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (copy, name);
data/mit-scheme-10.1.11/src/microcode/gen-nonce.c:50:3:  [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.
  srand (time (0));
data/mit-scheme-10.1.11/src/microcode/ntgui.c:542:10:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    it = LoadLibrary ((LPSTR) (STRING_POINTER (ARG_REF (1))));
data/mit-scheme-10.1.11/src/microcode/ntproc.c:70:30:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
#define GRAB_PROCESS_TABLE() EnterCriticalSection (&process_table_lock)
data/mit-scheme-10.1.11/src/microcode/ntproc.c:121:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection (&process_table_lock);
data/mit-scheme-10.1.11/src/microcode/ntproc.c:189:6:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
    (CreateProcess,
data/mit-scheme-10.1.11/src/microcode/ntscreen.c:292:19:  [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 * envvar = getenv (color_symbol);
data/mit-scheme-10.1.11/src/microcode/ntscreen.c:308:19:  [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 * envvar = getenv (geom_symbol);
data/mit-scheme-10.1.11/src/microcode/ntscreen.c:333:18:  [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 *envvar = getenv (flag_symbol);
data/mit-scheme-10.1.11/src/microcode/ntscreen.c:366:23:  [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 * font_name = getenv ("MITSCHEME_FONT");
data/mit-scheme-10.1.11/src/microcode/nttop.c:86:32:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
  win32_system_utilities_dll = LoadLibrary (dll_name);
data/mit-scheme-10.1.11/src/microcode/nttop.c:527:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection (&interrupt_registers_lock);
data/mit-scheme-10.1.11/src/microcode/nttop.c:533:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (&interrupt_registers_lock);
data/mit-scheme-10.1.11/src/microcode/option.c:527:23:  [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.
    const char * t = (getenv (variable));
data/mit-scheme-10.1.11/src/microcode/option.c:552:25:  [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.
      const char * t = (getenv (variable));
data/mit-scheme-10.1.11/src/microcode/option.c:790:30:  [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.
    const char * filename = (getenv (variable));
data/mit-scheme-10.1.11/src/microcode/prntenv.c:58:36:  [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.
    const char * variable_value = (getenv (STRING_ARG (1)));
data/mit-scheme-10.1.11/src/microcode/termcap.c:440:18:  [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.
  tem = (char *) getenv ("TERMCAP");
data/mit-scheme-10.1.11/src/microcode/termcap.c:455:39:  [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.
  if (tem && !filep && !strcmp (name, getenv ("TERM")))
data/mit-scheme-10.1.11/src/microcode/ux.c:306:8:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
  if ((getwd (collection_buffer)) == 0)
data/mit-scheme-10.1.11/src/microcode/ux.h:492:18:  [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 (const char *);
data/mit-scheme-10.1.11/src/microcode/ux.h:516:19:  [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.
#define UX_getenv getenv
data/mit-scheme-10.1.11/src/microcode/uxsig.c:692:11:  [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.
      if (getenv ("USE_SCHEMATIK_STYLE_INTERRUPTS"))
data/mit-scheme-10.1.11/src/microcode/uxsig.c:694:11:  [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.
      if (getenv ("USE_SCHEMATIK_STYLE_INTERRUPTS"))
data/mit-scheme-10.1.11/src/microcode/uxsig.c:704:11:  [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.
      if (getenv ("USE_SCHEMATIK_STYLE_INTERRUPTS"))
data/mit-scheme-10.1.11/src/microcode/uxtty.c:143:15:  [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.
	&& ((term = (getenv ("TERM"))) != 0)
data/mit-scheme-10.1.11/src/berkeley-db/prdb4.c:342:15:  [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).
      ((db -> open) (db,
data/mit-scheme-10.1.11/src/berkeley-db/prdb4.c:548:19:  [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).
      ((db_env -> open) (db_env,
data/mit-scheme-10.1.11/src/compiler/documentation/test-c.c:81:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  extern int atoi ();
data/mit-scheme-10.1.11/src/compiler/documentation/test-c.c:92:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    values[count] = ((long) (atoi (argv[count])));
data/mit-scheme-10.1.11/src/microcode/boot.c:303: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 (reload_saved_string, (STRING_POINTER (string)), length);
data/mit-scheme-10.1.11/src/microcode/bytevector.c:69: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 ((BYTEVECTOR_POINTER (result)), vp, n_bytes);
data/mit-scheme-10.1.11/src/microcode/cmpauxmd/c.c:500:46:  [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.
      int res = (declare_compiled_code_ns (((char *) ((slots[i]) . name)),
data/mit-scheme-10.1.11/src/microcode/cmpauxmd/c.c:517:46:  [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.
      int res = (declare_compiled_data_ns (((char *) ((slots[i]) . name)),
data/mit-scheme-10.1.11/src/microcode/confshared.h:87:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#    define memcpy(d, s, n) bcopy ((s), (d), (n))
data/mit-scheme-10.1.11/src/microcode/confshared.h:87:29:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#    define memcpy(d, s, n) bcopy ((s), (d), (n))
data/mit-scheme-10.1.11/src/microcode/confshared.h:88:30:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#    define memmove(d, s, n) bcopy ((s), (d), (n))
data/mit-scheme-10.1.11/src/microcode/debug.c:782:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[40];
data/mit-scheme-10.1.11/src/microcode/debug.c:795:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf (buffer, "...Arg %ld", ((long) (i + 1)));
data/mit-scheme-10.1.11/src/microcode/debug.c:1438: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 input_line [256];
data/mit-scheme-10.1.11/src/microcode/extract-liarc-decls.c:107:8:  [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).
  s = (fopen (filename, "r"));
data/mit-scheme-10.1.11/src/microcode/fasl.c:38:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE * s = (fopen (filename, "wb"));
data/mit-scheme-10.1.11/src/microcode/fasl.c:70:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE * s = (fopen (filename, "rb"));
data/mit-scheme-10.1.11/src/microcode/findprim.c:107: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 index_buffer [64];						\
data/mit-scheme-10.1.11/src/microcode/findprim.c:109:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (index_buffer, "%x", (index));				\
data/mit-scheme-10.1.11/src/microcode/findprim.c:123:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char * token_array [4];
data/mit-scheme-10.1.11/src/microcode/findprim.c:225: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).
      output = (fopen (argv[2], "w"));
data/mit-scheme-10.1.11/src/microcode/findprim.c:270: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 fn [1024];
data/mit-scheme-10.1.11/src/microcode/findprim.c:273:25:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      file_list_file = (fopen (argv[2], "r"));
data/mit-scheme-10.1.11/src/microcode/findprim.c:332:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  else if ((input = (fopen (file_name, "r"))) == NULL)
data/mit-scheme-10.1.11/src/microcode/findprim.c:374: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 compare_buffer [1024];
data/mit-scheme-10.1.11/src/microcode/gen-nonce.c:44:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int na = (atoi (argv[1]));
data/mit-scheme-10.1.11/src/microcode/lookup.c:537:4:  [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 ((GET_FRAME_EXTENSION_BINDINGS (extension)),
data/mit-scheme-10.1.11/src/microcode/macosx-starter.c:58:10:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
  pid = (vfork ());
data/mit-scheme-10.1.11/src/microcode/md5.c:219: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.
		(void)memcpy(&M->block[M->i], p, n);
data/mit-scheme-10.1.11/src/microcode/md5.c:227: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.
		(void)memcpy(&M->block[M->i], p, sizeof(M->block) - M->i);
data/mit-scheme-10.1.11/src/microcode/md5.c:243:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	(void)memcpy(M->block, p, n);
data/mit-scheme-10.1.11/src/microcode/md5.c:284:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	(void)memcpy(h, M->state, sizeof(M->state));
data/mit-scheme-10.1.11/src/microcode/ntfs.c:45: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 nscopy [MAX_PATH];
data/mit-scheme-10.1.11/src/microcode/ntfs.c:331:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = (open (filename, (O_RDWR | O_CREAT | O_EXCL), MODE_REG));
data/mit-scheme-10.1.11/src/microcode/ntfs.c:340: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).
	    fd = (open (filename, O_RDWR, MODE_REG));
data/mit-scheme-10.1.11/src/microcode/ntfs.c:361:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf [1];
data/mit-scheme-10.1.11/src/microcode/ntfs.c:365:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = (open (filename, (O_WRONLY | O_TRUNC), MODE_REG));
data/mit-scheme-10.1.11/src/microcode/ntfs.c:373:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf [1];
data/mit-scheme-10.1.11/src/microcode/ntfs.c:477: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 pattern [MAX_PATH];
data/mit-scheme-10.1.11/src/microcode/ntfs.c:483:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat (pattern, "*.*");
data/mit-scheme-10.1.11/src/microcode/ntgui.c:753:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/mit-scheme-10.1.11/src/microcode/ntgui.c:769:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/mit-scheme-10.1.11/src/microcode/ntproc.c:111: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).
  trace_file = (fopen (TRACE_NTPROC_FILENAME, "w"));
data/mit-scheme-10.1.11/src/microcode/ntproc.c:287: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 window_class [32];
data/mit-scheme-10.1.11/src/microcode/ntscreen.c:309: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 tempvar[100];
data/mit-scheme-10.1.11/src/microcode/ntscreen.c:2134:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char code_page [20];
data/mit-scheme-10.1.11/src/microcode/ntscreen.c:2144: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).
	code_page_number = (atoi (code_page));
data/mit-scheme-10.1.11/src/microcode/ntscreen.c:3572:19:  [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).
	  long points = (atol (start));
data/mit-scheme-10.1.11/src/microcode/ntsig.c:97: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.
unsigned char keyboard_interrupt_table[KB_INT_TABLE_SIZE];
data/mit-scheme-10.1.11/src/microcode/ntsock.c:98: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 ((& (address . sin_addr)), host, (sizeof (address . sin_addr)));
data/mit-scheme-10.1.11/src/microcode/ntsock.c:212: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 ((& (address . sin_addr)), host, (sizeof (address . sin_addr)));
data/mit-scheme-10.1.11/src/microcode/ntsock.c:266: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 (peer_host,
data/mit-scheme-10.1.11/src/microcode/nttop.c:165:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (p, "Microsoft Windows NT %u.%u (Build %u",
data/mit-scheme-10.1.11/src/microcode/nttop.c:171:6:  [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 (p, "; ");
data/mit-scheme-10.1.11/src/microcode/nttop.c:188:6:  [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 (p, "; ");
data/mit-scheme-10.1.11/src/microcode/nttop.c:196:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (p, "Microsoft Windows %u.%u",
data/mit-scheme-10.1.11/src/microcode/nttop.c:201:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat (p, " IA-32");
data/mit-scheme-10.1.11/src/microcode/nttop.c:364: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 *) last_message) [length - 1]) = '\0';
data/mit-scheme-10.1.11/src/microcode/nttop.c:471:1:  [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 (const char * s1, char * s2, int n)
data/mit-scheme-10.1.11/src/microcode/nttrap.c:348: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 msgbuf[4096];
data/mit-scheme-10.1.11/src/microcode/nttrap.c:364:16:  [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.
    bufptr += (sprintf (bufptr, "\nContext is NULL."));
data/mit-scheme-10.1.11/src/microcode/nttrap.c:368:18:  [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.
      bufptr += (sprintf (bufptr,
data/mit-scheme-10.1.11/src/microcode/nttrap.c:371:18:  [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.
      bufptr += (sprintf (bufptr,
data/mit-scheme-10.1.11/src/microcode/nttrap.c:374:18:  [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.
      bufptr += (sprintf (bufptr,
data/mit-scheme-10.1.11/src/microcode/nttrap.c:377:18:  [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.
      bufptr += (sprintf (bufptr,
data/mit-scheme-10.1.11/src/microcode/nttrap.c:380:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      += (sprintf (bufptr, "\ncontext->Eip        = %#lx.", context->Eip));
data/mit-scheme-10.1.11/src/microcode/nttrap.c:382:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      += (sprintf (bufptr, "\ncontext->Esp        = %#lx.", context->Esp));
data/mit-scheme-10.1.11/src/microcode/nttrap.c:383:16:  [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.
    bufptr += (sprintf (bufptr, "\nstack_pointer         = %#lx.",
data/mit-scheme-10.1.11/src/microcode/nttrap.c:385:16:  [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.
    bufptr += (sprintf (bufptr, "\nadj (stack_pointer) = %#lx.",
data/mit-scheme-10.1.11/src/microcode/nttrap.c:392:16:  [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.
    bufptr += (sprintf (bufptr,
data/mit-scheme-10.1.11/src/microcode/nttrap.c:397:16:  [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.
    bufptr += (sprintf (bufptr, "\n\nDisplay More Information?"));
data/mit-scheme-10.1.11/src/microcode/nttrap.c:401:6:  [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 (bufptr,
data/mit-scheme-10.1.11/src/microcode/nttrap.c:449: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 (new_sp, temp_stack_ptr, (size * (sizeof (SCHEME_OBJECT))));
data/mit-scheme-10.1.11/src/microcode/nttrap.c:1080: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 responsebuf[256], * response;
data/mit-scheme-10.1.11/src/microcode/nttterm.c:45:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char tputs_output [TERMCAP_BUFFER_SIZE];
data/mit-scheme-10.1.11/src/microcode/ntutl/scheme16.c:42:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/mit-scheme-10.1.11/src/microcode/obstack.h:132: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	contents[4];		/* objects begin here */
data/mit-scheme-10.1.11/src/microcode/obstack.h:241:4:  [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 (__o->next_free, where, __len);				\
data/mit-scheme-10.1.11/src/microcode/obstack.h:250:4:  [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 (__o->next_free, where, __len),				\
data/mit-scheme-10.1.11/src/microcode/obstack.h:344: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 ((h)->next_free, where, (h)->temp),				\
data/mit-scheme-10.1.11/src/microcode/obstack.h:351: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 ((h)->next_free, where, (h)->temp),				\
data/mit-scheme-10.1.11/src/microcode/os.h:39:32:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define FASTCOPY(from, to, n) (memcpy ((to), (from), (n)))
data/mit-scheme-10.1.11/src/microcode/outf.c:123:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char fatal_buf [MAX_FATAL_BUF + 1] = { '\0' };
data/mit-scheme-10.1.11/src/microcode/outf.c:138: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 [1000];
data/mit-scheme-10.1.11/src/microcode/primutl.c:364: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 (cname, name, n_bytes);
data/mit-scheme-10.1.11/src/microcode/primutl.c:493: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 ((start + 1), source, (n_chars + 1));
data/mit-scheme-10.1.11/src/microcode/prntfs.c:278:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf1[128], buf2[128];
data/mit-scheme-10.1.11/src/microcode/prntfs.c:290:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name [256];
data/mit-scheme-10.1.11/src/microcode/prntfs.c:294: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 file_system_name [256];
data/mit-scheme-10.1.11/src/microcode/prntio.c:67:5:  [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).
	= (fopen ((((ARG_REF (2)) == SHARP_F)
data/mit-scheme-10.1.11/src/microcode/prosfs.c:206:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer [FILE_COPY_BUFFER_LENGTH];
data/mit-scheme-10.1.11/src/microcode/pruxenv.c:190:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char this_host_name [HOSTNAMESIZE];
data/mit-scheme-10.1.11/src/microcode/pruxenv.c:198:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy (this_host_name, "unknown-host.unknown.unknown");
data/mit-scheme-10.1.11/src/microcode/pruxenv.c:217:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char this_host_name[HOSTNAMESIZE];
data/mit-scheme-10.1.11/src/microcode/pruxenv.c:223:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy (this_host_name, "unknown-host");
data/mit-scheme-10.1.11/src/microcode/pruxffi.c:186: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 (dest, bytes, n_bytes + 1);
data/mit-scheme-10.1.11/src/microcode/pruxffi.c:193: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 (dest, bytes, n_bytes + 1);
data/mit-scheme-10.1.11/src/microcode/pruxffi.c:301: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 (dest, src, count);
data/mit-scheme-10.1.11/src/microcode/pruxffi.c:409: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 (dest, src, count);
data/mit-scheme-10.1.11/src/microcode/pruxffi.c:941: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(alien_address (arg), p, size);
data/mit-scheme-10.1.11/src/microcode/regex.c:228:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char *stack_start[RE_NFAILURES];
data/mit-scheme-10.1.11/src/microcode/regex.c:535:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char *register_start[RE_NREGS];
data/mit-scheme-10.1.11/src/microcode/regex.c:536:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char *register_end[RE_NREGS];
data/mit-scheme-10.1.11/src/microcode/regex.c:1024:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char fastmap_array[MAX_ASCII];				\
data/mit-scheme-10.1.11/src/microcode/string.c:68: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 ((STRING_POINTER (result)), vp, n_bytes);
data/mit-scheme-10.1.11/src/microcode/string.c:76: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 ((STRING_POINTER (result)), vp, n_bytes);
data/mit-scheme-10.1.11/src/microcode/string.c:578:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    (((char *) (HT_RECORD_PTR (result))) [n_bytes]) = '\0';
data/mit-scheme-10.1.11/src/microcode/svm1-interp.c:173: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 b [(sizeof (unsigned long))];
data/mit-scheme-10.1.11/src/microcode/syntax.c:46: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.
unsigned char syntax_spec_code [0x80] =
data/mit-scheme-10.1.11/src/microcode/syntax.c:120: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.
unsigned char syntax_code_spec[13] =
data/mit-scheme-10.1.11/src/microcode/syntax.h:97:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern unsigned char syntax_spec_code [0x80];
data/mit-scheme-10.1.11/src/microcode/termcap.c:220:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  return atoi (ptr);
data/mit-scheme-10.1.11/src/microcode/termcap.c:403: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 esa[NAM$C_MAXRSS];
data/mit-scheme-10.1.11/src/microcode/termcap.c:484:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open (tem, 0, 0);
data/mit-scheme-10.1.11/src/microcode/termcap.c:696:4:  [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 (bufp->ptr, buf, bufp->full -= bufp->ptr - buf);
data/mit-scheme-10.1.11/src/microcode/tparam.c:159:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char tgoto_buf[50];
data/mit-scheme-10.1.11/src/microcode/tparam.c:201:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      (void) memcpy (new, outstring, op - outstring);
data/mit-scheme-10.1.11/src/microcode/tparam.c:362: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[50];
data/mit-scheme-10.1.11/src/microcode/tparam.c:364:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  args[0] = atoi (argv[2]);
data/mit-scheme-10.1.11/src/microcode/tparam.c:365:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  args[1] = atoi (argv[3]);
data/mit-scheme-10.1.11/src/microcode/tparam.c:366:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  args[2] = atoi (argv[4]);
data/mit-scheme-10.1.11/src/microcode/tterm.c:77:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char termcap_buffer [TERMCAP_BUFFER_SIZE];
data/mit-scheme-10.1.11/src/microcode/tterm.c:78:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char tgetstr_buffer [TERMCAP_BUFFER_SIZE];
data/mit-scheme-10.1.11/src/microcode/tterm.c:81:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char tputs_output [TERMCAP_BUFFER_SIZE];
data/mit-scheme-10.1.11/src/microcode/tterm.c:146:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char string_buffer [4096];
data/mit-scheme-10.1.11/src/microcode/unstackify.c:417: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 (str, temp, len);
data/mit-scheme-10.1.11/src/microcode/ux.c:277: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 internal_buffer [MAXPATHLEN + 2];
data/mit-scheme-10.1.11/src/microcode/ux.c:829: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 fn [64];
data/mit-scheme-10.1.11/src/microcode/ux.c:835:8:  [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).
  s = (fopen ("/proc/sys/vm/mmap_min_addr", "r"));
data/mit-scheme-10.1.11/src/microcode/ux.c:846:8:  [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).
  s = (fopen (fn, "r"));
data/mit-scheme-10.1.11/src/microcode/ux.h:158:15:  [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).
   extern int open (const char *, int, ...);
data/mit-scheme-10.1.11/src/microcode/ux.h:540:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define UX_open open
data/mit-scheme-10.1.11/src/microcode/ux.h:564:18:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
#define UX_vfork vfork
data/mit-scheme-10.1.11/src/microcode/uxctty.c:532:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer [L_ctermid];
data/mit-scheme-10.1.11/src/microcode/uxfs.c:386:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer [FILE_COPY_BUFFER_LENGTH];
data/mit-scheme-10.1.11/src/microcode/uxfs.c:474:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf [1];
data/mit-scheme-10.1.11/src/microcode/uxfs.c:492:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf [1];
data/mit-scheme-10.1.11/src/microcode/uxsig.c:299:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer [32];
data/mit-scheme-10.1.11/src/microcode/uxsig.c:303:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (buffer, "unknown signal %d", signo);
data/mit-scheme-10.1.11/src/microcode/uxsig.c:1146: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 input_string [256];
data/mit-scheme-10.1.11/src/microcode/uxsig.c:1177: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 input_string [256];
data/mit-scheme-10.1.11/src/microcode/uxsig.c:1193:25:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FILE * to_dump = (fopen (&input_string[0], "w"));
data/mit-scheme-10.1.11/src/microcode/uxsock.c:53: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 ((& (address . sin_addr)), host, (sizeof (address . sin_addr)));
data/mit-scheme-10.1.11/src/microcode/uxsock.c:162:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char * addresses [2];
data/mit-scheme-10.1.11/src/microcode/uxsock.c:175: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 host_name [HOSTNAMESIZE];
data/mit-scheme-10.1.11/src/microcode/uxsock.c:265: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 ((& (address . sin_addr)), host, (sizeof (address . sin_addr)));
data/mit-scheme-10.1.11/src/microcode/uxsock.c:353: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 (peer_host,
data/mit-scheme-10.1.11/src/microcode/uxterm.c:721: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 master_name [24];
data/mit-scheme-10.1.11/src/microcode/uxterm.c:723: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 (master_name, "/dev/pty%c0", (*p1));
data/mit-scheme-10.1.11/src/microcode/uxterm.c:746:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char master_name [24];
data/mit-scheme-10.1.11/src/microcode/uxterm.c:747:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char slave_name [24];
data/mit-scheme-10.1.11/src/microcode/uxterm.c:755:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (master_name, "/dev/pty%c%c", (*p1), (*p2));
data/mit-scheme-10.1.11/src/microcode/uxterm.c:756:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (slave_name, "/dev/tty%c%c", (*p1), (*p2));
data/mit-scheme-10.1.11/src/microcode/uxterm.c:802:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      static char slave_name [24];
data/mit-scheme-10.1.11/src/microcode/uxtty.c:125:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char tputs_output [TERMCAP_BUFFER_SIZE];
data/mit-scheme-10.1.11/src/microcode/uxtty.c:139:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char termcap_buffer [TERMCAP_BUFFER_SIZE];
data/mit-scheme-10.1.11/src/microcode/uxtty.c:187:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  int x = (atoi (columns));
data/mit-scheme-10.1.11/src/microcode/uxtty.c:188:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  int y = (atoi (lines));
data/mit-scheme-10.1.11/src/microcode/uxtty.c:215:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char tgetstr_buffer [TERMCAP_BUFFER_SIZE];
data/mit-scheme-10.1.11/src/microcode/uxutil.c:37:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer [5];
data/mit-scheme-10.1.11/src/microcode/uxutil.c:73:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer [64];
data/mit-scheme-10.1.11/src/x11/x11base.c:191: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 message [2048];
data/mit-scheme-10.1.11/src/x11/x11base.c:355:51:  [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).
    (attributes->border_width) = ((s == 0) ? 0 : (atoi (s)));
data/mit-scheme-10.1.11/src/x11/x11base.c:364:51:  [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).
      = ((s == 0) ? (attributes->border_width) : (atoi (s)));
data/mit-scheme-10.1.11/src/x11/x11base.c:1132: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 (result, &event, sizeof (XEvent));
data/mit-scheme-10.1.11/src/microcode/cmpauxmd/asmcvt.c:40:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  int c = (getchar ());
data/mit-scheme-10.1.11/src/microcode/cmpauxmd/asmcvt.c:57:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  int c = (getchar ());
data/mit-scheme-10.1.11/src/microcode/cmpauxmd/c.c:228: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).
      n += (1 + (BYTES_TO_WORDS ((strlen (COMPILED_BLOCK_NAME (block))) + 1)));
data/mit-scheme-10.1.11/src/microcode/cmpauxmd/c.c:246:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      start += (BYTES_TO_WORDS ((strlen (COMPILED_BLOCK_NAME (block))) + 1));
data/mit-scheme-10.1.11/src/microcode/cmpauxmd/c.c:287: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).
      size_t nb = ((strlen ((const char *) table)) + 1);
data/mit-scheme-10.1.11/src/microcode/cmpauxmd/c.c:346: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).
      cname = (OS_malloc ((strlen (name)) + 1));
data/mit-scheme-10.1.11/src/microcode/cmpauxmd/c.c:390: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).
  full = (dstack_alloc ((strlen (prefix)) + (strlen (name)) + 1));
data/mit-scheme-10.1.11/src/microcode/cmpauxmd/c.c:390:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  full = (dstack_alloc ((strlen (prefix)) + (strlen (name)) + 1));
data/mit-scheme-10.1.11/src/microcode/extract-liarc-decls.c:136:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (prefix, filename, n);
data/mit-scheme-10.1.11/src/microcode/extract-liarc-decls.c:220:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      int c = (getc (s));
data/mit-scheme-10.1.11/src/microcode/findprim.c:110: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).
  (size) = (strlen (index_buffer));					\
data/mit-scheme-10.1.11/src/microcode/findprim.c:284:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  i = (strlen (fn)) - 1;
data/mit-scheme-10.1.11/src/microcode/findprim.c:294: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).
	      arg = (xmalloc ((strlen (fn)) + 1));
data/mit-scheme-10.1.11/src/microcode/findprim.c:382:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  if ((c = (getc (input)))  == '*')
data/mit-scheme-10.1.11/src/microcode/findprim.c:384:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	      c = (getc (input));
data/mit-scheme-10.1.11/src/microcode/findprim.c:397:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		      c = (getc (input));
data/mit-scheme-10.1.11/src/microcode/findprim.c:399:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		  c = (getc (input));
data/mit-scheme-10.1.11/src/microcode/findprim.c:414:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		  c = (getc (input));
data/mit-scheme-10.1.11/src/microcode/findprim.c:441:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = (getc (input));
data/mit-scheme-10.1.11/src/microcode/findprim.c:669: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).
  TOKEN_BUFFER_n = ((strlen (s)) + 1);					\
data/mit-scheme-10.1.11/src/microcode/findprim.c:708:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  c = (getc (input));
data/mit-scheme-10.1.11/src/microcode/findprim.c:713:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  c = (getc (input));
data/mit-scheme-10.1.11/src/microcode/findprim.c:718:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	      c = (getc (input));
data/mit-scheme-10.1.11/src/microcode/findprim.c:736:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  c = (getc (input));
data/mit-scheme-10.1.11/src/microcode/findprim.c:774:27:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while (whitespace (c = (getc (input)))) ;
data/mit-scheme-10.1.11/src/microcode/findprim.c:784:30:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while (! (whitespace (c = (getc (input))))) ;
data/mit-scheme-10.1.11/src/microcode/findprim.c:885: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).
  length = (strlen (file_name));					\
data/mit-scheme-10.1.11/src/microcode/findprim.c:945: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).
  temp = (strlen (primitive_descriptor -> scheme_name));
data/mit-scheme-10.1.11/src/microcode/findprim.c:949: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).
  temp = (strlen (primitive_descriptor -> c_name));
data/mit-scheme-10.1.11/src/microcode/findprim.c:953: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).
  temp = (strlen (primitive_descriptor -> arity));
data/mit-scheme-10.1.11/src/microcode/findprim.c:957: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).
  temp = (strlen (primitive_descriptor -> documentation));
data/mit-scheme-10.1.11/src/microcode/findprim.c:961: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).
  temp = (strlen (primitive_descriptor -> file_name));
data/mit-scheme-10.1.11/src/microcode/findprim.c:1188: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).
  int length1 = (strlen (s1));
data/mit-scheme-10.1.11/src/microcode/findprim.c:1189: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).
  int length2 = (strlen (s2));
data/mit-scheme-10.1.11/src/microcode/intern.c:151:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return (memory_to_symbol ((strlen (string)), string));
data/mit-scheme-10.1.11/src/microcode/ntenv.c:465: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).
  size_t name_size = (strlen (name));
data/mit-scheme-10.1.11/src/microcode/ntfs.c:50: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).
    unsigned int len = (strlen (nscopy));
data/mit-scheme-10.1.11/src/microcode/ntfs.c:96: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).
	  if (((strlen (namestring)) == 3)
data/mit-scheme-10.1.11/src/microcode/ntfs.c:375:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    STD_UINT_UNIX_CALL (scr, read, (fd, buf, 1));
data/mit-scheme-10.1.11/src/microcode/ntfs.c:481: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).
    unsigned int len = (strlen (pattern));
data/mit-scheme-10.1.11/src/microcode/ntfs.c:528: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).
  unsigned int n = (strlen (prefix));
data/mit-scheme-10.1.11/src/microcode/ntgui.c:53:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      int cmdlen = strlen(lpCmdLine);
data/mit-scheme-10.1.11/src/microcode/ntio.c:497: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 length = (strlen (string));
data/mit-scheme-10.1.11/src/microcode/ntproc.c:292: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).
      if ((n == (strlen (console_class)))
data/mit-scheme-10.1.11/src/microcode/ntscreen.c:285:5:  [1] (buffer) lstrcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant character.
    lstrcpy (lf->lfFaceName, "");
data/mit-scheme-10.1.11/src/microcode/ntscreen.c:2572:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (screen->pending, (lpBlock + i), screen->n_pending);
data/mit-scheme-10.1.11/src/microcode/ntscreen.c:2595:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy ((* lpBlock), screen->pending, screen->n_pending);
data/mit-scheme-10.1.11/src/microcode/ntscreen.c:2596:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (((* lpBlock) + screen->n_pending), lpBlock_in, nLength_in);
data/mit-scheme-10.1.11/src/microcode/ntscreen.c:3380: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).
  SendMessage (screen, SCREEN_WRITE, strlen(string), (LPARAM)(LPSTR)string);
data/mit-scheme-10.1.11/src/microcode/ntsock.c:153: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).
  return (OS_realloc (name, ((strlen (name)) + 1)));
data/mit-scheme-10.1.11/src/microcode/ntsock.c:163:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char * result = (OS_malloc ((strlen (entry -> h_name)) + 1));
data/mit-scheme-10.1.11/src/microcode/ntsock.c:177:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char * result = (OS_malloc ((strlen (entry -> h_name)) + 1));
data/mit-scheme-10.1.11/src/microcode/ntsys.c:45: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).
  int end_index = ((strlen (name)) - 1);
data/mit-scheme-10.1.11/src/microcode/nttop.c:174:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat (p, ")");
data/mit-scheme-10.1.11/src/microcode/nttop.c:191:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat (p, ")");
data/mit-scheme-10.1.11/src/microcode/nttop.c:362:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  unsigned int length = (strlen (last_message));
data/mit-scheme-10.1.11/src/microcode/nttop.c:409: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).
  result = (OS_malloc ((strlen (buffer)) + 1));
data/mit-scheme-10.1.11/src/microcode/option.c:267: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).
  unsigned int length1 = (strlen (string1));
data/mit-scheme-10.1.11/src/microcode/option.c:269: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).
  unsigned int length2 = (strlen (string2));
data/mit-scheme-10.1.11/src/microcode/option.c:299:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char * result = (OS_malloc ((strlen (s)) + 1));
data/mit-scheme-10.1.11/src/microcode/option.c:309:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (result, s, n_chars);
data/mit-scheme-10.1.11/src/microcode/option.c:574: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).
  unsigned int len = (strlen (wd));
data/mit-scheme-10.1.11/src/microcode/option.c:614: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).
  unsigned int lwd = (strlen (wd));
data/mit-scheme-10.1.11/src/microcode/option.c:630: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).
      end = (unquoted + (strlen (unquoted)));
data/mit-scheme-10.1.11/src/microcode/option.c:641: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).
	      element = (OS_malloc (lwd + (strlen (unquoted)) + 2));
data/mit-scheme-10.1.11/src/microcode/option.c:689:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  unsigned int quoted_dir_len = (strlen (quoted_dir));
data/mit-scheme-10.1.11/src/microcode/option.c:690:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char * result = (OS_malloc (quoted_dir_len + (strlen (library_path)) + 2));
data/mit-scheme-10.1.11/src/microcode/option.c:702: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).
  unsigned int flen = (strlen (filename));
data/mit-scheme-10.1.11/src/microcode/option.c:711: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).
      dlen = (strlen (directory));
data/mit-scheme-10.1.11/src/microcode/outf.c:178: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).
  unsigned int end = (strlen (fatal_buf));
data/mit-scheme-10.1.11/src/microcode/primutl.c:322: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).
      cname = (OS_malloc ((strlen (name)) + 1));
data/mit-scheme-10.1.11/src/microcode/primutl.c:362: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).
    size_t n_bytes = ((strlen (name)) + 1);
data/mit-scheme-10.1.11/src/microcode/primutl.c:487: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).
  unsigned long n_chars = (strlen (source));
data/mit-scheme-10.1.11/src/microcode/primutl.c:503: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 (Primitive_Name_Table[code]))))
data/mit-scheme-10.1.11/src/microcode/pruxenv.c:269:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n_words = (1 + (STRING_LENGTH_TO_GC_LENGTH (strlen (path))));
data/mit-scheme-10.1.11/src/microcode/pruxffi.c:207: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 count = strlen (ptr);
data/mit-scheme-10.1.11/src/microcode/pruxffi.c:222: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 count = strlen (ptr);
data/mit-scheme-10.1.11/src/microcode/pruxffi.c:245: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).
	int count = strlen (*ptr);
data/mit-scheme-10.1.11/src/microcode/pruxffi.c:268: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).
	int count = strlen (*ptr);
data/mit-scheme-10.1.11/src/microcode/pruxffi.c:372:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy ((ALIEN_ADDRESS_LOC (char)),
data/mit-scheme-10.1.11/src/microcode/pruxffi.c:391:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (ptr, (STRING_POINTER (string)), n_chars);
data/mit-scheme-10.1.11/src/microcode/string.c:83:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return (memory_to_string (((cp == 0) ? 0 : (strlen (cp))), cp));
data/mit-scheme-10.1.11/src/microcode/svm1-interp.c:1022:25:  [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.
DEFINE_TRAP_0 (equal_p, equal)
data/mit-scheme-10.1.11/src/microcode/termcap.c:406: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).
  fab.fab$b_fns = strlen(fn);
data/mit-scheme-10.1.11/src/microcode/termcap.c:495: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).
      malloc_size = indirect ? strlen (tcenv) + 1 : buf.size;
data/mit-scheme-10.1.11/src/microcode/termcap.c:503: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).
      bp1 += strlen (tcenv);
data/mit-scheme-10.1.11/src/microcode/termcap.c:699:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (!(nread = read (fd, buf + bufp->full, bufp->size - bufp->full)))
data/mit-scheme-10.1.11/src/microcode/terminfo.c:52: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).
    outstring = ((char *) (malloc ((strlen (temp)) + 1)));
data/mit-scheme-10.1.11/src/microcode/tparam.c:265: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).
			doup++, outend -= strlen (up);
data/mit-scheme-10.1.11/src/microcode/tparam.c:267: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).
			doleft++, outend -= strlen (left);
data/mit-scheme-10.1.11/src/microcode/ux.c:338:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (length <= (strlen (internal_buffer)))
data/mit-scheme-10.1.11/src/microcode/ux.c:816:16:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      int c = (fgetc (s));
data/mit-scheme-10.1.11/src/microcode/ux.h:198: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).
#  define NAMLEN(_D) (strlen ((_D) -> d_name))
data/mit-scheme-10.1.11/src/microcode/ux.h:201: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).
#  define NAMLEN(_D) (strlen ((_D) -> d_namlen))
data/mit-scheme-10.1.11/src/microcode/ux.h:545:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define UX_read read
data/mit-scheme-10.1.11/src/microcode/uxenv.c:693: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).
  size_t name_size = strlen (name);
data/mit-scheme-10.1.11/src/microcode/uxfs.c:632: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).
  unsigned int n = (strlen (prefix));
data/mit-scheme-10.1.11/src/microcode/uxio.c:337: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).
  unsigned long length = (strlen (string));
data/mit-scheme-10.1.11/src/microcode/uxsig.c:1187: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 (&input_string[0])) == 0)
data/mit-scheme-10.1.11/src/microcode/uxsock.c:179:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char * result = (OS_malloc ((strlen (host_name)) + 1));
data/mit-scheme-10.1.11/src/microcode/uxsock.c:192:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char * result = (OS_malloc ((strlen (entry -> h_name)) + 1));
data/mit-scheme-10.1.11/src/microcode/uxsock.c:206:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char * result = (OS_malloc ((strlen (entry -> h_name)) + 1));
data/mit-scheme-10.1.11/src/microcode/uxsock.c:240:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy ((address . sun_path), filename, (sizeof (address . sun_path)));
data/mit-scheme-10.1.11/src/microcode/uxsock.c:310:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy ((address . sun_path), filename, (sizeof (address . sun_path)));
data/mit-scheme-10.1.11/src/microcode/uxtop.c:221: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).
  result = (UX_malloc ((strlen (bp)) + 1));
data/mit-scheme-10.1.11/src/x11/x11base.c:1227:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  copy = (malloc ((strlen (name)) + 1));
data/mit-scheme-10.1.11/src/x11/x11graph.c:545:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     strlen (string));
data/mit-scheme-10.1.11/src/x11/x11graph.c:560:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     strlen (string));
data/mit-scheme-10.1.11/tests/ffi/ffi-test.c:55: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).
  int l1 = strlen (stri);
data/mit-scheme-10.1.11/tests/ffi/ffi-test.c:56: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).
  int l2 = strlen (stru->fourth);
data/mit-scheme-10.1.11/tests/ffi/ffi-test.c:65: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).
  s.second += strlen (s.fourth);

ANALYSIS SUMMARY:

Hits = 365
Lines analyzed = 94121 in approximately 2.15 seconds (43799 lines/second)
Physical Source Lines of Code (SLOC) = 71377
Hits@level = [0] 206 [1] 111 [2] 165 [3]  25 [4]  61 [5]   3
Hits@level+ = [0+] 571 [1+] 365 [2+] 254 [3+]  89 [4+]  64 [5+]   3
Hits/KSLOC@level+ = [0+] 7.99978 [1+] 5.11369 [2+] 3.55857 [3+] 1.2469 [4+] 0.896647 [5+] 0.0420303
Symlinks skipped = 15 (--allowlink overrides but see doc for security issue)
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.