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/mingw-ocaml-4.01.0~20140328/ocaml/asmrun/backtrace.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/asmrun/roots.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/asmrun/fail.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/asmrun/signals_asm.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/asmrun/startup.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/asmrun/stack.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/asmrun/natdynlink.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/asmrun/signals_osdep.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/intext.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/reverse.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/alloc.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/memory.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/md5.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/globroots.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/io.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/lexing.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/compact.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/stacks.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/extern.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/signals_byt.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/floats.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/terminfo.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/startup.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/fail.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/backtrace.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/instrtrace.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/backtrace.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/meta.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/alloc.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/compare.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/compatibility.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/prims.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/roots.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/callback.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/obj.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/callback.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/custom.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/gc_ctrl.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/int64_format.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/str.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/config.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/compact.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/mlvalues.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/dynlink.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/fix_code.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/roots.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/printexc.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/fail.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/gc.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/minor_gc.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/io.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/signals.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/freelist.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/compare.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/weak.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/fix_code.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/exec.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/md5.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/signals_machdep.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/sys.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/intern.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/ints.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/weak.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/osdeps.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/dynlink.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/finalise.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/globroots.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/gc_ctrl.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/misc.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/debugger.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/printexc.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/ui.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/interp.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/instruct.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/debugger.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/instrtrace.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/custom.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/stacks.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/sys.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/hash.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/finalise.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/major_gc.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/startup.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/main.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/minor_gc.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/interp.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/int64_emul.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/parsing.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/int64_native.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/signals.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/memory.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/major_gc.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/freelist.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/misc.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/array.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/hash.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/tools/checkstack.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/tools/objinfo_helper.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/s-nt.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/m-nt.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/s-templ.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/longlong.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/schar2.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/ansi.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/bytecopy.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/tclversion.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/getgroups.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/setgroups.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/divmod.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/ia32sse2.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/schar.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/dblalign.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/gethostbyname.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/align.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/sizes.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/endian.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/int64align.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/sighandler.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/elf.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/gethostbyaddr.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/async_io.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/signals.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/expm1.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/initgroups.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/stackov.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/config/m-templ.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/headernt.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/header.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/str/strstubs.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/errmsg.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/chmod.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/lockf.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/close.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/execve.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/truncate.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/cst2constr.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/mkdir.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/envir.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/fcntl.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/rewinddir.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/shutdown.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/nice.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/time.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/unlink.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/setgid.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getpeername.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getpw.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/geteuid.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/setuid.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/termios.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/socketaddr.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/write.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/sendrecv.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getnameinfo.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/dup.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getgroups.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/setgroups.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/chdir.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/fchmod.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/kill.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/utimes.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/execvp.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/readlink.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/fork.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/open.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/bind.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/select.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getpid.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getegid.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/umask.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/gmtime.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/readdir.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/mkfifo.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/sleep.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getcwd.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/gettimeofday.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/read.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/pipe.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/chroot.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/access.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/fchown.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/cstringv.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getserv.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/opendir.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/unixsupport.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/socketaddr.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/sockopt.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/addrofstr.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/connect.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/socket.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/strofaddr.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/alarm.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/putenv.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/closedir.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getlogin.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getgr.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getgid.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/listen.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getppid.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/link.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/times.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getuid.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getaddrinfo.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/itimer.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/ftruncate.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/setsid.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/stat.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/rmdir.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/exit.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/symlink.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/gethostname.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/accept.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/rename.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/signals.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/initgroups.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/unixsupport.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/execv.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/isatty.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/socketpair.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/lseek.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/gethost.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/cst2constr.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/dup2.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getproto.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getsockname.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/chown.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/wait.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32graph/dib.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32graph/events.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32graph/open.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32graph/libgraph.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32graph/draw.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/browser/winmain.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkCaml.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkEvent.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkMain.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkDMain.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkTimer.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/camltk.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkVar.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkImg.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkEval.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkWait.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkMisc.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkUtf.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkFile.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/threads/scheduler.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/errmsg.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/lockf.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/close.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/mkdir.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/channels.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/shutdown.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/getpeername.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/winworker.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/socketaddr.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/write.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/sendrecv.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/nonblock.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/dup.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/winwait.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/system.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/close_on.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/open.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/bind.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/select.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/getpid.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/winlist.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/windir.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/sleep.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/windbug.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/gettimeofday.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/read.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/pipe.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/unixsupport.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/sockopt.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/connect.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/winworker.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/socket.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/listen.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/winlist.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/link.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/times.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/startup.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/stat.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/createprocess.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/accept.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/rename.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/unixsupport.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/lseek.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/dup2.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/getsockname.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/windbug.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/bigarray/mmap_win32.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/bigarray/bigarray_stubs.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/bigarray/bigarray.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/bigarray/mmap_unix.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/num/bng.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/num/bng_amd64.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/num/bng_ia32.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/num/bng_ppc.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/num/nat.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/num/nat_stubs.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/num/bng.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/num/bng_digit.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/num/bng_sparc.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/image.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/point_col.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/text.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/events.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/open.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/libgraph.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/subwindow.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/make_img.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/sound.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/fill.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/dump_img.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/draw.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/color.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/image.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/systhreads/threads.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/systhreads/st_stubs.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/systhreads/st_posix.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/systhreads/st_win32.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/lib-bigarray-2/bigarrfstub.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/callback/callbackprim.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/asmcomp/main.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/asmcomp/mainarith.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/lib-dynlink-bytecode/stub1.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/lib-dynlink-bytecode/stub2.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/gc-roots/globrootsprim.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/lib-marshal/intextaux.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/lib-dynlink-csharp/entry.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/basic-manyargs/manyargsprim.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/embedded/cmmain.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/embedded/cmstub.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/lib-dynlink-native/factorial.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/error.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/symtab.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/reader.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/warshall.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/lr0.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/closure.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/skeleton.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/verbose.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/mkpar.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/output.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/defs.h
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c
Examining data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/lalr.c
Examining data/mingw-ocaml-4.01.0~20140328/flexdll/flexdll.h
Examining data/mingw-ocaml-4.01.0~20140328/flexdll/flexdll_initer.c
Examining data/mingw-ocaml-4.01.0~20140328/flexdll/test/plug1.c
Examining data/mingw-ocaml-4.01.0~20140328/flexdll/test/dump.c
Examining data/mingw-ocaml-4.01.0~20140328/flexdll/test/plug2.c
Examining data/mingw-ocaml-4.01.0~20140328/flexdll/flexdll.c

FINAL RESULTS:

data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:314:13:  [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.
  retcode = readlink("/proc/self/exe", name, name_len);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/chmod.c:22:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  ret = chmod(String_val(path), Int_val(perm));
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/chown.c:20:9:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
  ret = chown(String_val(path), Int_val(uid), Int_val(gid));
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/readlink.c:35:9:  [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.
  len = readlink(String_val(path), buffer, sizeof(buffer) - 1);
data/mingw-ocaml-4.01.0~20140328/flexdll/flexdll.c:371: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(s, flexdll_relocate_env);
data/mingw-ocaml-4.01.0~20140328/ocaml/asmrun/natdynlink.c:30:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(fullname, "caml%s%s", module, name);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/callback.c:229: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(nv->name, name);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/dynlink.c:83: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(ldconfname, stdlib);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/dynlink.c:84: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(ldconfname, "/" LD_CONF_NAME);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/floats.c:109:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(dest, String_val(fmt), d);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/instrtrace.c:128:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "%s %d", nam, pc[0]);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/instrtrace.c:145:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "%s %d, %d", nam, pc[0], pc[1]);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/instrtrace.c:154:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "%s %d,", nam, pc[0]);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/instrtrace.c:163:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buf, "%s unknown primitive %d", nam, pc[0]);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/instrtrace.c:165:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buf, "%s %s", nam, (char *) caml_prim_name_table.contents[pc[0]]);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/instrtrace.c:168:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "%s", nam);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/ints.c:197:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(buffer, format_string, Unsigned_long_val(arg));
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/ints.c:200:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(buffer, format_string, Long_val(arg));
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/ints.c:356:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(buffer, format_string, Int32_val(arg));
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/ints.c:571:31:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
#define I64_format(buf,fmt,x) sprintf(buf,fmt,x)
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/ints.c:844:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(buffer, format_string, Nativeint_val(arg));
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/misc.c:45:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf (stderr, msg, arg);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/misc.c:58:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf (stderr, fmt, arg);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/misc.c:65:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf (stderr, fmt1, arg1);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/misc.c:66:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf (stderr, fmt2, arg2);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/startup.c:252:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf (OCAML_VERSION "\n");
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/startup.c:475: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(caml_cds_file, cds_file);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/sys.c:129: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(p, String_val(path));
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/sys.c:253:12:  [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.
  status = system(buf);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:56: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(p, path);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:81: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(fullname, (char *)(path->contents[i]));
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:83: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(fullname, name);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:89: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(fullname, name);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:119: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(fullname, (char *)(path->contents[i]));
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:121: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(fullname, name);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:129: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(fullname, name);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:133: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(fullname, name);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:161: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(dllname, name);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:298:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(p, e->d_name);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:47: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(p, path);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:72: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(fullname, (char *)(path->contents[i]));
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:74: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(fullname, name);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:82: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(fullname, name);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:104: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(fullname, name);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:118: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(dllname, name);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:255: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(name + preflen, ffblk.name);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:293: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(template, dirname);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:306: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(p, fileinfo.name);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/open.c:248:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(window_name, String_val(n));
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/open.c:378:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(buffer, fmt, arg);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkDMain.c:220:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(f, home);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkDMain.c:222:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(f, RCNAME);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkDMain.c:223:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (0 == access(f,R_OK))
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkEval.c:150: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(argv[where], merged);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkMain.c:162:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(f, home);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkMain.c:164:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(f, RCNAME);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkMain.c:165:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (0 == access(f,R_OK))
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/access.c:46:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  ret = access(String_val(path), cv_flags);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/execv.c:24:10:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  (void) execv(String_val(path), argv);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/execvp.c:27:10:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  (void) execvp(String_val(path), argv);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/execvp.c:41:10:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  (void) execvp(String_val(path), argv);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getaddrinfo.c:71: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(node, String_val(vnode));
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getaddrinfo.c:79: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(serv, String_val(vserv));
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/gethost.c:131: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(hostname, String_val(name));
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getlogin.c:19: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/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getlogin.c:24:10:  [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.
  name = getlogin();
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/open.c:66: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(p, String_val(path));
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32graph/open.c:51:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(CurrentFont.lfFaceName, name);  /* Courier */
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32graph/open.c:357:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(buffer, fmt, arg);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/system.c:35:9:  [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.
  ret = system(buf);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/windbug.h:29:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, fmt, ##__VA_ARGS__); \
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/header.c:101: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(fullname, name);
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/header.c:112:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(p, name);
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/header.c:184:3:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  execv(runtime_path, argv);
data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/asmcomp/main.c:31:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  printf(fmt, arg);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:103:14:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
extern char *mktemp(char *);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:193:15:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
              printf (OCAML_VERSION "\n");
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:247: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(file_prefix, argv[i]);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:301: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(action_file_name, tmpdir);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:302: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(entry_file_name, tmpdir);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:303: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(text_file_name, tmpdir);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:304: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(union_file_name, tmpdir);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:316: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(action_file_name + len, temp_form);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:317: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(entry_file_name + len, temp_form);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:318: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(text_file_name + len, temp_form);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:319: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(union_file_name + len, temp_form);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:341:5:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
    mktemp(action_file_name);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:342:5:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
    mktemp(entry_file_name);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:343:5:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
    mktemp(text_file_name);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:344:5:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
    mktemp(union_file_name);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:353: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(output_file_name, file_prefix);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:354: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(output_file_name + len, OUTPUT_SUFFIX);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:363:9:  [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(verbose_file_name, file_prefix);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:364:9:  [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(verbose_file_name + len, VERBOSE_SUFFIX);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:370: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(interface_file_name, file_prefix);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:371: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(interface_file_name + len, INTERFACE_SUFFIX);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/output.c:802:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(out, line_format, ++outline + 1, code_file_name);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/output.c:855:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(out, line_format, lineno, input_file_name);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/output.c:867:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(out, line_format, lineno, input_file_name);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/output.c:890:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(out, line_format, ++outline + 1, code_file_name);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/reader.c:377:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(f, line_format, lineno, input_file_name);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/reader.c:510:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(text_file, line_format, lineno, input_file_name);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/reader.c:860: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(s, cache);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/reader.c:1293:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(f, line_format, lineno, input_file_name);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/symtab.c:62:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(bp->name, name);
data/mingw-ocaml-4.01.0~20140328/flexdll/flexdll.c:76:7:  [3] (misc) LoadLibraryEx:
  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.
  m = LoadLibraryEx(libname, NULL,
data/mingw-ocaml-4.01.0~20140328/flexdll/flexdll.c:80:22:  [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.
  if (m == NULL) m = LoadLibrary(libname);
data/mingw-ocaml-4.01.0~20140328/flexdll/flexdll_initer.c:27:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *s = getenv("FLEXDLL_RELOCATE");
data/mingw-ocaml-4.01.0~20140328/ocaml/asmrun/startup.c:119: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.
  char *opt = getenv ("OCAMLRUNPARAM");
data/mingw-ocaml-4.01.0~20140328/ocaml/asmrun/startup.c:122:26:  [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 (opt == NULL) opt = getenv ("CAMLRUNPARAM");
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/debugger.c:170:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  address = getenv("CAML_DEBUG_SOCKET");
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/dynlink.c:79:12:  [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.
  stdlib = getenv("OCAMLLIB");
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/dynlink.c:80:32:  [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 (stdlib == NULL) stdlib = getenv("CAMLLIB");
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/dynlink.c:148:33:  [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.
                                getenv("CAML_LD_LIBRARY_PATH"));
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/main.c:42: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.
    ocp = getenv ("OCAMLRUNPARAM");
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/main.c:44:10:  [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.
    cp = getenv ("CAMLRUNPARAM");
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/startup.c:303: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.
  char *opt = getenv ("OCAMLRUNPARAM");
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/startup.c:306:26:  [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 (opt == NULL) opt = getenv ("CAMLRUNPARAM");
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/startup.c:432:7:  [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("CAMLSIGPIPE"))
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/startup.c:472:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  cds_file = getenv("CAML_DEBUG_FILE");
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/sys.c:196:7:  [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(buff) == 0) caml_sys_error(NO_ARG);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/sys.c:205:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  res = getenv(String_val(var));
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/terminfo.c:50:10:  [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");
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:146: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.
  tofree = caml_decompose_path(&path, getenv("PATH"));
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:323: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.
  h = (HANDLE) strtol(getenv("CAMLSIGPIPE"), &endptr, 16);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkDMain.c:216: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 *home = getenv("HOME");
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkMain.c:158: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 *home = getenv("HOME");
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/systhreads/st_win32.h:131:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection(m);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/systhreads/st_win32.h:132:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(m);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/systhreads/st_win32.h:138:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(m);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/systhreads/st_win32.h:161:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection(m);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/systhreads/st_win32.h:176:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(m);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/systhreads/st_win32.h:225:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection(&c->lock);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/systhreads/st_win32.h:245:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(&c->lock);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/systhreads/st_win32.h:265:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(&c->lock);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/systhreads/st_win32.h:296:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(&c->lock);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/systhreads/st_win32.h:312:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(m);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/chroot.c:20:9:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
  ret = chroot(String_val(path));
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getcwd.c:46:7:  [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(buff) == 0) uerror("getcwd", copy_string(buff));
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32graph/events.c:48:5:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
    InitializeCriticalSection(&caml_gr_queue_mutex);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32graph/events.c:60:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(&caml_gr_queue_mutex);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32graph/events.c:127:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(&caml_gr_queue_mutex);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32graph/events.c:156:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&caml_gr_queue_mutex);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/windbug.c:24:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    debug = (getenv("OCAMLDEBUG") != NULL);
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/header.c:58:10:  [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.
  path = getenv("PATH");
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/header.c:93:10:  [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.
  path = getenv("PATH");
data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/asmcomp/main.c:81:5:  [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(argc >= 3 ? atoi(argv[2]) : time((time_t *) 0));
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:105:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
extern char *getenv(const char *);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:283:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmpdir = getenv("TMPDIR");
data/mingw-ocaml-4.01.0~20140328/flexdll/flexdll.c:42: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 error_buffer[256];
data/mingw-ocaml-4.01.0~20140328/flexdll/flexdll.c:161: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(error_buffer,msg,l);
data/mingw-ocaml-4.01.0~20140328/flexdll/flexdll.c:162: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(error_buffer+l,name,min(n,sizeof(error_buffer) - l - 1));
data/mingw-ocaml-4.01.0~20140328/flexdll/flexdll.c:352: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 flexdll_relocate_env[256];
data/mingw-ocaml-4.01.0~20140328/flexdll/flexdll.c:360: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(flexdll_relocate_env,"%p",&flexdll_relocate);
data/mingw-ocaml-4.01.0~20140328/flexdll/flexdll.c:364: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(flexdll_relocate_env,"%p",&flexdll_relocate);
data/mingw-ocaml-4.01.0~20140328/flexdll/flexdll.c:369: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(flexdll_relocate_env,"FLEXDLL_RELOCATE=%p",&flexdll_relocate);
data/mingw-ocaml-4.01.0~20140328/ocaml/asmrun/backtrace.c:333: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(&Field(res, 0), caml_backtrace_buffer,
data/mingw-ocaml-4.01.0~20140328/ocaml/asmrun/fail.c:185: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 data[BOUND_MSG_LEN + sizeof(value)];
data/mingw-ocaml-4.01.0~20140328/ocaml/asmrun/signals_asm.c:182: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 sig_alt_stack[SIGSTKSZ];
data/mingw-ocaml-4.01.0~20140328/ocaml/asmrun/startup.c:162: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 proc_self_exe[256];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/array.c:289: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((double *)res + pos,
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/array.c:305: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(&Field(res, pos),
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/backtrace.c:395: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(&Field(res, 0), caml_backtrace_buffer,
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/callback.c:201: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[1];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/compare.c:67: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(newstack, compare_stack_init,
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/debugger.c:209:39:  [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).
    sock_addr.s_inet.sin_port = htons(atoi(port));
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/dynlink.c:89: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).
  ldconf = open(ldconfname, O_RDONLY, 0);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/exec.h:41: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[4];                 /* Section name */
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/exec.h:49:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char magic[12];               /* The magic number */
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/extern.c:107: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(newstack, extern_stack_init,
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/extern.c:190: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 data[SIZE_EXTERN_OUTPUT_BLOCK];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/floats.c:79: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 format_buffer[MAX_DIGITS + 20];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/floats.c:92:11:  [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).
      i = atoi(p) + MAX_DIGITS;
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/floats.c:99:11:  [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).
      i = atoi(p+1) + MAX_DIGITS;
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/floats.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 parse_buffer[64];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/floats.c:169: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 parse_buffer[64];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/freelist.c:58: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 *flp [FLP_MAX];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/freelist.c:284:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char *buf [FLP_MAX];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/instrtrace.c:81: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 buf[256];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/instrtrace.c:82: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 nambuf[128];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/instrtrace.c:87:8:  [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 (nambuf, "???%d", instr), nambuf)
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/instrtrace.c:148: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(buf, "SWITCH sz%#lx=%ld::ntag%ld nint%ld",
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/int64_format.h:24: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 rawbuffer[24];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/int64_format.h:52: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).
      width = atoi(p);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/intern.c:71: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 * intern_resolve_code_pointer(unsigned char digest[16],
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/intern.c:71:52:  [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 * intern_resolve_code_pointer(unsigned char digest[16],
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/intern.c:73: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.
static void intern_bad_code_pointer(unsigned char digest[16]) Noreturn;
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/intern.c:238: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(newstack, intern_stack_init,
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/intern.c:275: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 digest[16];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/intern.c:731: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 * intern_resolve_code_pointer(unsigned char digest[16],
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/intern.c:731:52:  [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 * intern_resolve_code_pointer(unsigned char digest[16],
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/intern.c:751: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.
static void intern_bad_code_pointer(unsigned char digest[16])
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/intern.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 msg[256];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/intern.c:754:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(msg, "input_value: unknown code module "
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/intext.h:156: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 digest[16];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/ints.c:174: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).
      prec = atoi(p) + 5;
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/ints.c:187: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 format_string[FORMAT_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/ints.c:188: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 default_format_buffer[FORMAT_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/ints.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 format_string[FORMAT_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/ints.c:349: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 default_format_buffer[FORMAT_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/ints.c:579: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 format_string[FORMAT_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/ints.c:580: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 default_format_buffer[FORMAT_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/ints.c:836: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 format_string[FORMAT_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/ints.c:837: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 default_format_buffer[FORMAT_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/io.h:49:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[IO_BUFFER_SIZE];    /* The buffer itself */
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/md5.c:43: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[4096];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/md5.c:69:41:  [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.
CAMLexport void caml_md5_block(unsigned char digest[16],
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/md5.c:150: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.
            memcpy(p, buf, len);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/md5.c:153:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p, buf, t);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/md5.c:162:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ctx->in, buf, 64);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/md5.c:171: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(ctx->in, buf, len);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/md5.c:215: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(digest, ctx->buf, 16);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/md5.h:25:41:  [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.
CAMLextern void caml_md5_block(unsigned char digest[16],
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/md5.h:31:18:  [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 in[64];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/memory.c:170:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
CAMLexport unsigned char * caml_page_table[Pagetable1_size];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/memory.c:171: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.
static unsigned char caml_page_table_empty[Pagetable2_size] = { 0, };
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/memory.h:74:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
CAMLextern unsigned char * caml_page_table[Pagetable1_size];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/meta.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(cf->digest, String_val(digest), 16);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/mlvalues.h:142:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
#define Tag_val(val) (((unsigned char *) (val)) [-1])
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/mlvalues.h:144:32:  [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.
#define Tag_hp(hp) (((unsigned char *) (hp)) [sizeof(value)-1])
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/mlvalues.h:147:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
#define Tag_val(val) (((unsigned char *) (val)) [-sizeof(value)])
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/mlvalues.h:149:32:  [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.
#define Tag_hp(hp) (((unsigned char *) (hp)) [0])
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/mlvalues.h:216:23:  [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.
#define Byte(x, i) (((char *) (x)) [i])            /* Also an l-value. */
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/mlvalues.h:217:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
#define Byte_u(x, i) (((unsigned char *) (x)) [i]) /* Also an l-value. */
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/obj.c:111: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(Bp_val(res), Bp_val(arg), sz * sizeof(value));
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/printexc.c:30: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 data[256];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/printexc.c:51: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 intbuf[64];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/printexc.c:74:9:  [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(intbuf, "%" ARCH_INTNAT_PRINTF_FORMAT "d", Long_val(v));
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/startup.c:108: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 [2];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/startup.c:114: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(truename, O_RDONLY | O_BINARY);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/startup.c:354: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 proc_self_exe[256];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/startup.c:461: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 proc_self_exe[256];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/sys.c:134: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(p, flags, perm);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/sys.c:192:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[4096];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/sys.c:306: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("/dev/urandom", O_RDONLY, 0);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/sys.c:308: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.
    unsigned char buffer[12];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/terminfo.c:34: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 area [1024];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/terminfo.c:45: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[1024];
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:102: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(name, O_RDONLY);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:123: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(fullname, ".exe");
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:131:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(fullname, ".exe");
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:162:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(dllname, ".so");
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:227: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[1000] = "_";
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:119:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(dllname, ".dll");
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:254: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(name, pat, preflen);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:296: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(template, "*.*"); break;
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:298: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(template, "\\*.*");
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:327: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 iobuf[2];
data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/bytecopy.c:14: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 buffer[27];
data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/gethostbyaddr.c:29: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[10];
data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/gethostbyaddr.c:40: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[10];
data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/gethostbyname.c:27:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1000];
data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/gethostbyname.c:33:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1000];
data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/longlong.c:29: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[64];
data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/longlong.c:34: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, "%lld", l);
data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/longlong.c:38: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, "%qd", l);
data/mingw-ocaml-4.01.0~20140328/ocaml/config/auto-aux/stackov.c:18: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 sig_alt_stack[SIGSTKSZ];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/bigarray/mmap_win32.c:140: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[512];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/bigarray/mmap_win32.c:151: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, "Unknown error %ld\n", errnum);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/events.c:118: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 keytxt[256];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/open.c:51: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 display_name[256], geometry_spec[64];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/open.c:232:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tmp[256];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/open.c:234: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(tmp, "%lu", (unsigned long)win);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/open.c:370: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/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/open.c:389: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 errmsg[512];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/text.c:59:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[1];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/browser/winmain.c:30: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 exe_name[1024];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/browser/winmain.c:31: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 * argv[2];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkDMain.c:87: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[TRAILER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkDMain.c:109: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 [2];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkDMain.c:113: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(truename, O_RDONLY | O_BINARY);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkEval.c:230:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    stat_free((char *) allocated[i]);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkImg.c:58: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(pib.pixelPtr, String_val(res),size);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkMain.c:114: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 argcstr[256]; /* string of argc */
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkMain.c:126:9:  [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( argcstr, "%d", argc );
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/str/strstubs.c:91: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.
static unsigned char * re_register[NUM_REGISTERS];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/str/strstubs.c:112: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.
static unsigned char re_word_letters[32] = {
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/systhreads/st_win32.h: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 err[1024];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/systhreads/st_win32.h:375: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(err, "error code %lx", retcode);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getaddrinfo.c:43:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&sa.s_gen, a->ai_addr, len);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getcwd.c:35:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[PATH_MAX];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getcwd.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 buff[PATH_MAX];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/gethost.c:96:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[NETDB_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/gethost.c:104:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[NETDB_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/gethost.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 buffer[NETDB_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/gethost.c:148: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[NETDB_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/gethostname.c:30: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[MAXHOSTNAMELEN];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getnameinfo.c:40: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[4096];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/getnameinfo.c:41: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 serv[1024];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/open.c:69: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(p, cv_flags, Int_val(perm));
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/read.c:24: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 iobuf[UNIX_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/readlink.c:33:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[PATH_MAX];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/sendrecv.c:34: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 iobuf[UNIX_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/sendrecv.c:54:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char iobuf[UNIX_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/sendrecv.c:84:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char iobuf[UNIX_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/sendrecv.c:102: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 iobuf[UNIX_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/socketaddr.c:36: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_val(res), a, 4);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/socketaddr.c:46: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_val(res), a, 16);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/strofaddr.c:28: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[64];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/strofaddr.c:50: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[64];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/write.c:32: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 iobuf[UNIX_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/write.c:68:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char iobuf[UNIX_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32graph/dib.c:123: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  szName[13];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32graph/dib.c:124: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  szType[15];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32graph/dib.c:128: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  szCompress[5];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32graph/dib.c:426:13:  [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).
        f = fopen(name,"rb");
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32graph/dib.c:481: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 titi[60];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32graph/draw.c:357: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 str[1];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32graph/open.c:350: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/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/errmsg.c:26: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[512];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/errmsg.c:39: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 error #%d", errnum);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/read.c:24: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 iobuf[UNIX_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/sendrecv.c:31: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 iobuf[UNIX_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/sendrecv.c:56:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char iobuf[UNIX_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/sendrecv.c:90: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 iobuf[UNIX_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/sendrecv.c:113: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 iobuf[UNIX_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/write.c:25: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 iobuf[UNIX_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/write.c:66: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 iobuf[UNIX_BUFFER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/header.c:49: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 fullname[MAXPATHLEN + 1];
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/header.c:83: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(name, O_RDONLY);
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/header.c:102: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(fullname, ".exe");
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/header.c:114: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(fullname, ".exe");
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/header.c:133: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[TRAILER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/header.c:134: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 runtime_path[MAXPATHLEN];
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/header.c:177: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(truename, O_RDONLY | O_BINARY);
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/headernt.c:44: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[TRAILER_SIZE];
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/headernt.c:45: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 runtime_path[MAX_PATH];
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/headernt.c:88:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[MAX_PATH];
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/headernt.c:144: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 truename[MAX_PATH];
data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/asmcomp/main.c:62:39:  [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).
    printf("%d\n", call_gen_code(FUN, atoi(argv[1])));
data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/asmcomp/main.c:71:39:  [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).
    printf("%f\n", call_gen_code(FUN, atoi(argv[1])));
data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/asmcomp/main.c:81:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    srand(argc >= 3 ? atoi(argv[2]) : time((time_t *) 0));
data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/asmcomp/main.c:82:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    n = atoi(argv[1]);
data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/asmcomp/main.c:106:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    x = atoi(argv[1]);
data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/asmcomp/main.c:108:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      y = atoi(argv[2]);
data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/asmcomp/mainarith.c:275:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    X = atoi(argv[1]);
data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/asmcomp/mainarith.c:276:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    Y = atoi(argv[2]);
data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/lib-dynlink-csharp/entry.c:37: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 * argv[2];
data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/lib-dynlink-native/factorial.c:22: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 buf[256];
data/mingw-ocaml-4.01.0~20140328/ocaml/testsuite/tests/lib-dynlink-native/factorial.c:27: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(buf,"%i",x);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:328:17:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    action_fd = mkstemp(action_file_name);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:331:16:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    entry_fd = mkstemp(entry_file_name);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:334:15:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    text_fd = mkstemp(text_file_name);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:337:16:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    union_fd = mkstemp(union_file_name);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:382: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).
        input_file = fopen(input_file_name, "r");
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:390:19:  [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).
    action_file = fopen(action_file_name, "w");
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:398:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    entry_file = fopen(entry_file_name, "w");
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:406: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).
    text_file = fopen(text_file_name, "w");
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:413:24:  [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).
        verbose_file = fopen(verbose_file_name, "w");
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:420:24:  [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).
        defines_file = fopen(defines_file_name, "w");
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:426: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).
        union_file = fopen(union_file_name, "w");
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:432:19:  [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_file = fopen(output_file_name, "w");
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:438:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        code_file = fopen(code_file_name, "w");
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:446: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).
    interface_file = fopen(interface_file_name, "w");
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/output.c:785: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).
    text_file = fopen(text_file_name, "r");
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/output.c:901:13:  [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 = fopen(file_name, "r");
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/reader.c:724:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        c = ((unsigned char *)s)[i];
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/reader.c:1196: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(cache, "$$%d", ++gensym);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/reader.c:1554: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(name_pool, "$accept");
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/reader.c:1555: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(name_pool+8, "$end");
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/reader.c:1721: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.
static unsigned char caml_ident_start[32] =
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/reader.c:1723: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.
static unsigned char caml_ident_body[32] =
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/reader.c:1747: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 name[7] = "'\\xxx'";
data/mingw-ocaml-4.01.0~20140328/flexdll/flexdll.c:160:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int n = strlen(name);
data/mingw-ocaml-4.01.0~20140328/flexdll/flexdll.c:370:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char* s = malloc(strlen(flexdll_relocate_env) + 1);
data/mingw-ocaml-4.01.0~20140328/ocaml/asmrun/natdynlink.c:28:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char *fullname = malloc(strlen(module) + strlen(name) + 5);
data/mingw-ocaml-4.01.0~20140328/ocaml/asmrun/natdynlink.c:28:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char *fullname = malloc(strlen(module) + strlen(name) + 5);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/alloc.c:98:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(s);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/callback.c:228:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         caml_stat_alloc(sizeof(struct named_value) + strlen(name));
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/debugger.c:188:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(sock_addr.s_unix.sun_path, address,
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/debugger.c:192: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).
        + strlen(address);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/dynlink.c:82: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).
  ldconfname = caml_stat_alloc(strlen(stdlib) + 2 + sizeof(LD_CONF_NAME));
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/dynlink.c:94:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  nread = read(ldconf, config, st.st_size);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/dynlink.c:150: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).
    for (p = lib_path; *p != 0; p += strlen(p) + 1)
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/dynlink.c:156: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).
    for (p = libs; *p != 0; p += strlen(p) + 1)
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/dynlink.c:163: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).
  for (p = req_prims; *p != 0; p += strlen(p) + 1) {
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/extern.c:498: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).
      writeblock(ident, strlen(ident) + 1);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/fix_code.c:56:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read(fd, (char *) caml_start_code, caml_code_size) != caml_code_size)
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/ints.c:159:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len_suffix = strlen(suffix);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/io.c:279:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    retcode = read(fd, p, n);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/io.c:282:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      retcode = read(fd, p, 16384);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/md5.c:42:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  intnat toread, read;
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/md5.c:52:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      caml_MD5Update (&ctx, (unsigned char *) buffer, read);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/md5.c:59:54:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      caml_MD5Update(&ctx, (unsigned char *) buffer, read);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/md5.c:60:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      toread -= read;
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/parsing.c:109: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).
    names += strlen(names) + 1;
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/printexc.c:40:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int len = strlen(s);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/startup.c:93:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read(fd, (char *) trail, TRAILER_SIZE) < TRAILER_SIZE)
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/startup.c:120:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    err = read (fd, buf, 2);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/startup.c:145:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read(fd, (char *) trail->section, toc_size) != toc_size)
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/startup.c:194:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read(fd, data, len) != len)
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/startup.c:474: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).
    caml_cds_file = caml_stat_alloc(strlen(cds_file) + 1);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/sys.c:74: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).
    int err_len = strlen(err);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/sys.c:309:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int nread = read(fd, buffer, 12);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:55: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).
  p = caml_stat_alloc(strlen(path) + 1);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:79: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).
    fullname = caml_stat_alloc(strlen((char *)(path->contents[i])) +
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:80: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).
                               strlen(name) + 2);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:82:27:  [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.
    if (fullname[0] != 0) strcat(fullname, "/");
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:88: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).
  fullname = caml_stat_alloc(strlen(name) + 1);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:117: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).
    fullname = caml_stat_alloc(strlen((char *)(path->contents[i])) +
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:118: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).
                               strlen(name) + 6);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:120:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(fullname, "/");
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:128: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).
  fullname = caml_stat_alloc(strlen(name) + 5);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:159:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char * dllname = caml_stat_alloc(strlen(name) + 4);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:228:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
  strncat (_name, name, 998);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/unix.c:297: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).
    p = caml_stat_alloc(strlen(e->d_name) + 1);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:46: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).
  p = caml_stat_alloc(strlen(path) + 1);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:70: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).
    fullname = caml_stat_alloc(strlen((char *)(path->contents[i])) +
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:71: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).
                               strlen(name) + 2);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:73:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(fullname, "\\");
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:81: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).
  fullname = caml_stat_alloc(strlen(name) + 1);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:91: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).
  pathlen = strlen(name) + 1;
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:116:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char * dllname = caml_stat_alloc(strlen(name) + 5);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:247: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).
  for (preflen = strlen(pat); preflen > 0; preflen--) {
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:252:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char * name = malloc(preflen + strlen(ffblk.name) + 1);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:291:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  dirnamelen = strlen(dirname);
data/mingw-ocaml-4.01.0~20140328/ocaml/byterun/win32.c:305: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).
      p = caml_stat_alloc(strlen(fileinfo.name) + 1);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/graph/open.c:247:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  window_name = caml_stat_alloc(strlen(String_val(n))+1);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkDMain.c:90:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read(fd, buffer, TRAILER_SIZE) < TRAILER_SIZE) return TRUNCATED_FILE;
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkDMain.c:116:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    err = read (fd, buf, 2);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkDMain.c:166:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd, (char *) start_code, code_size) != code_size)
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkDMain.c:218:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *f = caml_stat_alloc(strlen(home)+strlen(RCNAME)+2);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkDMain.c:218:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *f = caml_stat_alloc(strlen(home)+strlen(RCNAME)+2);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkDMain.c:221:7:  [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(f, "/");
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkEval.c:149:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      argv[where] = (char*)caml_stat_alloc(strlen(merged)+1);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkMain.c:160:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *f = caml_stat_alloc(strlen(home)+strlen(RCNAME)+2);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkMain.c:160:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *f = caml_stat_alloc(strlen(home)+strlen(RCNAME)+2);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkMain.c:163:7:  [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(f, "/");
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkUtf.c:44:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  Tcl_ExternalToUtfDString(NULL, str, strlen(str), &dstr);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/labltk/support/cltkUtf.c:58:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  Tcl_UtfToExternalDString(NULL, str, strlen(str), &dstr);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/systhreads/st_posix.h:306: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).
  msglen = strlen(msg);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/systhreads/st_posix.h:307: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).
  errlen = strlen(err);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/systhreads/st_win32.h:377: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).
  msglen = strlen(msg);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/systhreads/st_win32.h:378: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).
  errlen = strlen(err);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/read.c:30:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ret = read(Int_val(fd), iobuf, (int) numbytes);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/select.c:68:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  fd_set read, write, except;
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/select.c:78:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    retcode  = fdlist_to_fdset(readfds, &read, &maxfd);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/select.c:92:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    retcode = select(maxfd + 1, &read, &write, &except, tvp);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/select.c:95:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    readfds = fdset_to_fdlist(readfds, &read);
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/unix/umask.c:21:18:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  return Val_int(umask(Int_val(perm)));
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/select.c:984:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  fd_set read, write, except;
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/select.c:1002:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (fdlist_to_fdset(readfds, &read) && fdlist_to_fdset(writefds, &write) && fdlist_to_fdset(exceptfds, &except)) {
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/select.c:1012:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (select(FD_SETSIZE, &read, &write, &except, tvp) == -1) {
data/mingw-ocaml-4.01.0~20140328/ocaml/otherlibs/win32unix/select.c:1022:45:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      read_list = fdset_to_fdlist(readfds, &read);
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/header.c:94: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).
  fullname = malloc(strlen(name) + (path == NULL ? 0 : strlen(path)) + 6);
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/header.c:94:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  fullname = malloc(strlen(name) + (path == NULL ? 0 : strlen(path)) + 6);
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/header.c:140:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read(fd, buffer, TRAILER_SIZE) < TRAILER_SIZE) return NULL;
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/header.c:146:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd, buffer, 8) < 8) return NULL;
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/header.c:157:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read(fd, runtime_path, path_size) != path_size) return NULL;
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/header.c:164: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).
  write(2, msg, strlen(msg));
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/headernt.c:97: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).
    WriteFile(errh, runtime, strlen(runtime), &numwritten, NULL);
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/headernt.c:121: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).
    WriteFile(errh, runtime, strlen(runtime), &numwritten, NULL);
data/mingw-ocaml-4.01.0~20140328/ocaml/stdlib/headernt.c:157: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).
    WriteFile(errh, truename, strlen(truename), &numwritten, NULL);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:244: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).
      len = strlen(argv[i]);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:285:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(tmpdir);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/main.c:348:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(file_prefix);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/output.c:789:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((c = getc(in)) == EOF)
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/output.c:795:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(in)) != EOF)
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/output.c:850:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ((c = getc(in)) == EOF)
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/output.c:876:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(in)) != EOF)
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/output.c:907:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(*file)) != EOF)
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/reader.c:75:25:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (saw_eof || (c = getc(f)) == EOF)
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/reader.c:103:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        c = getc(f);
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/reader.c:1550: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).
        name_pool_size += strlen(bp->name) + 1;
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/reader.c:1869: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).
            spacing = strlen(symbol_name[rlhs[i]]) + 1;
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/reader.c:1893:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                         strlen (input_file_name));
data/mingw-ocaml-4.01.0~20140328/ocaml/yacc/symtab.c:50: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).
    bp->name = MALLOC(strlen(name) + 1);

ANALYSIS SUMMARY:

Hits = 467
Lines analyzed = 53981 in approximately 1.68 seconds (32048 lines/second)
Physical Source Lines of Code (SLOC) = 39074
Hits@level = [0] 354 [1] 104 [2] 214 [3]  44 [4] 101 [5]   4
Hits@level+ = [0+] 821 [1+] 467 [2+] 363 [3+] 149 [4+] 105 [5+]   4
Hits/KSLOC@level+ = [0+] 21.0114 [1+] 11.9517 [2+] 9.29007 [3+] 3.81328 [4+] 2.68721 [5+] 0.10237
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.