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/gauche-0.9.6/gc/backgraph.c
Examining data/gauche-0.9.6/gc/cord/tests/de.c
Examining data/gauche-0.9.6/gc/cord/tests/de_win.c
Examining data/gauche-0.9.6/gc/cord/tests/de_win.h
Examining data/gauche-0.9.6/gc/cord/tests/de_cmds.h
Examining data/gauche-0.9.6/gc/cord/tests/cordtest.c
Examining data/gauche-0.9.6/gc/cord/cordbscs.c
Examining data/gauche-0.9.6/gc/cord/cordprnt.c
Examining data/gauche-0.9.6/gc/cord/cordxtra.c
Examining data/gauche-0.9.6/gc/stubborn.c
Examining data/gauche-0.9.6/gc/mark_rts.c
Examining data/gauche-0.9.6/gc/pthread_stop_world.c
Examining data/gauche-0.9.6/gc/ptr_chck.c
Examining data/gauche-0.9.6/gc/finalize.c
Examining data/gauche-0.9.6/gc/pcr_interface.c
Examining data/gauche-0.9.6/gc/gc_cpp.cc
Examining data/gauche-0.9.6/gc/extra/gc.c
Examining data/gauche-0.9.6/gc/extra/Mac_files/datastart.c
Examining data/gauche-0.9.6/gc/extra/Mac_files/dataend.c
Examining data/gauche-0.9.6/gc/extra/Mac_files/MacOS_config.h
Examining data/gauche-0.9.6/gc/extra/symbian/global_end.cpp
Examining data/gauche-0.9.6/gc/extra/symbian/init_global_static_roots.cpp
Examining data/gauche-0.9.6/gc/extra/symbian/global_start.cpp
Examining data/gauche-0.9.6/gc/extra/msvc_dbg.c
Examining data/gauche-0.9.6/gc/extra/MacOS.c
Examining data/gauche-0.9.6/gc/extra/AmigaOS.c
Examining data/gauche-0.9.6/gc/extra/symbian.cpp
Examining data/gauche-0.9.6/gc/tests/huge_test.c
Examining data/gauche-0.9.6/gc/tests/threadkey_test.c
Examining data/gauche-0.9.6/gc/tests/leak_test.c
Examining data/gauche-0.9.6/gc/tests/thread_leak_test.c
Examining data/gauche-0.9.6/gc/tests/trace_test.c
Examining data/gauche-0.9.6/gc/tests/subthread_create.c
Examining data/gauche-0.9.6/gc/tests/realloc_test.c
Examining data/gauche-0.9.6/gc/tests/middle.c
Examining data/gauche-0.9.6/gc/tests/test_cpp.cc
Examining data/gauche-0.9.6/gc/tests/smash_test.c
Examining data/gauche-0.9.6/gc/tests/initsecondarythread.c
Examining data/gauche-0.9.6/gc/tests/disclaim_bench.c
Examining data/gauche-0.9.6/gc/tests/test.c
Examining data/gauche-0.9.6/gc/tests/staticrootstest.c
Examining data/gauche-0.9.6/gc/tests/disclaim_test.c
Examining data/gauche-0.9.6/gc/tests/staticrootslib.c
Examining data/gauche-0.9.6/gc/tools/if_not_there.c
Examining data/gauche-0.9.6/gc/tools/gcname.c
Examining data/gauche-0.9.6/gc/tools/setjmp_t.c
Examining data/gauche-0.9.6/gc/tools/if_mach.c
Examining data/gauche-0.9.6/gc/tools/add_gc_prefix.c
Examining data/gauche-0.9.6/gc/tools/threadlibs.c
Examining data/gauche-0.9.6/gc/headers.c
Examining data/gauche-0.9.6/gc/fnlz_mlc.c
Examining data/gauche-0.9.6/gc/gc_cpp.cpp
Examining data/gauche-0.9.6/gc/blacklst.c
Examining data/gauche-0.9.6/gc/mallocx.c
Examining data/gauche-0.9.6/gc/specific.c
Examining data/gauche-0.9.6/gc/reclaim.c
Examining data/gauche-0.9.6/gc/gc_dlopen.c
Examining data/gauche-0.9.6/gc/typd_mlc.c
Examining data/gauche-0.9.6/gc/malloc.c
Examining data/gauche-0.9.6/gc/pthread_start.c
Examining data/gauche-0.9.6/gc/darwin_stop_world.c
Examining data/gauche-0.9.6/gc/checksums.c
Examining data/gauche-0.9.6/gc/dyn_load.c
Examining data/gauche-0.9.6/gc/pthread_support.c
Examining data/gauche-0.9.6/gc/thread_local_alloc.c
Examining data/gauche-0.9.6/gc/mach_dep.c
Examining data/gauche-0.9.6/gc/allchblk.c
Examining data/gauche-0.9.6/gc/mark.c
Examining data/gauche-0.9.6/gc/misc.c
Examining data/gauche-0.9.6/gc/obj_map.c
Examining data/gauche-0.9.6/gc/windows-untested/stdafx.c
Examining data/gauche-0.9.6/gc/windows-untested/stdafx.h
Examining data/gauche-0.9.6/gc/gcj_mlc.c
Examining data/gauche-0.9.6/gc/real_malloc.c
Examining data/gauche-0.9.6/gc/alloc.c
Examining data/gauche-0.9.6/gc/win32_threads.c
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/generalize.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/generalize-arithm.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/generalize-small.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/gcc/sh.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/gcc/powerpc.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/gcc/arm.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/gcc/x86.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/gcc/riscv.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/gcc/aarch64.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/gcc/sparc.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/gcc/cris.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/gcc/hexagon.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/gcc/ia64.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/gcc/m68k.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/gcc/generic.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/gcc/generic-small.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/gcc/mips.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/gcc/s390.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/gcc/tile.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/gcc/alpha.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/gcc/generic-arithm.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/gcc/avr32.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/gcc/hppa.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/icc/ia64.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/hpc/ia64.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/hpc/hppa.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/ibmc/powerpc.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/sunc/x86.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/sunc/sparc.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/armcc/arm_v6.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/msftc/arm.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/msftc/x86.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/msftc/x86_64.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/msftc/common32_defs.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/all_atomic_load_store.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/standard_ao_double_t.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/test_and_set_t_is_ao_t.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/all_atomic_only_load.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/test_and_set_t_is_char.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/all_aligned_atomic_load_store.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/generic_pthread.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/loadstore/ordered_loads_only.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/loadstore/double_atomic_load_store.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/loadstore/ordered_stores_only.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/loadstore/short_atomic_load.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/loadstore/char_atomic_store.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/loadstore/short_acquire_release_volatile.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/loadstore/char_atomic_load.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/loadstore/int_atomic_store.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/loadstore/char_acquire_release_volatile.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/loadstore/acquire_release_volatile.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/loadstore/int_atomic_load.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/loadstore/int_acquire_release_volatile.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/loadstore/atomic_load.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/loadstore/atomic_store.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/loadstore/short_atomic_store.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/ordered.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/ao_t_is_int.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/all_acquire_release_volatile.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/read_ordered.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/emul_cas.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/ordered_except_wr.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/ao_version.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops_malloc.c
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops_malloc.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops_stack.c
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops_stack.h
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops.c
Examining data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops.h
Examining data/gauche-0.9.6/gc/libatomic_ops/tests/test_atomic.c
Examining data/gauche-0.9.6/gc/libatomic_ops/tests/test_stack.c
Examining data/gauche-0.9.6/gc/libatomic_ops/tests/test_malloc.c
Examining data/gauche-0.9.6/gc/libatomic_ops/tests/run_parallel.h
Examining data/gauche-0.9.6/gc/include/ec.h
Examining data/gauche-0.9.6/gc/include/gc.h
Examining data/gauche-0.9.6/gc/include/extra/gc.h
Examining data/gauche-0.9.6/gc/include/extra/gc_cpp.h
Examining data/gauche-0.9.6/gc/include/gc_tiny_fl.h
Examining data/gauche-0.9.6/gc/include/gc_mark.h
Examining data/gauche-0.9.6/gc/include/gc_disclaim.h
Examining data/gauche-0.9.6/gc/include/gc_backptr.h
Examining data/gauche-0.9.6/gc/include/cord.h
Examining data/gauche-0.9.6/gc/include/gc_version.h
Examining data/gauche-0.9.6/gc/include/cord_pos.h
Examining data/gauche-0.9.6/gc/include/gc_inline.h
Examining data/gauche-0.9.6/gc/include/leak_detector.h
Examining data/gauche-0.9.6/gc/include/new_gc_alloc.h
Examining data/gauche-0.9.6/gc/include/gc_pthread_redirects.h
Examining data/gauche-0.9.6/gc/include/gc_typed.h
Examining data/gauche-0.9.6/gc/include/gc_config_macros.h
Examining data/gauche-0.9.6/gc/include/gc_cpp.h
Examining data/gauche-0.9.6/gc/include/gc_gcj.h
Examining data/gauche-0.9.6/gc/include/weakpointer.h
Examining data/gauche-0.9.6/gc/include/gc_allocator.h
Examining data/gauche-0.9.6/gc/include/javaxfc.h
Examining data/gauche-0.9.6/gc/include/private/gc_pmark.h
Examining data/gauche-0.9.6/gc/include/private/pthread_stop_world.h
Examining data/gauche-0.9.6/gc/include/private/gc_hdrs.h
Examining data/gauche-0.9.6/gc/include/private/darwin_semaphore.h
Examining data/gauche-0.9.6/gc/include/private/gc_priv.h
Examining data/gauche-0.9.6/gc/include/private/specific.h
Examining data/gauche-0.9.6/gc/include/private/darwin_stop_world.h
Examining data/gauche-0.9.6/gc/include/private/gc_locks.h
Examining data/gauche-0.9.6/gc/include/private/pthread_support.h
Examining data/gauche-0.9.6/gc/include/private/thread_local_alloc.h
Examining data/gauche-0.9.6/gc/include/private/msvc_dbg.h
Examining data/gauche-0.9.6/gc/include/private/dbg_mlc.h
Examining data/gauche-0.9.6/gc/include/private/gcconfig.h
Examining data/gauche-0.9.6/gc/new_hblk.c
Examining data/gauche-0.9.6/gc/dbg_mlc.c
Examining data/gauche-0.9.6/gc/os_dep.c
Examining data/gauche-0.9.6/ext/dbm/ndbm-makedb.c
Examining data/gauche-0.9.6/ext/net/net.c
Examining data/gauche-0.9.6/ext/net/addr.c
Examining data/gauche-0.9.6/ext/net/netdb.c
Examining data/gauche-0.9.6/ext/net/gauche-net.h
Examining data/gauche-0.9.6/ext/tls/axTLS/ssl/test/perf_bigint.c
Examining data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c
Examining data/gauche-0.9.6/ext/tls/axTLS/ssl/p12.c
Examining data/gauche-0.9.6/ext/tls/axTLS/ssl/ssl.h
Examining data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1_svr.c
Examining data/gauche-0.9.6/ext/tls/axTLS/ssl/asn1.c
Examining data/gauche-0.9.6/ext/tls/axTLS/ssl/cert.h
Examining data/gauche-0.9.6/ext/tls/axTLS/ssl/os_port.c
Examining data/gauche-0.9.6/ext/tls/axTLS/ssl/private_key.h
Examining data/gauche-0.9.6/ext/tls/axTLS/ssl/openssl.c
Examining data/gauche-0.9.6/ext/tls/axTLS/ssl/gen_cert.c
Examining data/gauche-0.9.6/ext/tls/axTLS/ssl/crypto_misc.h
Examining data/gauche-0.9.6/ext/tls/axTLS/ssl/x509.c
Examining data/gauche-0.9.6/ext/tls/axTLS/ssl/loader.c
Examining data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c
Examining data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.h
Examining data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1_clnt.c
Examining data/gauche-0.9.6/ext/tls/axTLS/ssl/version.h
Examining data/gauche-0.9.6/ext/tls/axTLS/ssl/os_port.h
Examining data/gauche-0.9.6/ext/tls/axTLS/config/config.h
Examining data/gauche-0.9.6/ext/tls/axTLS/crypto/os_int.h
Examining data/gauche-0.9.6/ext/tls/axTLS/crypto/crypto.h
Examining data/gauche-0.9.6/ext/tls/axTLS/crypto/aes.c
Examining data/gauche-0.9.6/ext/tls/axTLS/crypto/md5.c
Examining data/gauche-0.9.6/ext/tls/axTLS/crypto/rc4.c
Examining data/gauche-0.9.6/ext/tls/axTLS/crypto/rsa.c
Examining data/gauche-0.9.6/ext/tls/axTLS/crypto/bigint_impl.h
Examining data/gauche-0.9.6/ext/tls/axTLS/crypto/hmac.c
Examining data/gauche-0.9.6/ext/tls/axTLS/crypto/crypto_misc.c
Examining data/gauche-0.9.6/ext/tls/axTLS/crypto/sha1.c
Examining data/gauche-0.9.6/ext/tls/axTLS/crypto/sha256.c
Examining data/gauche-0.9.6/ext/tls/axTLS/crypto/sha384.c
Examining data/gauche-0.9.6/ext/tls/axTLS/crypto/sha512.c
Examining data/gauche-0.9.6/ext/tls/axTLS/crypto/bigint.c
Examining data/gauche-0.9.6/ext/tls/axTLS/crypto/bigint.h
Examining data/gauche-0.9.6/ext/tls/tls.c
Examining data/gauche-0.9.6/ext/tls/gauche-tls.h
Examining data/gauche-0.9.6/ext/tls/tls-mbed.c
Examining data/gauche-0.9.6/ext/zlib/gauche-zlib.c
Examining data/gauche-0.9.6/ext/zlib/gauche-zlib.h
Examining data/gauche-0.9.6/ext/fcntl/fcntl.c
Examining data/gauche-0.9.6/ext/fcntl/gauche/fcntl.h
Examining data/gauche-0.9.6/ext/vport/vport.c
Examining data/gauche-0.9.6/ext/vport/vport.h
Examining data/gauche-0.9.6/ext/charconv/charconv.c
Examining data/gauche-0.9.6/ext/charconv/guess.c
Examining data/gauche-0.9.6/ext/charconv/jconv.c
Examining data/gauche-0.9.6/ext/termios/gauche-termios.h
Examining data/gauche-0.9.6/ext/termios/termios.c
Examining data/gauche-0.9.6/ext/bcrypt/crypt_gensalt.c
Examining data/gauche-0.9.6/ext/bcrypt/crypt_gensalt.h
Examining data/gauche-0.9.6/ext/bcrypt/crypt_blowfish.c
Examining data/gauche-0.9.6/ext/bcrypt/crypt_blowfish.h
Examining data/gauche-0.9.6/ext/bcrypt/ow-crypt.h
Examining data/gauche-0.9.6/ext/bcrypt/wrapper.c
Examining data/gauche-0.9.6/ext/threads/threads.c
Examining data/gauche-0.9.6/ext/threads/threads.h
Examining data/gauche-0.9.6/ext/threads/mutex.c
Examining data/gauche-0.9.6/ext/binary/binary.c
Examining data/gauche-0.9.6/ext/binary/binary.h
Examining data/gauche-0.9.6/ext/digest/md5.h
Examining data/gauche-0.9.6/ext/digest/md5c.c
Examining data/gauche-0.9.6/ext/digest/sha2.c
Examining data/gauche-0.9.6/ext/digest/sha2.h
Examining data/gauche-0.9.6/ext/digest/renaming.h
Examining data/gauche-0.9.6/ext/template.extension.c
Examining data/gauche-0.9.6/ext/template.extension.h
Examining data/gauche-0.9.6/ext/mt-random/mt-random.c
Examining data/gauche-0.9.6/ext/mt-random/mt-random.h
Examining data/gauche-0.9.6/ext/sparse/ctrie.c
Examining data/gauche-0.9.6/ext/sparse/ctrie.h
Examining data/gauche-0.9.6/ext/sparse/sptab.c
Examining data/gauche-0.9.6/ext/sparse/sptab.h
Examining data/gauche-0.9.6/ext/sparse/spvec.c
Examining data/gauche-0.9.6/ext/sparse/spvec.h
Examining data/gauche-0.9.6/ext/uvector/uvectorP.h
Examining data/gauche-0.9.6/ext/windows/init.c
Examining data/gauche-0.9.6/ext/windows/os-windows.h
Examining data/gauche-0.9.6/src/libeval.c
Examining data/gauche-0.9.6/src/vm.c
Examining data/gauche-0.9.6/src/test-vmstack.c
Examining data/gauche-0.9.6/src/liblazy.c
Examining data/gauche-0.9.6/src/liblist.c
Examining data/gauche-0.9.6/src/libmisc.c
Examining data/gauche-0.9.6/src/libsrfis.c
Examining data/gauche-0.9.6/src/box.c
Examining data/gauche-0.9.6/src/getdir_win.c
Examining data/gauche-0.9.6/src/libproc.c
Examining data/gauche-0.9.6/src/autoloads.c
Examining data/gauche-0.9.6/src/libextra.c
Examining data/gauche-0.9.6/src/signal.c
Examining data/gauche-0.9.6/src/winmain.c
Examining data/gauche-0.9.6/src/compare.c
Examining data/gauche-0.9.6/src/compaux.c
Examining data/gauche-0.9.6/src/compile.c
Examining data/gauche-0.9.6/src/test-extra.c
Examining data/gauche-0.9.6/src/dwsiphash.c
Examining data/gauche-0.9.6/src/dwsiphash.h
Examining data/gauche-0.9.6/src/collection.c
Examining data/gauche-0.9.6/src/libio.c
Examining data/gauche-0.9.6/src/librx.c
Examining data/gauche-0.9.6/src/char_attr.c
Examining data/gauche-0.9.6/src/macro.c
Examining data/gauche-0.9.6/src/win-compat.c
Examining data/gauche-0.9.6/src/module.c
Examining data/gauche-0.9.6/src/vector.c
Examining data/gauche-0.9.6/src/dl_dlopen.c
Examining data/gauche-0.9.6/src/error.c
Examining data/gauche-0.9.6/src/libalpha.c
Examining data/gauche-0.9.6/src/getdir_dummy.c
Examining data/gauche-0.9.6/src/bits.c
Examining data/gauche-0.9.6/src/builtin-syms.c
Examining data/gauche-0.9.6/src/libomega.c
Examining data/gauche-0.9.6/src/char.c
Examining data/gauche-0.9.6/src/code.c
Examining data/gauche-0.9.6/src/dl_win.c
Examining data/gauche-0.9.6/src/core.c
Examining data/gauche-0.9.6/src/portapi.c
Examining data/gauche-0.9.6/src/vmcall.c
Examining data/gauche-0.9.6/src/gauche/priv/writerP.h
Examining data/gauche-0.9.6/src/gauche/priv/codeP.h
Examining data/gauche-0.9.6/src/gauche/priv/vmP.h
Examining data/gauche-0.9.6/src/gauche/priv/macroP.h
Examining data/gauche-0.9.6/src/gauche/priv/identifierP.h
Examining data/gauche-0.9.6/src/gauche/priv/atomicP.h
Examining data/gauche-0.9.6/src/gauche/priv/builtin-syms.h
Examining data/gauche-0.9.6/src/gauche/priv/dws_adapter.h
Examining data/gauche-0.9.6/src/gauche/priv/unicode_attr.h
Examining data/gauche-0.9.6/src/gauche/priv/moduleP.h
Examining data/gauche-0.9.6/src/gauche/priv/arith_x86_64.h
Examining data/gauche-0.9.6/src/gauche/priv/vectorP.h
Examining data/gauche-0.9.6/src/gauche/priv/arith.h
Examining data/gauche-0.9.6/src/gauche/priv/classP.h
Examining data/gauche-0.9.6/src/gauche/priv/dispatchP.h
Examining data/gauche-0.9.6/src/gauche/priv/charP.h
Examining data/gauche-0.9.6/src/gauche/priv/portP.h
Examining data/gauche-0.9.6/src/gauche/priv/readerP.h
Examining data/gauche-0.9.6/src/gauche/priv/arith_i386.h
Examining data/gauche-0.9.6/src/gauche/vm.h
Examining data/gauche-0.9.6/src/gauche/wthread.h
Examining data/gauche-0.9.6/src/gauche/extend.h
Examining data/gauche-0.9.6/src/gauche/extern.h
Examining data/gauche-0.9.6/src/gauche/pthread.h
Examining data/gauche-0.9.6/src/gauche/compare.h
Examining data/gauche-0.9.6/src/gauche/collection.h
Examining data/gauche-0.9.6/src/gauche/char_attr.h
Examining data/gauche-0.9.6/src/gauche/win-compat.h
Examining data/gauche-0.9.6/src/gauche/bytes_inline.h
Examining data/gauche-0.9.6/src/gauche/charset.h
Examining data/gauche-0.9.6/src/gauche/module.h
Examining data/gauche-0.9.6/src/gauche/vector.h
Examining data/gauche-0.9.6/src/gauche/char_none.h
Examining data/gauche-0.9.6/src/gauche/bits.h
Examining data/gauche-0.9.6/src/gauche/float.h
Examining data/gauche-0.9.6/src/gauche/bits_inline.h
Examining data/gauche-0.9.6/src/gauche/code.h
Examining data/gauche-0.9.6/src/gauche/char_sjis.h
Examining data/gauche-0.9.6/src/gauche/gloc.h
Examining data/gauche-0.9.6/src/gauche/hash.h
Examining data/gauche-0.9.6/src/gauche/treemap.h
Examining data/gauche-0.9.6/src/gauche/parameter.h
Examining data/gauche-0.9.6/src/gauche/symbol.h
Examining data/gauche-0.9.6/src/gauche/vminsn.h
Examining data/gauche-0.9.6/src/gauche/load.h
Examining data/gauche-0.9.6/src/gauche/port.h
Examining data/gauche-0.9.6/src/gauche/prof.h
Examining data/gauche-0.9.6/src/gauche/system.h
Examining data/gauche-0.9.6/src/gauche/static.h
Examining data/gauche-0.9.6/src/gauche/weak.h
Examining data/gauche-0.9.6/src/gauche/scmconst.h
Examining data/gauche-0.9.6/src/gauche/paths.h
Examining data/gauche-0.9.6/src/gauche/char_utf_8.h
Examining data/gauche-0.9.6/src/gauche/exception.h
Examining data/gauche-0.9.6/src/gauche/int64.h
Examining data/gauche-0.9.6/src/gauche/number.h
Examining data/gauche-0.9.6/src/gauche/reader.h
Examining data/gauche-0.9.6/src/gauche/writer.h
Examining data/gauche-0.9.6/src/gauche/uthread.h
Examining data/gauche-0.9.6/src/gauche/string.h
Examining data/gauche-0.9.6/src/gauche/bignum.h
Examining data/gauche-0.9.6/src/gauche/char_euc_jp.h
Examining data/gauche-0.9.6/src/gauche/regexp.h
Examining data/gauche-0.9.6/src/gauche/class.h
Examining data/gauche-0.9.6/src/gloc.c
Examining data/gauche-0.9.6/src/hash.c
Examining data/gauche-0.9.6/src/test-arith.c
Examining data/gauche-0.9.6/src/treemap.c
Examining data/gauche-0.9.6/src/lazy.c
Examining data/gauche-0.9.6/src/parameter.c
Examining data/gauche-0.9.6/src/list.c
Examining data/gauche-0.9.6/src/symbol.c
Examining data/gauche-0.9.6/src/main.c
Examining data/gauche-0.9.6/src/vminsn.c
Examining data/gauche-0.9.6/src/load.c
Examining data/gauche-0.9.6/src/port.c
Examining data/gauche-0.9.6/src/proc.c
Examining data/gauche-0.9.6/src/prof.c
Examining data/gauche-0.9.6/src/dws32hash.c
Examining data/gauche-0.9.6/src/dws32hash.h
Examining data/gauche-0.9.6/src/read.c
Examining data/gauche-0.9.6/src/repl.c
Examining data/gauche-0.9.6/src/system.c
Examining data/gauche-0.9.6/src/weak.c
Examining data/gauche-0.9.6/src/vmstat.c
Examining data/gauche-0.9.6/src/dispatch.c
Examining data/gauche-0.9.6/src/serial.c
Examining data/gauche-0.9.6/src/paths.c
Examining data/gauche-0.9.6/src/dl_dummy.c
Examining data/gauche-0.9.6/src/libcmp.c
Examining data/gauche-0.9.6/src/libexc.c
Examining data/gauche-0.9.6/src/libfmt.c
Examining data/gauche-0.9.6/src/libmac.c
Examining data/gauche-0.9.6/src/libmod.c
Examining data/gauche-0.9.6/src/dl_darwin.c
Examining data/gauche-0.9.6/src/libobj.c
Examining data/gauche-0.9.6/src/libnum.c
Examining data/gauche-0.9.6/src/libstr.c
Examining data/gauche-0.9.6/src/libsym.c
Examining data/gauche-0.9.6/src/libsys.c
Examining data/gauche-0.9.6/src/libvec.c
Examining data/gauche-0.9.6/src/boolean.c
Examining data/gauche-0.9.6/src/number.c
Examining data/gauche-0.9.6/src/gauche.h
Examining data/gauche-0.9.6/src/string.c
Examining data/gauche-0.9.6/src/bignum.c
Examining data/gauche-0.9.6/src/getdir_darwin.c
Examining data/gauche-0.9.6/src/libbool.c
Examining data/gauche-0.9.6/src/libchar.c
Examining data/gauche-0.9.6/src/libcode.c
Examining data/gauche-0.9.6/src/libdict.c
Examining data/gauche-0.9.6/src/regexp.c
Examining data/gauche-0.9.6/src/class.c
Examining data/gauche-0.9.6/src/write.c
Examining data/gauche-0.9.6/examples/mqueue-cpp/mqueue.cpp
Examining data/gauche-0.9.6/examples/mqueue-cpp/mqueue_glue.cpp
Examining data/gauche-0.9.6/examples/mqueue-cpp/mqueue_glue.h
Examining data/gauche-0.9.6/examples/mqueue-cpp/mqueue.h
Examining data/gauche-0.9.6/examples/spigot/spigot.c
Examining data/gauche-0.9.6/examples/spigot/spigot.h

FINAL RESULTS:

data/gauche-0.9.6/ext/vport/vport.c:420:11:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
VPORT_ACC(gets)
data/gauche-0.9.6/ext/vport/vport.c:437:16:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
    VPORT_SLOT(gets),
data/gauche-0.9.6/ext/vport/vport.c:458:16:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
    VPORT_SLOT(gets),
data/gauche-0.9.6/gc/os_dep.c:4677:30:  [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.
                  ret_code = readlink("/proc/self/exe", exe_name, EXE_SZ);
data/gauche-0.9.6/src/gauche/win-compat.h:190:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
#define chmod(path, mode)  _wchmod(Scm_MBS2WCS(path), mode)
data/gauche-0.9.6/src/libsys.c:6168:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
{chmod(newname,438);unlink(newname);}
data/gauche-0.9.6/src/libsys.c:7700:15:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
SCM_SYSCALL(r,chmod(pathname,mode));
data/gauche-0.9.6/src/libsys.c:7769:24:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
SCM_SYSCALL(SCM_RESULT,chown(path,owner,group));
data/gauche-0.9.6/src/libsys.c:8712:1:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
chmod(pathname,384);}}
data/gauche-0.9.6/src/libsys.c:8982:15:  [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.
SCM_SYSCALL(n,readlink(path,buf,1024));
data/gauche-0.9.6/ext/bcrypt/ow-crypt.h:26:14:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
extern char *crypt(__const char *key, __const char *setting);
data/gauche-0.9.6/ext/bcrypt/ow-crypt.h:27:14:  [4] (crypto) crypt_r:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
extern char *crypt_r(__const char *key, __const char *setting, void *data);
data/gauche-0.9.6/ext/bcrypt/wrapper.c:179:7:  [4] (crypto) crypt_r:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
char *crypt_r(const char *key, const char *setting, void *data)
data/gauche-0.9.6/ext/bcrypt/wrapper.c:186:7:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
char *crypt(const char *key, const char *setting)
data/gauche-0.9.6/ext/bcrypt/wrapper.c:269:23:  [4] (crypto) crypt_r:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
weak_alias(__crypt_r, crypt_r)
data/gauche-0.9.6/ext/bcrypt/wrapper.c:270:21:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
weak_alias(__crypt, crypt)
data/gauche-0.9.6/ext/bcrypt/wrapper.c:274:12:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
weak_alias(crypt, fcrypt)
data/gauche-0.9.6/ext/bcrypt/wrapper.c:437:7:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
		p = crypt(key, setting);
data/gauche-0.9.6/ext/bcrypt/wrapper.c:443:20:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
		if (ok && strcmp(crypt(key, hash), hash)) {
data/gauche-0.9.6/ext/bcrypt/wrapper.c:451: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(o_buf, x);
data/gauche-0.9.6/ext/termios/termios.c:172:9:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        execvp(program, (char *const*)argv);
data/gauche-0.9.6/ext/tls/axTLS/crypto/crypto_misc.c:355:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tmp, "%s\n", format);
data/gauche-0.9.6/ext/tls/axTLS/crypto/crypto_misc.c:356:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(tmp, ap);
data/gauche-0.9.6/ext/tls/axTLS/ssl/gen_cert.c:145: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((char *)&buf[*offset], name);
data/gauche-0.9.6/ext/tls/axTLS/ssl/openssl.c:300:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(f, format, ap);
data/gauche-0.9.6/ext/tls/axTLS/ssl/os_port.h:92:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf                _snprintf
data/gauche-0.9.6/ext/tls/axTLS/ssl/os_port.h:92:33:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf                _snprintf
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:61:33:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
#define SYSTEM(A)           if (system(A) < 0) printf("system call error\n");
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:969:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(openssl_buf, "echo \"hello client\" | openssl s_client "
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:975:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(openssl_buf, "echo \"hello client\" | openssl s_client "
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:985:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(openssl_buf, "echo \"hello client\" | gnutls-cli "
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:1557:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(openssl_buf, "gnutls-serv " 
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:1562:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(openssl_buf, "openssl s_server " 
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:2083:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(ret == SSL_OK && offset == sizeof(basic_buf) ? 
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:2217:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(ret == SSL_OK && offset == sizeof(basic_buf) ? 
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:956: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((char *)q, label);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:2132:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(not_ok ? "Error - invalid State:\t" : "State:\t");
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:2133:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(is_send ? "sending " : "receiving ");
data/gauche-0.9.6/gc/cord/cordprnt.c:179:49:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
# define GC_VSNPRINTF(buf, bufsz, format, args) vsprintf(buf, format, args)
data/gauche-0.9.6/gc/cord/cordprnt.c:188:23:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# define GC_VSNPRINTF vsnprintf
data/gauche-0.9.6/gc/cord/tests/cordtest.c:262:26:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#     define GC_SNPRINTF _snprintf
data/gauche-0.9.6/gc/cord/tests/cordtest.c:265:24:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#   define GC_SNPRINTF snprintf
data/gauche-0.9.6/gc/cord/tests/de.c:63:30:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#       define de_error(s) { fprintf(stderr, s); getchar(); }
data/gauche-0.9.6/gc/cord/tests/de.c:69:25:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define de_error(s) { fprintf(stderr, s); sleep(2); }
data/gauche-0.9.6/gc/dyn_load.c:1345:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      (void)snprintf(secnam, sizeof(secnam), fmt, (unsigned)i);
data/gauche-0.9.6/gc/dyn_load.c:1398:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      (void)snprintf(secnam, sizeof(secnam), fmt, (unsigned)i);
data/gauche-0.9.6/gc/misc.c:1608:49:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
# define GC_VSNPRINTF(buf, bufsz, format, args) vsprintf(buf, format, args)
data/gauche-0.9.6/gc/misc.c:1617:23:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# define GC_VSNPRINTF vsnprintf
data/gauche-0.9.6/gc/os_dep.c:4703:24:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                pipe = popen(cmd_buf, "r");
data/gauche-0.9.6/gc/tests/huge_test.c:40: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(stderr, \
data/gauche-0.9.6/gc/tests/test.c:87:22:  [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.
#   define GC_printf printf
data/gauche-0.9.6/gc/tools/if_mach.c:16:5:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    execvp(TRUSTED_STRING(argv[3]), (void *)(argv + 3));
data/gauche-0.9.6/gc/tools/if_not_there.c:41:5:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    execvp(TRUSTED_STRING(argv[2]), (void *)(argv + 2));
data/gauche-0.9.6/src/class.c:3249:13:  [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(metaname, name);
data/gauche-0.9.6/src/core.c:409:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, msg, args);
data/gauche-0.9.6/src/gauche/win-compat.h:188:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#define access(path, mode) _waccess(Scm_MBS2WCS(path), mode)
data/gauche-0.9.6/src/gauche/win-compat.h:196: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.
#define system(path)       _wsystem(Scm_MBS2WCS(path))
data/gauche-0.9.6/src/gauche/win-compat.h:267:13:  [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.
const char *getlogin(void);
data/gauche-0.9.6/src/getdir_darwin.c:77: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(buf, SUBDIR);
data/gauche-0.9.6/src/getdir_win.c:40: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(buf, mbpath);
data/gauche-0.9.6/src/libsys.c:6358:24:  [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.
SCM_SYSCALL(SCM_RESULT,system(command));}
data/gauche-0.9.6/src/libsys.c:6876:15:  [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.
SCM_SYSCALL(r,access(path,F_OK));
data/gauche-0.9.6/src/libsys.c:6902:77:  [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.
{int r;ScmStat s;const char* p=check_trailing_separator(path);SCM_SYSCALL(r,access(p,F_OK));if ((r)==(0)){{SCM_SYSCALL(r,stat(p,&(s)));if ((r)<(0)){{Scm_SysError("stat failed for %s",path);}}{SCM_RESULT=(S_ISREG((s).st_mode));goto SCM_STUB_RETURN;}}} else {{SCM_RESULT=(FALSE);goto SCM_STUB_RETURN;}}}
data/gauche-0.9.6/src/libsys.c:6927:77:  [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.
{int r;ScmStat s;const char* p=check_trailing_separator(path);SCM_SYSCALL(r,access(p,F_OK));if ((r)==(0)){{SCM_SYSCALL(r,stat(p,&(s)));if ((r)<(0)){{Scm_SysError("stat failed for %s",path);}}{SCM_RESULT=(S_ISDIR((s).st_mode));goto SCM_STUB_RETURN;}}} else {{SCM_RESULT=(FALSE);goto SCM_STUB_RETURN;}}}
data/gauche-0.9.6/src/libsys.c:7646:15:  [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.
SCM_SYSCALL(r,access(pathname,amode));
data/gauche-0.9.6/src/libsys.c:8317:14:  [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.
{SCM_RESULT=(getlogin());goto SCM_STUB_RETURN;}
data/gauche-0.9.6/src/libsys.c:8711:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
if (!(access(pathname,F_OK))){{
data/gauche-0.9.6/src/libsys.c:8860:31:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
{SCM_RESULT=(((const char * )(crypt(key,salt))));goto SCM_STUB_RETURN;}
data/gauche-0.9.6/src/main.c:79: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,
data/gauche-0.9.6/src/main.c:359: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.
    if (access("../src/gauche/config.h", R_OK) == 0
data/gauche-0.9.6/src/main.c:360:12:  [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.
        && access("../libsrc/srfi-1.scm", R_OK) == 0
data/gauche-0.9.6/src/main.c:361:12:  [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.
        && access("../lib/srfi-0.scm", R_OK) == 0) {
data/gauche-0.9.6/src/main.c:365: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.
    } else if (access("../../src/gauche/config.h", R_OK) == 0
data/gauche-0.9.6/src/main.c:366:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
               && access("../../libsrc/srfi-1.scm", R_OK) == 0
data/gauche-0.9.6/src/main.c:367:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
               && access("../../lib/srfi-0.scm", R_OK) == 0) {
data/gauche-0.9.6/src/main.c:433:22:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
#define ERR(msg) do {sprintf(buf, msg, strerror(errno));goto fail;} while(0)
data/gauche-0.9.6/src/paths.c:60:9:  [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(buf, orig+1);
data/gauche-0.9.6/src/paths.c:65: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(buf, orig);
data/gauche-0.9.6/src/string.c:1298:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(*p, s);
data/gauche-0.9.6/src/symbol.c:166:14:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    int nc = snprintf(numbuf, 49, "%"PRIdPTR, gensym_count++);
data/gauche-0.9.6/src/system.c:1738:9:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        execvp(program, (char *const*)argv);
data/gauche-0.9.6/src/system.c:1830:9:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        execvp(program, (char *const*)argv);
data/gauche-0.9.6/src/system.c:1832:9:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        execvp(program, (const char *const*)argv);
data/gauche-0.9.6/src/system.c:2378:5:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
    wcscpy(wnameval, wname);
data/gauche-0.9.6/src/system.c:2380:5:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
    wcscpy(wnameval+nlen+1, wvalue);
data/gauche-0.9.6/src/system.c:2421: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(nameval, name);
data/gauche-0.9.6/src/system.c:2423: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(nameval+nlen+1, value);
data/gauche-0.9.6/src/system.c:2777:13:  [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.
const char *getlogin(void)
data/gauche-0.9.6/src/vm.c:639: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, delimiter);                 \
data/gauche-0.9.6/src/write.c:969:21:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                    snprintf(buf, SPBUFSIZ, Scm_DStringGetz(&argbuf),
data/gauche-0.9.6/src/write.c:982:21:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                    snprintf(buf, SPBUFSIZ, Scm_DStringGetz(&argbuf),
data/gauche-0.9.6/src/write.c:995:21:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                    snprintf(buf, SPBUFSIZ, Scm_DStringGetz(&argbuf),
data/gauche-0.9.6/src/write.c:1031:21:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                    snprintf(buf, SPBUFSIZ, Scm_DStringGetz(&argbuf),
data/gauche-0.9.6/ext/tls/axTLS/ssl/os_port.h:89:9:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define srandom(A)              srand(A)
data/gauche-0.9.6/ext/tls/axTLS/ssl/os_port.h:89:33:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define srandom(A)              srand(A)
data/gauche-0.9.6/ext/tls/axTLS/ssl/os_port.h:90:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define random()                rand()
data/gauche-0.9.6/ext/tls/axTLS/ssl/os_port.h:102: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.
#define chroot(A)               _chdir(A)
data/gauche-0.9.6/gc/dbg_mlc.c:78:21:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#   define RANDOM() random()
data/gauche-0.9.6/gc/include/private/gc_locks.h:73:19:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
                  EnterCriticalSection(&GC_allocate_ml); \
data/gauche-0.9.6/gc/include/private/gc_locks.h:79:29:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
#      define UNCOND_LOCK() EnterCriticalSection(&GC_allocate_ml)
data/gauche-0.9.6/gc/include/private/gc_priv.h:621:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *value = getenv(name);
data/gauche-0.9.6/gc/include/private/gc_priv.h:626: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.
# define GETENV(name) getenv(name)
data/gauche-0.9.6/gc/misc.c:724: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.
      p = getenv(name); /* try the standard getenv() first */
data/gauche-0.9.6/gc/misc.c:817:24:  [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.
      HINSTANCE hU32 = LoadLibrary(TEXT("user32.dll"));
data/gauche-0.9.6/gc/misc.c:950:20:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
        /* else */ InitializeCriticalSection (&GC_allocate_ml);
data/gauche-0.9.6/gc/misc.c:954:7:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
      InitializeCriticalSection(&GC_write_cs);
data/gauche-0.9.6/gc/misc.c:1476:23:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
      IF_NEED_TO_LOCK(EnterCriticalSection(&GC_write_cs));
data/gauche-0.9.6/gc/tests/test.c:131:27:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
# define FINALIZER_LOCK() EnterCriticalSection(&incr_cs)
data/gauche-0.9.6/gc/tests/test.c:2106:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection(&incr_cs);
data/gauche-0.9.6/gc/win32_threads.c:1230:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&GC_write_cs);
data/gauche-0.9.6/src/dl_win.c:45:19:  [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.
    return (void*)LoadLibrary(xpath);
data/gauche-0.9.6/src/libsys.c:6201:10:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
{char* s=tmpnam(NULL);
data/gauche-0.9.6/src/libsys.c:6379:14:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
{SCM_RESULT=(random());goto SCM_STUB_RETURN;}
data/gauche-0.9.6/src/libsys.c:6383:14:  [3] (random) lrand48:
  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.
{SCM_RESULT=(lrand48());goto SCM_STUB_RETURN;}
data/gauche-0.9.6/src/libsys.c:6419:1:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
srandom(Scm_GetUInteger(seed));
data/gauche-0.9.6/src/libsys.c:6427:1:  [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(Scm_GetUInteger(seed));
data/gauche-0.9.6/src/main.c:306:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt(argc, argv, "+be:E:ip:ql:L:m:u:Vv:r:F:f:I:A:-")) >= 0) {
data/gauche-0.9.6/src/main.c:651:34:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        const char *call_trace = getenv("GAUCHE_CALL_TRACE");
data/gauche-0.9.6/src/system.c:2356:36:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *value = SCM_STRDUP(getenv(name));
data/gauche-0.9.6/src/system.c:2431:22:  [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 (overwrite || getenv(name) == NULL) {
data/gauche-0.9.6/src/system.c:2587:17:  [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.
    HMODULE m = LoadLibrary(module);
data/gauche-0.9.6/src/system.c:3048:5:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
    InitializeCriticalSection(&cond->numWaitersLock);
data/gauche-0.9.6/src/system.c:3078:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&cond->numWaitersLock);
data/gauche-0.9.6/src/system.c:3102:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&cond->numWaitersLock);
data/gauche-0.9.6/src/system.c:3129:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&cond->numWaitersLock);
data/gauche-0.9.6/src/system.c:3153:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&cond->numWaitersLock);
data/gauche-0.9.6/ext/bcrypt/crypt_blowfish.c:364: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 BF_itoa64[64 + 1] =
data/gauche-0.9.6/ext/bcrypt/crypt_blowfish.c:367: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 BF_atoi64[0x60] = {
data/gauche-0.9.6/ext/bcrypt/crypt_blowfish.c:645: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.
static const unsigned char flags_by_subtype[26] =
data/gauche-0.9.6/ext/bcrypt/crypt_blowfish.c:768:2:  [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(output, setting, 7 + 22 - 1);
data/gauche-0.9.6/ext/bcrypt/crypt_blowfish.c:821:15:  [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 const char * const test_hashes[2] =
data/gauche-0.9.6/ext/bcrypt/crypt_blowfish.c:829:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char s[7 + 22 + 1];
data/gauche-0.9.6/ext/bcrypt/crypt_blowfish.c:830: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 o[7 + 22 + 31 + 1 + 1 + 1];
data/gauche-0.9.6/ext/bcrypt/crypt_gensalt.c:31:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char _crypt_itoa64[64 + 1] =
data/gauche-0.9.6/ext/bcrypt/wrapper.c:188: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.
	static char output[CRYPT_OUTPUT_SIZE];
data/gauche-0.9.6/ext/bcrypt/wrapper.c:239:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char output[CRYPT_GENSALT_OUTPUT_SIZE];
data/gauche-0.9.6/ext/bcrypt/wrapper.c:260: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.
	static char output[CRYPT_GENSALT_OUTPUT_SIZE];
data/gauche-0.9.6/ext/bcrypt/wrapper.c:429: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 s_buf[30], o_buf[61];
data/gauche-0.9.6/ext/charconv/charconv.c:505: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 inbuf[6], outbuf[6];
data/gauche-0.9.6/ext/charconv/charconv.c:535: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 inbuf[6], outbuf[6];
data/gauche-0.9.6/ext/charconv/guess.c:44: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.
    signed char (*states)[256];
data/gauche-0.9.6/ext/charconv/jconv.c:1007: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(outptr, escseq, esclen);
data/gauche-0.9.6/ext/charconv/jconv.c:1203: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(*optr, *iptr, inroom);
data/gauche-0.9.6/ext/charconv/jconv.c:1210: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(*optr, *iptr, outroom);
data/gauche-0.9.6/ext/charconv/jconv.c:1259:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[INTBUFSIZ];
data/gauche-0.9.6/ext/digest/md5.h:22:11:  [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/gauche-0.9.6/ext/digest/md5.h:28: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.
extern void   MD5_Final(unsigned char digest[MD5_HASHBYTES], MD5_CTX *context);
data/gauche-0.9.6/ext/digest/md5c.c:76:6:  [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/gauche-0.9.6/ext/digest/md5c.c:79:2:  [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/gauche-0.9.6/ext/digest/md5c.c:88:2:  [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/gauche-0.9.6/ext/digest/md5c.c:97: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/gauche-0.9.6/ext/digest/md5c.c:104:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void MD5_Final(unsigned char digest[16], MD5_CTX *ctx)
data/gauche-0.9.6/ext/digest/md5c.c:141: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/gauche-0.9.6/ext/digest/sha2.c:173:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define MEMCPY_BCOPY(d,s,l)	memcpy((d), (s), (l))
data/gauche-0.9.6/ext/digest/sha2.c:177:29:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define MEMCPY_BCOPY(d,s,l)	bcopy((s), (d), (l))
data/gauche-0.9.6/ext/digest/sha2.c:783:51:  [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* SHA1_Data(const sha_byte* data, size_t len, char digest[SHA1_DIGEST_STRING_LENGTH]) {
data/gauche-0.9.6/ext/digest/sha2.c:1122:53:  [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* SHA256_Data(const sha_byte* data, size_t len, char digest[SHA256_DIGEST_STRING_LENGTH]) {
data/gauche-0.9.6/ext/digest/sha2.c:1196:53:  [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* SHA224_Data(const sha_byte* data, size_t len, char digest[SHA224_DIGEST_STRING_LENGTH]) {
data/gauche-0.9.6/ext/digest/sha2.c:1531:53:  [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* SHA512_Data(const sha_byte* data, size_t len, char digest[SHA512_DIGEST_STRING_LENGTH]) {
data/gauche-0.9.6/ext/digest/sha2.c:1601:53:  [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* SHA384_Data(const sha_byte* data, size_t len, char digest[SHA384_DIGEST_STRING_LENGTH]) {
data/gauche-0.9.6/ext/net/addr.c:124: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(&addr->addr, saddr, len);
data/gauche-0.9.6/ext/net/addr.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(addr->addr.sun_path, cpath, size);
data/gauche-0.9.6/ext/net/addr.c:406: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[INET_ADDRSTRLEN];
data/gauche-0.9.6/ext/net/addr.c:427: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[INET6_ADDRSTRLEN];
data/gauche-0.9.6/ext/net/gauche-net.h:83: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 sun_path[108];
data/gauche-0.9.6/ext/net/gauche-net.h:127: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      __ss_pad1[_SS_PAD1SIZE];
data/gauche-0.9.6/ext/net/gauche-net.h:129: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      __ss_pad2[_SS_PAD2SIZE];
data/gauche-0.9.6/ext/net/net.c:476:17:  [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(&SCM_SOCKADDR(a)->addr, &from, SCM_SOCKADDR(a)->addrlen);
data/gauche-0.9.6/ext/net/net.c:570: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(CMSG_DATA(cmsg), cdata, clen);
data/gauche-0.9.6/ext/net/net.c:760: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(dst, &sa.sin_addr, sizeof(struct in_addr));
data/gauche-0.9.6/ext/net/net.c:768: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(dst, &sa6.sin6_addr, sizeof(struct in6_addr));
data/gauche-0.9.6/ext/net/net.c:778:5:  [2] (buffer) TCHAR:
  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.
    TCHAR buf[ADDR_MAXLEN];
data/gauche-0.9.6/ext/net/net.c:788: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(&sa.sin_addr, src, sizeof(struct in_addr));
data/gauche-0.9.6/ext/net/net.c:797: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(&sa6.sin6_addr, src, sizeof(struct in6_addr));
data/gauche-0.9.6/ext/net/net.c:811: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(dst, res, ressize+1);
data/gauche-0.9.6/ext/net/netdb.c:74:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[50];
data/gauche-0.9.6/ext/net/netdb.c:98: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 staticbuf[DATA_BUFSIZ], *buf = staticbuf;
data/gauche-0.9.6/ext/net/netdb.c:148: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 staticbuf[DATA_BUFSIZ], *buf = staticbuf;
data/gauche-0.9.6/ext/net/netdb.c:239: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 staticbuf[DATA_BUFSIZ], *buf = staticbuf;
data/gauche-0.9.6/ext/net/netdb.c:279: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 staticbuf[DATA_BUFSIZ], *buf = staticbuf;
data/gauche-0.9.6/ext/net/netdb.c:360: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 staticbuf[DATA_BUFSIZ], *buf = staticbuf;
data/gauche-0.9.6/ext/net/netdb.c:400: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 staticbuf[DATA_BUFSIZ], *buf = staticbuf;
data/gauche-0.9.6/ext/net/netdb.c:525: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 host[NI_MAXHOST], serv[NI_MAXSERV];
data/gauche-0.9.6/ext/sparse/ctrie.c:289: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 is_leaf[MAX_NODE_SIZE];
data/gauche-0.9.6/ext/sparse/ctrie.c:464: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 keybuf[BUF_SIZE];
data/gauche-0.9.6/ext/sparse/sptab.c:331: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(d, s, sizeof(SparseTable));
data/gauche-0.9.6/ext/sparse/spvec.c:321: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(z, leaf, sizeof(ULeaf));
data/gauche-0.9.6/ext/termios/termios.c:91: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(t->term.c_cc, SCM_U8VECTOR_ELEMENTS(val), NCCS);
data/gauche-0.9.6/ext/tls/axTLS/crypto/aes.c:153: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.
static const unsigned char Rcon[30]=
data/gauche-0.9.6/ext/tls/axTLS/crypto/aes.c:244: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->iv, iv, 16);
data/gauche-0.9.6/ext/tls/axTLS/crypto/aes.c:274: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(iv, ctx->iv, AES_IV_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/crypto/aes.c:282: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(msg_32, msg, AES_BLOCKSIZE);
data/gauche-0.9.6/ext/tls/axTLS/crypto/aes.c:296: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(out, out_32, AES_BLOCKSIZE);
data/gauche-0.9.6/ext/tls/axTLS/crypto/aes.c:302: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->iv, iv, AES_IV_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/crypto/aes.c:313: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(iv, ctx->iv, AES_IV_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/crypto/aes.c:321: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(msg_32, msg, AES_BLOCKSIZE);
data/gauche-0.9.6/ext/tls/axTLS/crypto/aes.c:339: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(out, out_32, AES_BLOCKSIZE);
data/gauche-0.9.6/ext/tls/axTLS/crypto/aes.c:345: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->iv, iv, AES_IV_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/crypto/bigint.c:265: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(biR->comps, bi->comps, bi->size*COMP_BYTE_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/crypto/bigint.c:436: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(tmp_u->comps, &u->comps[u->size-n-1-j], (n+1)*COMP_BYTE_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/crypto/bigint.c:488: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(&u->comps[u->size-n-1-j], tmp_u->comps, (n+1)*COMP_BYTE_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/crypto/crypto_misc.c:38: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).
#undef open
data/gauche-0.9.6/ext/tls/axTLS/crypto/crypto_misc.c:121:20:  [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 *stream = fopen(filename, "rb");
data/gauche-0.9.6/ext/tls/axTLS/crypto/crypto_misc.c:166:14:  [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).
    rng_fd = open("/dev/urandom", O_RDONLY);
data/gauche-0.9.6/ext/tls/axTLS/crypto/crypto_misc.c:187: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(entropy_pool, arr, ENTROPY_POOL_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/crypto/crypto_misc.c:266:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(rand_data, entropy_pool, num_rand_bytes < ENTROPY_POOL_SIZE ?
data/gauche-0.9.6/ext/tls/axTLS/crypto/crypto_misc.c:275: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(entropy_pool, digest, MD5_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/crypto/crypto_misc.c:351: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 tmp[80];
data/gauche-0.9.6/ext/tls/axTLS/crypto/hmac.c:55: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(k_ipad, key, key_len);
data/gauche-0.9.6/ext/tls/axTLS/crypto/hmac.c:56: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(k_opad, key, key_len);
data/gauche-0.9.6/ext/tls/axTLS/crypto/hmac.c:88: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(k_ipad, key, key_len);
data/gauche-0.9.6/ext/tls/axTLS/crypto/hmac.c:89: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(k_opad, key, key_len);
data/gauche-0.9.6/ext/tls/axTLS/crypto/hmac.c:121: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(k_ipad, key, key_len);
data/gauche-0.9.6/ext/tls/axTLS/crypto/hmac.c:122: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(k_opad, key, key_len);
data/gauche-0.9.6/ext/tls/axTLS/crypto/md5.c:139: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->buffer[x], msg, partLen);
data/gauche-0.9.6/ext/tls/axTLS/crypto/md5.c:151: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->buffer[x], &msg[i], len-i);
data/gauche-0.9.6/ext/tls/axTLS/crypto/rsa.c:199: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(out_data, &block[i], size);
data/gauche-0.9.6/ext/tls/axTLS/crypto/rsa.c:271: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(&out_data[3+num_pads_needed], in_data, in_len);
data/gauche-0.9.6/ext/tls/axTLS/crypto/sha256.c:224: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((void *) (ctx->buffer + left), (void *)msg, fill);
data/gauche-0.9.6/ext/tls/axTLS/crypto/sha256.c:240: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((void *) (ctx->buffer + left), (void *) msg, len);
data/gauche-0.9.6/ext/tls/axTLS/crypto/sha384.c:75: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(digest, ctx->h_dig.digest, SHA384_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/crypto/sha512.c:166: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->w_buf.buffer + ctx->size, msg, n);
data/gauche-0.9.6/ext/tls/axTLS/crypto/sha512.c:218:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
       memcpy(digest, ctx->h_dig.digest, SHA512_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/ssl/asn1.c:169: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(*object, &buf[*offset], len);
data/gauche-0.9.6/ext/tls/axTLS/ssl/asn1.c:464: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(*str, &buf[*offset], len);
data/gauche-0.9.6/ext/tls/axTLS/ssl/asn1.c:572: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(x509_ctx->signature, &cert[*offset], x509_ctx->sig_len);
data/gauche-0.9.6/ext/tls/axTLS/ssl/crypto_misc.h:90: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 *ca_cert_dn[X509_NUM_DN_TYPES];
data/gauche-0.9.6/ext/tls/axTLS/ssl/crypto_misc.h:91: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 *cert_dn[X509_NUM_DN_TYPES];
data/gauche-0.9.6/ext/tls/axTLS/ssl/gen_cert.c:104:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&buf[*offset], ser_oid , sizeof(ser_oid));
data/gauche-0.9.6/ext/tls/axTLS/ssl/gen_cert.c:118:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&buf[*offset], sig_oid, sizeof(sig_oid));
data/gauche-0.9.6/ext/tls/axTLS/ssl/gen_cert.c:158: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 fqdn[128]; 
data/gauche-0.9.6/ext/tls/axTLS/ssl/gen_cert.c:217:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&buf[*offset], time_seq, sizeof(time_seq));
data/gauche-0.9.6/ext/tls/axTLS/ssl/gen_cert.c:244:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&buf[*offset], block, pub_key_size);
data/gauche-0.9.6/ext/tls/axTLS/ssl/gen_cert.c:246:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&buf[*offset], pub_key_seq, sizeof(pub_key_seq));
data/gauche-0.9.6/ext/tls/axTLS/ssl/gen_cert.c:275:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&buf[*offset], rsa_enc_oid, sizeof(rsa_enc_oid));
data/gauche-0.9.6/ext/tls/axTLS/ssl/gen_cert.c:296: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(block, asn1_sig, sizeof(asn1_sig));
data/gauche-0.9.6/ext/tls/axTLS/ssl/gen_cert.c:297: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(&block[sizeof(asn1_sig)], sha_dgst, SHA1_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/ssl/gen_cert.c:305:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&buf[*offset], enc_block, sig_size);
data/gauche-0.9.6/ext/tls/axTLS/ssl/gen_cert.c:363: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(*cert_data, buf, offset);
data/gauche-0.9.6/ext/tls/axTLS/ssl/loader.c:116: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(ssl_obj->buf, data, len);
data/gauche-0.9.6/ext/tls/axTLS/ssl/loader.c:191:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const begins[NUM_PEM_TYPES] =
data/gauche-0.9.6/ext/tls/axTLS/ssl/loader.c:199:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const ends[NUM_PEM_TYPES] =
data/gauche-0.9.6/ext/tls/axTLS/ssl/loader.c:207:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const aes_str[2] =
data/gauche-0.9.6/ext/tls/axTLS/ssl/loader.c:237: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.
    if ((start = strstr((const char *)where, aes_str[0])))         /* AES128? */
data/gauche-0.9.6/ext/tls/axTLS/ssl/loader.c:241:37:  [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.
    else if ((start = strstr((const char *)where, aes_str[1])))    /* AES256? */
data/gauche-0.9.6/ext/tls/axTLS/ssl/openssl.c:140: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(buf, read_buf, ret > num ? num : ret);
data/gauche-0.9.6/ext/tls/axTLS/ssl/openssl.c:197: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(ssl->session_id, (uint8_t *)session, SSL_SESSION_ID_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/ssl/openssl.c:240:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, ssl->bm_data, num);
data/gauche-0.9.6/ext/tls/axTLS/ssl/openssl.c:308:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        return fopen("/dev/null", "r");
data/gauche-0.9.6/ext/tls/axTLS/ssl/os_port.h:79: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).
#undef open
data/gauche-0.9.6/ext/tls/axTLS/ssl/os_port.h:93:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define open(A,B)               _open(A,B)
data/gauche-0.9.6/ext/tls/axTLS/ssl/p12.c:224: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(priv_key, Ai, SHA1_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/ssl/p12.c:288: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(auth_safes, &buf[auth_safes_start], auth_safes_len);
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:963: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 openssl_buf[2048];
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:1551: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 openssl_buf[2048];
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:1692: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(sess_resume->session_id, 
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:2249: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 tmp[5];
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:2264:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(tmp, "%d\n", multi_data->thread_id);
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:2476:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open("stderr.out", O_WRONLY|O_APPEND|O_CREAT, 0655);   /* write stderr to file */
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:394: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(ssl_cert->buf, buf, len);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:695: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(t_buf, (mode == SSL_SERVER_WRITE || mode == SSL_CLIENT_WRITE) ? 
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:697: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(&t_buf[8], hmac_header, SSL_RECORD_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:698: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(&t_buf[8+SSL_RECORD_SIZE], buf, buf_len);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:804: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(&a1[MD5_SIZE], seed, seed_len);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:815: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(a1, a2, MD5_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:832: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(&a1[SHA1_SIZE], seed, seed_len);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:843: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(a1, a2, SHA1_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:860: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(&a1[SHA256_SIZE], seed, seed_len);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:871: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(a1, a2, SHA256_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:917: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((char *)buf, "master secret");
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:918:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&buf[13], ssl->dc->client_random, SSL_RANDOM_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:919:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&buf[45], ssl->dc->server_random, SSL_RANDOM_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:937: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((char *)buf, "key expansion");
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:938:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&buf[13], server_random, SSL_RANDOM_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:939:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&buf[45], client_random, SSL_RANDOM_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:987: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(digest, mac_buf, dgst_len);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:1117: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(ssl->bm_data, in, length);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:1171: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(t_buf + iv_size, ssl->bm_data, msg_length);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:1176: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(ssl->bm_data, t_buf, msg_length);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:1234: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(ssl->client_mac, q, ciph_info->digest_size);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:1241: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(ssl->server_mac, q, ciph_info->digest_size);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:1245: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(client_key, q, ciph_info->key_size);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:1247: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(server_key, q, ciph_info->key_size);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:1250: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(client_iv, q, ciph_info->iv_size);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:1252: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(server_iv, q, ciph_info->iv_size);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:1355: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(ssl->hmac_header, buf, 3);       /* store for hmac */
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:1548: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(ssl->session->master_secret,
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:1711: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(&buf[offset], cert->buf, cert->size);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:1797:21:  [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(ssl->dc->master_secret, 
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1_clnt.c:80: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(ssl->session_id, session_id, sess_id_size);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1_clnt.c:213: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(ssl->dc->client_random, &buf[6], SSL_RANDOM_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1_clnt.c:220: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(&buf[offset], ssl->session_id, ssl->sess_id_size);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1_clnt.c:251: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(&buf[offset], g_sig_alg, sizeof(g_sig_alg));
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1_clnt.c:330: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(ssl->dc->server_random, &buf[6], SSL_RANDOM_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1_clnt.c:344: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(ssl->session->session_id, &buf[offset], sess_id_size);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1_clnt.c:354: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(ssl->session_id, &buf[offset], sess_id_size);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1_clnt.c:496: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(dgst, g_asn1_sha256, sizeof(g_asn1_sha256));
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1_svr.c:146: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(ssl->dc->client_random, &buf[6], SSL_RANDOM_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1_svr.c:313: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(ssl->dc->server_random, &buf[6], SSL_RANDOM_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1_svr.c:321: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(&buf[offset], ssl->session->session_id, SSL_SESSION_ID_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1_svr.c:322: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(ssl->session_id, ssl->session->session_id, SSL_SESSION_ID_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1_svr.c:332: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(ssl->session_id, &buf[offset], SSL_SESSION_ID_SIZE);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1_svr.c:338: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(ssl->session->session_id, 
data/gauche-0.9.6/ext/tls/axTLS/ssl/x509.c:255:25:  [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(x509_ctx->subject_alt_dnsnames[totalnames], 
data/gauche-0.9.6/ext/vport/vport.c:93: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[SCM_CHAR_MAX_BYTES];
data/gauche-0.9.6/ext/vport/vport.c:127: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[SCM_CHAR_MAX_BYTES];
data/gauche-0.9.6/ext/vport/vport.c:169: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(buf, start, buflen);
data/gauche-0.9.6/ext/vport/vport.c:172: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(buf, start, size);
data/gauche-0.9.6/ext/vport/vport.c:242:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char buf[SCM_CHAR_MAX_BYTES];
data/gauche-0.9.6/ext/zlib/gauche-zlib.c:232: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 outbuf[CHUNK];
data/gauche-0.9.6/ext/zlib/gauche-zlib.c:267: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 outbuf[CHUNK];
data/gauche-0.9.6/gc/cord/cordbscs.c:74:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char string[1];
data/gauche-0.9.6/gc/cord/cordbscs.c:167: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(result, x, lenx);
data/gauche-0.9.6/gc/cord/cordbscs.c:168: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(result + lenx, y, leny);
data/gauche-0.9.6/gc/cord/cordbscs.c:198:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(new_right, right, right_len);
data/gauche-0.9.6/gc/cord/cordbscs.c:199:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(new_right + right_len, y, leny);
data/gauche-0.9.6/gc/cord/cordbscs.c:287: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[SHORT_LIMIT+1];
data/gauche-0.9.6/gc/cord/cordbscs.c:298: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(result, buf, len);
data/gauche-0.9.6/gc/cord/cordbscs.c:438:13:  [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[SUBSTR_LIMIT+1];
data/gauche-0.9.6/gc/cord/cordbscs.c:453: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(result, buf, n);
data/gauche-0.9.6/gc/cord/cordprnt.c:197: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 conv_spec[CONV_SPEC_LEN + 1];
data/gauche-0.9.6/gc/cord/cordxtra.c:264: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(result, s, len+1);
data/gauche-0.9.6/gc/cord/cordxtra.c:439: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(s, x[0].ec_buf, len);
data/gauche-0.9.6/gc/cord/cordxtra.c:506: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 data[LINE_SZ];
data/gauche-0.9.6/gc/cord/cordxtra.c:593: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[1];
data/gauche-0.9.6/gc/cord/tests/cordtest.c:169:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((f = fopen(FNAME1, "w")) == 0) ABORT("open failed");
data/gauche-0.9.6/gc/cord/tests/cordtest.c:172:11:  [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).
    f1a = fopen(FNAME1, "rb");
data/gauche-0.9.6/gc/cord/tests/cordtest.c:179:11:  [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).
    f1b = fopen(FNAME1, "rb");
data/gauche-0.9.6/gc/cord/tests/cordtest.c:190:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((f = fopen(FNAME2, "w")) == 0) ABORT("2nd open failed");
data/gauche-0.9.6/gc/cord/tests/cordtest.c:197:10:  [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).
    f2 = fopen(FNAME2, "rb");
data/gauche-0.9.6/gc/cord/tests/cordtest.c:272: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 result2[200];
data/gauche-0.9.6/gc/cord/tests/cordtest.c:295:15:  [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.
        (void)sprintf(result2, "->%-120.78s!\n", CORD_to_char_star(x));
data/gauche-0.9.6/gc/cord/tests/de.c:514:28:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                if ((out = fopen(CORD_to_const_char_star(name), "wb")) == NULL
data/gauche-0.9.6/gc/cord/tests/de.c:554:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((f = fopen(arg_file_name, "rb")) == NULL) {
data/gauche-0.9.6/gc/cord/tests/de_win.c:128:31:  [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.
       if (iscntrl(((unsigned char *)text)[i])) {
data/gauche-0.9.6/gc/cord/tests/de_win.c:147:31:  [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.
       if (iscntrl(((unsigned char *)text)[i])) {
data/gauche-0.9.6/gc/dbg_mlc.c:368: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[GC_TYPE_DESCR_LEN + 1];
data/gauche-0.9.6/gc/dyn_load.c:384: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.
                    GC_add_roots_inner((char *)start,
data/gauche-0.9.6/gc/dyn_load.c:802:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[30];
data/gauche-0.9.6/gc/dyn_load.c:822:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fd = open(buf, O_RDONLY);
data/gauche-0.9.6/gc/dyn_load.c:1210:11:  [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 ldibuf[ldibuflen];
data/gauche-0.9.6/gc/dyn_load.c:1343: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 secnam[16];
data/gauche-0.9.6/gc/dyn_load.c:1396: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 secnam[16];
data/gauche-0.9.6/gc/extra/msvc_dbg.c:80: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 filePath[_MAX_PATH];
data/gauche-0.9.6/gc/extra/msvc_dbg.c:81: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 curDir[_MAX_PATH];
data/gauche-0.9.6/gc/extra/msvc_dbg.c:82: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 exePath[_MAX_PATH];
data/gauche-0.9.6/gc/extra/msvc_dbg.c:92: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(exePath, "\\..");
data/gauche-0.9.6/gc/extra/msvc_dbg.c:221: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 symNameBuffer[sizeof(IMAGEHLP_SYMBOL) + MAX_SYM_NAME];
data/gauche-0.9.6/gc/extra/msvc_dbg.c:231: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 undName[1024];
data/gauche-0.9.6/gc/extra/msvc_dbg.c:319: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 str[128];
data/gauche-0.9.6/gc/extra/symbian.cpp:49: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( copyChar, path8.PtrZ(), size );
data/gauche-0.9.6/gc/include/cord_pos.h:53: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 function_buf[FUNCTION_BUF_SZ]; /* Space for next few chars     */
data/gauche-0.9.6/gc/include/ec.h:40: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 ec_buf[CORD_BUFSZ+1];
data/gauche-0.9.6/gc/include/private/gc_priv.h:477:12:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#   define bcopy(x,y,n) BlockMoveData(x, y, n)
data/gauche-0.9.6/gc/include/private/gc_priv.h:484:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#   define BCOPY(x,y,n) memcpy(y, x, (size_t)(n))
data/gauche-0.9.6/gc/include/private/gc_priv.h:487:25:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#   define BCOPY(x,y,n) bcopy((void *)(x),(void *)(y),(size_t)(n))
data/gauche-0.9.6/gc/include/private/gc_priv.h:1050: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 _hb_marks[MARK_BITS_SZ];
data/gauche-0.9.6/gc/include/private/gc_priv.h:1078: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 hb_body[HBLKSIZE];
data/gauche-0.9.6/gc/include/private/gc_priv.h:1260: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 _modws_valid_offsets[sizeof(word)];
data/gauche-0.9.6/gc/include/private/gc_priv.h:1317: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 _valid_offsets[VALID_OFFSET_SZ];
data/gauche-0.9.6/gc/include/private/gc_priv.h:2429:19:  [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.
    do { if (0) { char j[(expr)? 1 : -1]; j[0]='\0'; j[0]=j[0]; } } while(0)
data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops/sysdeps/standard_ao_double_t.h:79: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 dummy[sizeof(AO_double_t) == 2 * sizeof(AO_t) ? 1 : -1];
data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops_malloc.c:81: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 AO_initial_heap[AO_INITIAL_HEAP_SIZE];
data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops_malloc.c:144:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    zero_fd = open("/dev/zero", O_RDONLY);
data/gauche-0.9.6/gc/libatomic_ops/src/atomic_ops_malloc.c:267: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.
static const unsigned char msbs[16] = {
data/gauche-0.9.6/gc/libatomic_ops/tests/test_malloc.c:234:18:  [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).
      nthreads = atoi(argv[1]);
data/gauche-0.9.6/gc/libatomic_ops/tests/test_stack.c:116: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 marks[MAX_NTHREADS * (MAX_NTHREADS + 1) / 2 + 1];
data/gauche-0.9.6/gc/libatomic_ops/tests/test_stack.c:233:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      max_nthreads = atoi(argv[1]);
data/gauche-0.9.6/gc/misc.c:668:7:  [2] (buffer) TCHAR:
  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.
      TCHAR path[_MAX_PATH + 0x10]; /* buffer for path + ext */
data/gauche-0.9.6/gc/misc.c:986:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            int log_d = open(file_name, O_CREAT|O_WRONLY|O_APPEND, 0666);
data/gauche-0.9.6/gc/misc.c:1021:27:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          GC_backtraces = atol(backtraces_string);
data/gauche-0.9.6/gc/misc.c:1073:29:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          long time_limit = atol(time_limit_string);
data/gauche-0.9.6/gc/misc.c:1087:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          int full_freq = atoi(full_freq_string);
data/gauche-0.9.6/gc/misc.c:1096:25:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        long interval = atol(interval_string);
data/gauche-0.9.6/gc/misc.c:1108:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          int space_divisor = atoi(space_divisor_string);
data/gauche-0.9.6/gc/misc.c:1121:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            int unmap_threshold = atoi(string);
data/gauche-0.9.6/gc/misc.c:1418:7:  [2] (buffer) TCHAR:
  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.
      TCHAR pathBuf[_MAX_PATH + 0x10]; /* buffer for path + ext */
data/gauche-0.9.6/gc/misc.c:1639: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 buf[BUFSZ + 1];
data/gauche-0.9.6/gc/misc.c:1654:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSZ + 1];
data/gauche-0.9.6/gc/misc.c:1662:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSZ + 1];
data/gauche-0.9.6/gc/misc.c:1681:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSZ + 1];
data/gauche-0.9.6/gc/misc.c:1689:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSZ + 1];
data/gauche-0.9.6/gc/misc.c:1697:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSZ + 1];
data/gauche-0.9.6/gc/os_dep.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 buf[GET_FILE_LEN_BUF_SZ];
data/gauche-0.9.6/gc/os_dep.c:151:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int f = open("/proc/self/maps", O_RDONLY);
data/gauche-0.9.6/gc/os_dep.c:217:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            f = open("/proc/self/maps", O_RDONLY);
data/gauche-0.9.6/gc/os_dep.c:477: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 ecos_gc_memory[ECOS_GC_MEMORY_SIZE];
data/gauche-0.9.6/gc/os_dep.c:633: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       magic_number[2];
data/gauche-0.9.6/gc/os_dep.c:1101: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 stat_buf[STAT_BUF_SIZE];
data/gauche-0.9.6/gc/os_dep.c:1130:9:  [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).
    f = open("/proc/self/stat", O_RDONLY);
data/gauche-0.9.6/gc/os_dep.c:1548: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).
    myexefile = fopen(path, "rb");
data/gauche-0.9.6/gc/os_dep.c:2128:23:  [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).
            zero_fd = open(path, O_RDWR | O_CREAT, 0666);
data/gauche-0.9.6/gc/os_dep.c:2132:21:  [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).
          zero_fd = open("/dev/zero", O_RDONLY);
data/gauche-0.9.6/gc/os_dep.c:3622:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[40];
data/gauche-0.9.6/gc/os_dep.c:3633:18:  [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).
    GC_proc_fd = open(buf, O_RDONLY);
data/gauche-0.9.6/gc/os_dep.c:3985: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 data[256];
data/gauche-0.9.6/gc/os_dep.c:3990: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 data[1024];
data/gauche-0.9.6/gc/os_dep.c:4640:11:  [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[40];
data/gauche-0.9.6/gc/os_dep.c:4661: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.
                static char exe_name[EXE_SZ];
data/gauche-0.9.6/gc/os_dep.c:4663: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.
                char cmd_buf[CMD_SZ];
data/gauche-0.9.6/gc/os_dep.c:4665: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.
                static char result_buf[RESULT_SZ];
data/gauche-0.9.6/gc/os_dep.c:4669: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.
                char preload_buf[PRELOAD_SZ];
data/gauche-0.9.6/gc/pthread_support.c:899: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 stat_buf[STAT_BUF_SIZE];
data/gauche-0.9.6/gc/pthread_support.c:903:9:  [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).
    f = open("/proc/stat", O_RDONLY);
data/gauche-0.9.6/gc/pthread_support.c:919:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int cpu_no = atoi(&stat_buf[i + 4]);
data/gauche-0.9.6/gc/pthread_support.c:969: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 stat_buf[16];
data/gauche-0.9.6/gc/pthread_support.c:973:9:  [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).
    f = open("/sys/devices/system/cpu/present", O_RDONLY);
data/gauche-0.9.6/gc/pthread_support.c:992:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return atoi(&stat_buf[2]) + 1; /* skip "0-" and parse max_cpu_num */
data/gauche-0.9.6/gc/pthread_support.c:1214:44:  [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).
    if (nprocs_string != NULL) GC_nprocs = atoi(nprocs_string);
data/gauche-0.9.6/gc/pthread_support.c:1238:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          markers = atoi(markers_string);
data/gauche-0.9.6/gc/tests/disclaim_bench.c:92: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 const *model_str[3] = {
data/gauche-0.9.6/gc/tests/disclaim_bench.c:115:54:  [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).
        model_min = model_max = (int)COVERT_DATAFLOW(atoi(argv[1]));
data/gauche-0.9.6/gc/tests/disclaim_test.c:88: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 magic[16];
data/gauche-0.9.6/gc/tests/smash_test.c:12: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 * A[COUNT];
data/gauche-0.9.6/gc/tests/test_cpp.cc:277:38:  [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 = (int)COVERT_DATAFLOW(atoi(argv[1]))) <= 0) {
data/gauche-0.9.6/gc/tools/if_not_there.c:23:9:  [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(fname, "rb");
data/gauche-0.9.6/gc/tools/if_not_there.c:28:9:  [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(fname, "r");
data/gauche-0.9.6/gc/win32_threads.c:2442:19:  [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).
        markers = atoi(markers_string);
data/gauche-0.9.6/src/char.c:214: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.
static const unsigned char ctypes[128] = {
data/gauche-0.9.6/src/char.c:1165: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 name[MAX_CHARSET_NAME_LEN+1];
data/gauche-0.9.6/src/class.c:1152: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(dst, src, base->coreSize);
data/gauche-0.9.6/src/class.c:2714: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(nm->argv, argv, sizeof(ScmObj)*argc);
data/gauche-0.9.6/src/class.c:3247:13:  [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(metaname+nlen-1, "-meta>");
data/gauche-0.9.6/src/class.c:3250:13:  [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(metaname, "-meta");
data/gauche-0.9.6/src/code.c:95:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dest, src, sizeof(ScmCompiledCode));
data/gauche-0.9.6/src/core.c:550: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[PATH_MAX];
data/gauche-0.9.6/src/core.c:562: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[PATH_MAX];
data/gauche-0.9.6/src/core.c:574: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[PATH_MAX];
data/gauche-0.9.6/src/core.c:586: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[PATH_MAX];
data/gauche-0.9.6/src/core.c:609: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[PATH_MAX];
data/gauche-0.9.6/src/dl_win.c:50:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[80];
data/gauche-0.9.6/src/gauche/bytes_inline.h:60: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.
typedef union { char buf[2]; int16_t val; }      swap_s16_t;
data/gauche-0.9.6/src/gauche/bytes_inline.h:61: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.
typedef union { char buf[2]; uint16_t val; }     swap_u16_t;
data/gauche-0.9.6/src/gauche/bytes_inline.h:62: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.
typedef union { char buf[4]; int32_t val; }      swap_s32_t;
data/gauche-0.9.6/src/gauche/bytes_inline.h:63: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.
typedef union { char buf[4]; uint32_t val; }     swap_u32_t;
data/gauche-0.9.6/src/gauche/bytes_inline.h:64: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.
typedef union { char buf[8]; ScmInt64 val; }     swap_s64_t;
data/gauche-0.9.6/src/gauche/bytes_inline.h:65: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.
typedef union { char buf[8]; ScmUInt64 val; }    swap_u64_t;
data/gauche-0.9.6/src/gauche/bytes_inline.h:67: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.
typedef union { char buf[2]; ScmHalfFloat val; } swap_f16_t;
data/gauche-0.9.6/src/gauche/bytes_inline.h:68: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.
typedef union { char buf[4]; float val; }        swap_f32_t;
data/gauche-0.9.6/src/gauche/bytes_inline.h:69: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.
typedef union { char buf[8]; double val; }       swap_f64_t;
data/gauche-0.9.6/src/gauche/char_utf_8.h:153: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 Scm_CharSizeTable[256] = {
data/gauche-0.9.6/src/gauche/port.h:142: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 scratch[SCM_CHAR_MAX_BYTES]; /* incomplete buffer */
data/gauche-0.9.6/src/gauche/string.h:313: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 data[SCM_DSTRING_INIT_CHUNK_SIZE]; /* variable length, indeed. */
data/gauche-0.9.6/src/gauche/vm.h:344: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 dummy[NSIG];
data/gauche-0.9.6/src/gauche/vm.h:351: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 sigcounts[SCM_NSIG];
data/gauche-0.9.6/src/gauche/win-compat.h:187:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define open(path, ...)    _wopen(Scm_MBS2WCS(path), __VA_ARGS__)
data/gauche-0.9.6/src/getdir_win.c:15:5:  [2] (buffer) TCHAR:
  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.
    TCHAR path[MAX_PATH];
data/gauche-0.9.6/src/libio.c:8659:1:  [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)->src).buf.end,SCM_STRING_BODY_START(b),siz);
data/gauche-0.9.6/src/libio.c:9638: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.
{ScmDString ds;char buf[1024];
data/gauche-0.9.6/src/libsys.c:6193: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).
SCM_SYSCALL(fd,mkstemp(nam));
data/gauche-0.9.6/src/libsys.c:6274:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
{char buf[(L_ctermid)+(1)];
data/gauche-0.9.6/src/libsys.c:6704:1:  [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(pcopy,path,(size)-(1));
data/gauche-0.9.6/src/libsys.c:7536:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
{char tmpbuf[256];
data/gauche-0.9.6/src/libsys.c:8884:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
{char buf[HOSTNAMELEN];int r;
data/gauche-0.9.6/src/libsys.c:8913:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
{char buf[HOSTNAMELEN];int r;
data/gauche-0.9.6/src/libsys.c:8980:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
{char buf[1024];int n;
data/gauche-0.9.6/src/libvec.c:1864:1:  [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((SCM_VECTOR_ELEMENTS(dst))+(j),SCM_VECTOR_ELEMENTS(v),
data/gauche-0.9.6/src/main.c:431:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/gauche-0.9.6/src/main.c:438:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((in_fd  = open("NUL", O_RDONLY)) < 0) ERR("couldn't open NUL: %s");
data/gauche-0.9.6/src/main.c:439:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((out_fd = open("NUL", O_WRONLY)) < 0) ERR("couldn't open NUL: %s");
data/gauche-0.9.6/src/number.c:3398: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(r, src, end);
data/gauche-0.9.6/src/number.c:3707: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 zbuf[6];
data/gauche-0.9.6/src/number.c:3708: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(zbuf, "%d", (int)est);
data/gauche-0.9.6/src/number.c:3723:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[FLT_BUF];
data/gauche-0.9.6/src/number.c:3745:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[FLT_BUF];
data/gauche-0.9.6/src/port.c:740: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->src.buf.current, src, siz);
data/gauche-0.9.6/src/port.c:744: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->src.buf.current, src, room);
data/gauche-0.9.6/src/port.c:803: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(dst, p->src.buf.current, req);
data/gauche-0.9.6/src/port.c:824: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(dst, p->src.buf.current, siz);
data/gauche-0.9.6/src/port.c:829: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(dst, p->src.buf.current, r);
data/gauche-0.9.6/src/port.c:1171:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(path, flags, perm);
data/gauche-0.9.6/src/port.c:1312: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 cbuf[SCM_CHAR_MAX_BYTES];
data/gauche-0.9.6/src/port.c:1347: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(b, p, psiz);
data/gauche-0.9.6/src/port.c:1348: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(b+psiz, s, ssiz);
data/gauche-0.9.6/src/port.c:1608: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(datptr, data->pbuf, data->pbufsize);
data/gauche-0.9.6/src/port.c:1614: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(datptr, data->pbuf, cnt);
data/gauche-0.9.6/src/portapi.c:450:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[SCM_CHAR_MAX_BYTES];
data/gauche-0.9.6/src/portapi.c:558: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 tbuf[SCM_CHAR_MAX_BYTES];
data/gauche-0.9.6/src/portapi.c:562: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(tbuf, p->scratch, curr);
data/gauche-0.9.6/src/portapi.c:582: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->scratch, tbuf+1, nb);
data/gauche-0.9.6/src/portapi.c:632:17:  [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->scratch, p->src.buf.current-1, p->scrcnt);
data/gauche-0.9.6/src/portapi.c:644:25:  [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->scratch+p->scrcnt, p->src.buf.current, rest);
data/gauche-0.9.6/src/portapi.c:649:25:  [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->scratch+p->scrcnt, p->src.buf.current, filled);
data/gauche-0.9.6/src/portapi.c:727: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(buf, p->scratch, buflen);
data/gauche-0.9.6/src/portapi.c:732: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(buf, p->scratch, p->scrcnt);
data/gauche-0.9.6/src/portapi.c:748: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(buf, p->src.istr.current, siz);
data/gauche-0.9.6/src/portapi.c:752: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(buf, p->src.istr.current, buflen);
data/gauche-0.9.6/src/read.c:1710: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[SCM_CHAR_MAX_BYTES*4], *bufp = buf;
data/gauche-0.9.6/src/regexp.c:1260:13:  [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 chbuf[SCM_CHAR_MAX_BYTES];
data/gauche-0.9.6/src/regexp.c:1401:13:  [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 chbuf[SCM_CHAR_MAX_BYTES];
data/gauche-0.9.6/src/regexp.c:1508: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.
                    char chbuf[SCM_CHAR_MAX_BYTES];
data/gauche-0.9.6/src/signal.c:473: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 sigcounts[SCM_NSIG]; /* copy of signal counter */
data/gauche-0.9.6/src/signal.c:479: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(sigcounts, vm->sigq.sigcounts, SCM_NSIG * sizeof(unsigned char));
data/gauche-0.9.6/src/string.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(dst, src, size);
data/gauche-0.9.6/src/string.c:497:37:  [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.
        return (ScmChar)(((unsigned char *)SCM_STRING_BODY_START(b))[pos]);
data/gauche-0.9.6/src/string.c:565: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(p, xb->start, sizex);
data/gauche-0.9.6/src/string.c:566: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(p+sizex, yb->start, sizey);
data/gauche-0.9.6/src/string.c:589: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(p, xb->start, sizex);
data/gauche-0.9.6/src/string.c:590: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(p+sizex, str, sizey);
data/gauche-0.9.6/src/string.c:640: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(bufp, SCM_STRING_BODY_START(b), SCM_STRING_BODY_SIZE(b));
data/gauche-0.9.6/src/string.c:708: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(bufp, SCM_STRING_BODY_START(dbody), dsize);
data/gauche-0.9.6/src/string.c:713: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(bufp, SCM_STRING_BODY_START(b), SCM_STRING_BODY_SIZE(b));
data/gauche-0.9.6/src/string.c:716: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(bufp, SCM_STRING_BODY_START(dbody), dsize);
data/gauche-0.9.6/src/string.c:721: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(bufp, SCM_STRING_BODY_START(dbody), dsize);
data/gauche-0.9.6/src/string.c:831: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 shift[256];
data/gauche-0.9.6/src/string.c:848: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 shift[256];
data/gauche-0.9.6/src/string.c:1124:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[SCM_CHAR_MAX_BYTES];
data/gauche-0.9.6/src/string.c:1149:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[SCM_CHAR_MAX_BYTES];
data/gauche-0.9.6/src/string.c:1174:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[SCM_CHAR_MAX_BYTES];
data/gauche-0.9.6/src/string.c:1317:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[6];
data/gauche-0.9.6/src/string.c:1648: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(bptr, dstr->init.data, dstr->init.bytes);
data/gauche-0.9.6/src/string.c:1651: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(bptr, chain->chunk->data, chain->chunk->bytes);
data/gauche-0.9.6/src/string.c:1688: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(bptr, dstr->init.data, dstr->init.bytes);
data/gauche-0.9.6/src/string.c:1691: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(bptr, chain->chunk->data, chain->chunk->bytes);
data/gauche-0.9.6/src/string.c:1730: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(dstr->current, str, size);
data/gauche-0.9.6/src/string.c:1747: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(dstr->current, SCM_STRING_BODY_START(b), size);
data/gauche-0.9.6/src/symbol.c:159: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 numbuf[50];
data/gauche-0.9.6/src/system.c:589:5:  [2] (buffer) TCHAR:
  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.
    TCHAR buf[TMP_PATH_MAX+1], *tbuf = buf;
data/gauche-0.9.6/src/system.c:668: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 p[3] = "x:";
data/gauche-0.9.6/src/system.c:704: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 suffix[7];
data/gauche-0.9.6/src/system.c:707: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(templat+siz-6, suffix, 7);
data/gauche-0.9.6/src/system.c:727: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, t, siz);
data/gauche-0.9.6/src/system.c:728: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 + siz, "XXXXXX", 6);
data/gauche-0.9.6/src/system.c:743:23:  [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).
    SCM_SYSCALL(*fdp, open(templat, flags, 0600));
data/gauche-0.9.6/src/system.c:753:21:  [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).
    SCM_SYSCALL(fd, mkstemp(templat));
data/gauche-0.9.6/src/system.c:765: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 name[MKXTEMP_PATH_MAX];
data/gauche-0.9.6/src/system.c:790: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 name[MKXTEMP_PATH_MAX];
data/gauche-0.9.6/src/system.c:1270:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[TM_BUFSIZ];
data/gauche-0.9.6/src/system.c:1770:9:  [2] (buffer) TCHAR:
  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.
        TCHAR  program_path[MAX_PATH+1], *filepart;
data/gauche-0.9.6/src/system.c:2468:5:  [2] (buffer) TCHAR:
  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.
    TCHAR sbuf[ENV_BUFSIZ], *buf=sbuf;
data/gauche-0.9.6/src/system.c:2478: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(buf, cp, size*sizeof(TCHAR));
data/gauche-0.9.6/src/system.c:2725:5:  [2] (buffer) TCHAR:
  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.
    TCHAR buf[NAMELENGTH];
data/gauche-0.9.6/src/system.c:2779:12:  [2] (buffer) TCHAR:
  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 TCHAR buf[256]; /* this isn't thread-safe, but getlogin() is
data/gauche-0.9.6/src/vector.c:474: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(z, array, size*sizeof(T));                                   \
data/gauche-0.9.6/src/vector.c:592:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[50];
data/gauche-0.9.6/src/vector.c:605:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[50];
data/gauche-0.9.6/src/vm.c:1860: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(array, vm->vals, sizeof(ScmObj)*(vm->numVals-1));
data/gauche-0.9.6/src/vm.c:1876: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(vm->vals, data[2], sizeof(ScmObj)*(nvals-1));
data/gauche-0.9.6/src/vmcall.c:308: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(SP, n->argv, sizeof(ScmObj)*n->argc);
data/gauche-0.9.6/src/win-compat.c:22:14:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    int nc = MultiByteToWideChar(CP_UTF8, 0, s, -1, NULL, 0);
data/gauche-0.9.6/src/win-compat.c:32:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    if (MultiByteToWideChar(CP_UTF8, 0, s, -1, wb, nc) == 0) {
data/gauche-0.9.6/src/write.c:383: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[SPBUFSIZ];
data/gauche-0.9.6/src/write.c:449: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[SPBUFSIZ];
data/gauche-0.9.6/src/write.c:468: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[SPBUFSIZ];
data/gauche-0.9.6/src/write.c:551: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 numbuf[50];  /* enough to contain long number */
data/gauche-0.9.6/src/write.c:942:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[SPBUFSIZ];
data/gauche-0.9.6/ext/bcrypt/wrapper.c:388:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (setting && strlen(hash) < 30) /* not for benchmark */
data/gauche-0.9.6/ext/bcrypt/wrapper.c:427:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int ok = !setting || strlen(hash) >= 30;
data/gauche-0.9.6/ext/net/net.c:645:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ifr->ifr_name, Scm_GetStringConst(SCM_STRING(data)), IFNAMSIZ-1);
data/gauche-0.9.6/ext/net/net.c:809:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t ressize = strlen(res);
data/gauche-0.9.6/ext/tls/axTLS/crypto/bigint.c:654: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).
    int size = strlen(data);
data/gauche-0.9.6/ext/tls/axTLS/crypto/crypto_misc.c:236:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(rng_fd, rand_data, num_rand_bytes) < 0) {
data/gauche-0.9.6/ext/tls/axTLS/ssl/gen_cert.c:126:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int name_size = strlen(name);
data/gauche-0.9.6/ext/tls/axTLS/ssl/gen_cert.c:162:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (dn[X509_COMMON_NAME] == NULL || strlen(dn[X509_COMMON_NAME]) == 0)
data/gauche-0.9.6/ext/tls/axTLS/ssl/gen_cert.c:166:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        fqdn_len = strlen(fqdn);
data/gauche-0.9.6/ext/tls/axTLS/ssl/gen_cert.c:175:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        fqdn_len = strlen(fqdn);
data/gauche-0.9.6/ext/tls/axTLS/ssl/gen_cert.c:186: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).
    if (dn[X509_ORGANIZATION] != NULL && strlen(dn[X509_ORGANIZATION]) > 0)
data/gauche-0.9.6/ext/tls/axTLS/ssl/gen_cert.c:193: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).
                                strlen(dn[X509_ORGANIZATIONAL_UNIT]) > 0)
data/gauche-0.9.6/ext/tls/axTLS/ssl/loader.c:229:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (password == NULL || strlen(password) == 0)
data/gauche-0.9.6/ext/tls/axTLS/ssl/loader.c:239: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).
        start += strlen(aes_str[0]);
data/gauche-0.9.6/ext/tls/axTLS/ssl/loader.c:244: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).
        start += strlen(aes_str[1]);
data/gauche-0.9.6/ext/tls/axTLS/ssl/loader.c:273:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    MD5_Update(&md5_ctx, (const uint8_t *)password, strlen(password));
data/gauche-0.9.6/ext/tls/axTLS/ssl/loader.c:281:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        MD5_Update(&md5_ctx, (const uint8_t *)password, strlen(password));
data/gauche-0.9.6/ext/tls/axTLS/ssl/loader.c:316:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                start += strlen(begins[i]);
data/gauche-0.9.6/ext/tls/axTLS/ssl/loader.c:372:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                end += strlen(ends[i]);
data/gauche-0.9.6/ext/tls/axTLS/ssl/loader.c:373: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).
                remain -= strlen(ends[i]);
data/gauche-0.9.6/ext/tls/axTLS/ssl/loader.c:433: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).
    if (strlen(CONFIG_SSL_PRIVATE_KEY_LOCATION) > 0)
data/gauche-0.9.6/ext/tls/axTLS/ssl/loader.c:462: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).
    if (strlen(CONFIG_SSL_X509_CERT_LOCATION))
data/gauche-0.9.6/ext/tls/axTLS/ssl/os_port.h:97:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read(A,B,C)             _read(A,B,C)
data/gauche-0.9.6/ext/tls/axTLS/ssl/os_port.h:100:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#define usleep(A)               Sleep(A/1000)
data/gauche-0.9.6/ext/tls/axTLS/ssl/os_port.h:154:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define SOCKET_READ(A,B,C)      read(A,B,C)
data/gauche-0.9.6/ext/tls/axTLS/ssl/p12.c:168: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).
    uni_pass = (char *)malloc((strlen(password)+1)*2);
data/gauche-0.9.6/ext/tls/axTLS/ssl/p12.c:171:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (i = 0; i < (int)strlen(password); i++)
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/perf_bigint.c:71:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    bi_data = bi_import(ctx, (uint8_t *)plaintext, strlen(plaintext));
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/perf_bigint.c:109:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    bi_data = bi_import(ctx, (uint8_t *)plaintext, strlen(plaintext));
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/perf_bigint.c:149:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    bi_data = bi_import(ctx, (uint8_t *)plaintext, strlen(plaintext));
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/perf_bigint.c:192:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    bi_data = bi_import(ctx, (uint8_t *)plaintext, strlen(plaintext));
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:198:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        SHA1_Update(&ctx, (const uint8_t *)in_str, strlen(in_str));
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:216:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        SHA1_Update(&ctx, (const uint8_t *)in_str, strlen(in_str));
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:252:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        SHA256_Update(&ctx, (const uint8_t *)in_str, strlen(in_str));
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:270:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        SHA256_Update(&ctx, (const uint8_t *)in_str, strlen(in_str));
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:306:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        SHA384_Update(&ctx, (const uint8_t *)in_str, strlen(in_str));
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:324:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        SHA384_Update(&ctx, (const uint8_t *)in_str, strlen(in_str));
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:359:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        SHA512_Update(&ctx, (const uint8_t *)in_str, strlen(in_str));
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:377:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        SHA512_Update(&ctx, (const uint8_t *)in_str, strlen(in_str));
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:412:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        MD5_Update(&ctx, (const uint8_t *)in_str, strlen(in_str));
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:430:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        MD5_Update(&ctx, (const uint8_t *)in_str, strlen(in_str));
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:609:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    bi_data = bi_import(ctx, (uint8_t *)plaintext, strlen(plaintext));
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:689:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            (const uint8_t *)plaintext, strlen(plaintext));
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:699: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).
    if (memcmp(dec_data, plaintext, strlen(plaintext)))
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:964:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(200000);           /* allow server to start */
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:1610:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(200000);           /* allow server to start */
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:1722:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(200000);           /* allow openssl to say something */
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:1989:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(200000);           /* allow server to start */
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:2109:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(200000);           /* allow server to start */
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:2254:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(200000);
data/gauche-0.9.6/ext/tls/axTLS/ssl/test/ssltest.c:2266:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        ssl_write(ssl, (uint8_t *)tmp, strlen(tmp)+1);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1.c:957: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).
        q += strlen(label);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1_clnt.c:261: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).
            size_t host_len = strlen(ssl->extensions->host_name);
data/gauche-0.9.6/ext/tls/axTLS/ssl/tls1_clnt.c:271:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy((char*) &buf[offset], ssl->extensions->host_name, host_len);
data/gauche-0.9.6/ext/tls/gauche-tls.h:97:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ScmObj (*read)(ScmTLS*);
data/gauche-0.9.6/ext/tls/tls-mbed.c:107: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).
			     (const unsigned char *)pers, strlen(pers)) != 0) {
data/gauche-0.9.6/ext/tls/tls-mbed.c:164: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).
			     (const unsigned char *)pers, strlen(pers)) != 0) {
data/gauche-0.9.6/ext/tls/tls.c:128:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return (t->read)(t);
data/gauche-0.9.6/ext/vport/vport.c:419:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
VPORT_ACC(getc)
data/gauche-0.9.6/ext/vport/vport.c:436:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    VPORT_SLOT(getc),
data/gauche-0.9.6/ext/vport/vport.c:457:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    VPORT_SLOT(getc),
data/gauche-0.9.6/gc/cord/cordbscs.c:95:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define GEN_LEN(s) (CORD_IS_STRING(s) ? strlen(s) : LEN(s))
data/gauche-0.9.6/gc/cord/cordbscs.c:161: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).
        lenx = strlen(x);
data/gauche-0.9.6/gc/cord/cordbscs.c:192:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                right_len = strlen(right);
data/gauche-0.9.6/gc/cord/cordbscs.c:248:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        return(CORD_cat_char_star(x, y, strlen(y)));
data/gauche-0.9.6/gc/cord/cordbscs.c:250: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).
        lenx = strlen(x);
data/gauche-0.9.6/gc/cord/cordbscs.c:384:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(result, x+i, n);
data/gauche-0.9.6/gc/cord/cordprnt.c:357:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        len = strlen(buf);
data/gauche-0.9.6/gc/cord/cordxtra.c:259:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(s);
data/gauche-0.9.6/gc/cord/cordxtra.c:338: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).
        d -> pos += strlen(s);
data/gauche-0.9.6/gc/cord/cordxtra.c:396: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).
        slen = strlen(s);
data/gauche-0.9.6/gc/cord/cordxtra.c:467:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int c = getc(f);
data/gauche-0.9.6/gc/cord/cordxtra.c:476:25:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            while ((c = getc(f)) == 0) count++;
data/gauche-0.9.6/gc/cord/tests/de.c:63:50:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#       define de_error(s) { fprintf(stderr, s); getchar(); }
data/gauche-0.9.6/gc/cord/tests/de.c:602:17:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getchar()) != QUIT) {
data/gauche-0.9.6/gc/cord/tests/de_win.c:332:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                control, (int)strlen(control));
data/gauche-0.9.6/gc/dbg_mlc.c:686:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  lb = strlen(str) + 1;
data/gauche-0.9.6/gc/dbg_mlc.c:702: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).
  size_t len = strlen(str); /* str is expected to be non-NULL  */
data/gauche-0.9.6/gc/dbg_mlc.c:723:18:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t lb = (wcslen(str) + 1) * sizeof(wchar_t);
data/gauche-0.9.6/gc/extra/msvc_dbg.c:196:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(moduleName, sourceName, size)[size - 1] = 0;
data/gauche-0.9.6/gc/extra/msvc_dbg.c:198: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).
    return strlen(sourceName);
data/gauche-0.9.6/gc/extra/msvc_dbg.c:242:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(symbolName, sourceName, size)[size - 1] = 0;
data/gauche-0.9.6/gc/extra/msvc_dbg.c:244: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).
      return strlen(sourceName);
data/gauche-0.9.6/gc/extra/msvc_dbg.c:287:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(fileName, sourceName, size)[size - 1] = 0;
data/gauche-0.9.6/gc/extra/msvc_dbg.c:289: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).
    return strlen(sourceName);
data/gauche-0.9.6/gc/extra/msvc_dbg.c:323:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(buffer, str, size)[size - 1] = 0;
data/gauche-0.9.6/gc/extra/msvc_dbg.c:325:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    buffer += strlen(str);
data/gauche-0.9.6/gc/extra/msvc_dbg.c:330:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(buffer, "at ", size)[size - 1] = 0;
data/gauche-0.9.6/gc/extra/msvc_dbg.c:332: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).
  buffer += strlen("at ");
data/gauche-0.9.6/gc/extra/msvc_dbg.c:339:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(buffer, " in ", size)[size - 1] = 0;
data/gauche-0.9.6/gc/extra/msvc_dbg.c:341: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).
  buffer += strlen(" in ");
data/gauche-0.9.6/gc/include/leak_detector.h:55:8:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
#undef memalign
data/gauche-0.9.6/gc/include/leak_detector.h:56:9:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
#define memalign(a,n) GC_memalign(a,n)
data/gauche-0.9.6/gc/malloc.c:466: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).
      size_t lb = strlen(s) + 1;
data/gauche-0.9.6/gc/malloc.c:485:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen(str);
data/gauche-0.9.6/gc/mallocx.c:521:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  lb = strlen(s) + 1;
data/gauche-0.9.6/gc/mallocx.c:535: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).
  size_t len = strlen(str); /* str is expected to be non-NULL  */
data/gauche-0.9.6/gc/mallocx.c:555:18:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t lb = (wcslen(str) + 1) * sizeof(wchar_t);
data/gauche-0.9.6/gc/misc.c:731:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    namelen = strlen(name);
data/gauche-0.9.6/gc/misc.c:735: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).
         p != end_of_content; p += strlen(p) + 1) {
data/gauche-0.9.6/gc/misc.c:1503:24:  [1] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120). Risk is very
  low, the length appears to be in characters not bytes.
                  wbuf[MultiByteToWideChar(CP_ACP, 0 /* dwFlags */,
data/gauche-0.9.6/gc/misc.c:1643: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).
        (void)WRITE(GC_stdout, buf, strlen(buf));
data/gauche-0.9.6/gc/misc.c:1646:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (WRITE(GC_stdout, buf, strlen(buf)) < 0)
data/gauche-0.9.6/gc/misc.c:1666: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).
      (void)WRITE(GC_log, buf, strlen(buf));
data/gauche-0.9.6/gc/misc.c:1668: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).
      if (WRITE(GC_log, buf, strlen(buf)) < 0)
data/gauche-0.9.6/gc/misc.c:1707: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).
    (void)WRITE(GC_stderr, s, strlen(s)); /* ignore errors */
data/gauche-0.9.6/gc/misc.c:1777:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (WRITE(GC_stderr, (void *)msg, strlen(msg)) >= 0)
data/gauche-0.9.6/gc/os_dep.c:111:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define READ read
data/gauche-0.9.6/gc/os_dep.c:142:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        result = read(f, buf, GET_FILE_LEN_BUF_SZ);
data/gauche-0.9.6/gc/os_dep.c:352:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t nm_len = strlen(nm);
data/gauche-0.9.6/gc/os_dep.c:1098:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#     define STAT_READ read
data/gauche-0.9.6/gc/os_dep.c:3647:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define READ read
data/gauche-0.9.6/gc/os_dep.c:4695: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).
                  size_t old_len = strlen(old_preload);
data/gauche-0.9.6/gc/pthread_stop_world.c:809:11:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
          usleep(WAIT_UNIT);
data/gauche-0.9.6/gc/pthread_support.c:867:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define STAT_READ read
data/gauche-0.9.6/gc/tools/if_mach.c:12: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).
    if (strlen(OS_TYPE) > 0 && strlen(argv[2]) > 0
data/gauche-0.9.6/gc/tools/if_mach.c:12: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).
    if (strlen(OS_TYPE) > 0 && strlen(argv[2]) > 0
data/gauche-0.9.6/gc/tools/setjmp_t.c:84: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).
    register int x = (int)strlen("a");  /* 1, slightly disguised */
data/gauche-0.9.6/src/class.c:3242: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).
        int nlen = (int)strlen(name);
data/gauche-0.9.6/src/class.c:3246:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(metaname, name, nlen-1);
data/gauche-0.9.6/src/core.c:419:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int size = (int)strlen(msg);
data/gauche-0.9.6/src/getdir_darwin.c:71: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).
    if (strlen(buf) + strlen(SUBDIR) + 1 >= buflen) {
data/gauche-0.9.6/src/getdir_darwin.c:71: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).
    if (strlen(buf) + strlen(SUBDIR) + 1 >= buflen) {
data/gauche-0.9.6/src/getdir_darwin.c:79: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).
    return strlen(buf);
data/gauche-0.9.6/src/getdir_darwin.c:82:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(buf, ".");
data/gauche-0.9.6/src/getdir_win.c:36: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 = (int)strlen(mbpath);
data/gauche-0.9.6/src/libsys.c:6691: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 size=strlen(path);const char* ends=
data/gauche-0.9.6/src/libsys.c:8558:11:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
{int prev=umask(0);
data/gauche-0.9.6/src/libsys.c:8559:1:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
umask(prev);
data/gauche-0.9.6/src/libsys.c:8561:30:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
SCM_INTP(mode)){{SCM_RESULT=(umask(SCM_INT_VALUE(mode)));goto SCM_STUB_RETURN;}} else {
data/gauche-0.9.6/src/load.c:276:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (e == NULL || strlen(e) == 0) {
data/gauche-0.9.6/src/paths.c:57:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (len + (int)strlen(orig) > buflen) {
data/gauche-0.9.6/src/paths.c:62:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((int)strlen(orig) >= buflen-1) {
data/gauche-0.9.6/src/port.c:1062:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        SCM_SYSCALL(r, read(fd, datptr, cnt-nread));
data/gauche-0.9.6/src/port.c:1562: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).
    data->pbufsize = (int)strlen(data->pbuf);
data/gauche-0.9.6/src/portapi.c:261:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (siz < 0) siz = (int)strlen(s);
data/gauche-0.9.6/src/prof.c:404:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ssize_t r = read(vm->prof->samplerFd, vm->prof->samples,
data/gauche-0.9.6/src/string.c:165:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ScmSmallInt size = (stop == NULL)? strlen(str) : (stop - str);
data/gauche-0.9.6/src/string.c:1297: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).
            *p = (char *)alloc(strlen(s) + 1);
data/gauche-0.9.6/src/string.c:1726: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).
    if (size < 0) size = (int)strlen(str);
data/gauche-0.9.6/src/system.c:397: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).
    int dirlen = (int)strlen(pwd->pw_dir);
data/gauche-0.9.6/src/system.c:696:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int siz = (int)strlen(templat);
data/gauche-0.9.6/src/system.c:1760:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            int c = cdir[strlen(cdir)-1];
data/gauche-0.9.6/src/system.c:2372:16:  [1] (buffer) wcslen:
  Does not handle 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 nlen = wcslen(wname);
data/gauche-0.9.6/src/system.c:2373:16:  [1] (buffer) wcslen:
  Does not handle 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 vlen = wcslen(wvalue);
data/gauche-0.9.6/src/system.c:2379:5:  [1] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant character.
    wcscpy(wnameval+nlen, L"=");
data/gauche-0.9.6/src/system.c:2415:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int nlen = (int)strlen(name);
data/gauche-0.9.6/src/system.c:2416:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int vlen = (int)strlen(value);
data/gauche-0.9.6/src/system.c:2422:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(nameval+nlen, "=");
data/gauche-0.9.6/src/test-arith.c:20:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int len = 79 - (int)strlen(m);
data/gauche-0.9.6/src/test-vmstack.c:16:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int len = 79 - (int)strlen(m);
data/gauche-0.9.6/src/write.c:414:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            return strlen(cname)+2; /* +2 for '#\' */

ANALYSIS SUMMARY:

Hits = 698
Lines analyzed = 455616 in approximately 14.64 seconds (31128 lines/second)
Physical Source Lines of Code (SLOC) = 397181
Hits@level = [0] 521 [1] 152 [2] 420 [3]  33 [4]  83 [5]  10
Hits@level+ = [0+] 1219 [1+] 698 [2+] 546 [3+] 126 [4+]  93 [5+]  10
Hits/KSLOC@level+ = [0+] 3.06913 [1+] 1.75739 [2+] 1.37469 [3+] 0.317236 [4+] 0.23415 [5+] 0.0251774
Dot directories skipped = 2 (--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.