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/libffi-3.3/include/ffi_cfi.h
Examining data/libffi-3.3/include/ffi_common.h
Examining data/libffi-3.3/src/mips/ffitarget.h
Examining data/libffi-3.3/src/mips/ffi.c
Examining data/libffi-3.3/src/debug.c
Examining data/libffi-3.3/src/powerpc/asm.h
Examining data/libffi-3.3/src/powerpc/ffitarget.h
Examining data/libffi-3.3/src/powerpc/ffi.c
Examining data/libffi-3.3/src/powerpc/ffi_darwin.c
Examining data/libffi-3.3/src/powerpc/ffi_sysv.c
Examining data/libffi-3.3/src/powerpc/ffi_powerpc.h
Examining data/libffi-3.3/src/powerpc/ffi_linux64.c
Examining data/libffi-3.3/src/m32r/ffitarget.h
Examining data/libffi-3.3/src/m32r/ffi.c
Examining data/libffi-3.3/src/arc/ffitarget.h
Examining data/libffi-3.3/src/arc/ffi.c
Examining data/libffi-3.3/src/moxie/ffitarget.h
Examining data/libffi-3.3/src/moxie/ffi.c
Examining data/libffi-3.3/src/vax/ffitarget.h
Examining data/libffi-3.3/src/vax/ffi.c
Examining data/libffi-3.3/src/closures.c
Examining data/libffi-3.3/src/m88k/ffitarget.h
Examining data/libffi-3.3/src/m88k/ffi.c
Examining data/libffi-3.3/src/tile/ffitarget.h
Examining data/libffi-3.3/src/tile/ffi.c
Examining data/libffi-3.3/src/or1k/ffitarget.h
Examining data/libffi-3.3/src/or1k/ffi.c
Examining data/libffi-3.3/src/java_raw_api.c
Examining data/libffi-3.3/src/nios2/ffitarget.h
Examining data/libffi-3.3/src/nios2/ffi.c
Examining data/libffi-3.3/src/types.c
Examining data/libffi-3.3/src/s390/internal.h
Examining data/libffi-3.3/src/s390/ffitarget.h
Examining data/libffi-3.3/src/s390/ffi.c
Examining data/libffi-3.3/src/bfin/ffitarget.h
Examining data/libffi-3.3/src/bfin/ffi.c
Examining data/libffi-3.3/src/m68k/ffitarget.h
Examining data/libffi-3.3/src/m68k/ffi.c
Examining data/libffi-3.3/src/avr32/ffitarget.h
Examining data/libffi-3.3/src/avr32/ffi.c
Examining data/libffi-3.3/src/aarch64/internal.h
Examining data/libffi-3.3/src/aarch64/ffitarget.h
Examining data/libffi-3.3/src/aarch64/ffi.c
Examining data/libffi-3.3/src/frv/ffitarget.h
Examining data/libffi-3.3/src/frv/ffi.c
Examining data/libffi-3.3/src/x86/internal.h
Examining data/libffi-3.3/src/x86/ffitarget.h
Examining data/libffi-3.3/src/x86/internal64.h
Examining data/libffi-3.3/src/x86/ffi.c
Examining data/libffi-3.3/src/x86/ffiw64.c
Examining data/libffi-3.3/src/x86/ffi64.c
Examining data/libffi-3.3/src/x86/asmnames.h
Examining data/libffi-3.3/src/xtensa/ffitarget.h
Examining data/libffi-3.3/src/xtensa/ffi.c
Examining data/libffi-3.3/src/prep_cif.c
Examining data/libffi-3.3/src/sh64/ffitarget.h
Examining data/libffi-3.3/src/sh64/ffi.c
Examining data/libffi-3.3/src/microblaze/ffitarget.h
Examining data/libffi-3.3/src/microblaze/ffi.c
Examining data/libffi-3.3/src/raw_api.c
Examining data/libffi-3.3/src/alpha/internal.h
Examining data/libffi-3.3/src/alpha/ffitarget.h
Examining data/libffi-3.3/src/alpha/ffi.c
Examining data/libffi-3.3/src/ia64/ia64_flags.h
Examining data/libffi-3.3/src/ia64/ffitarget.h
Examining data/libffi-3.3/src/ia64/ffi.c
Examining data/libffi-3.3/src/riscv/ffitarget.h
Examining data/libffi-3.3/src/riscv/ffi.c
Examining data/libffi-3.3/src/sh/ffitarget.h
Examining data/libffi-3.3/src/sh/ffi.c
Examining data/libffi-3.3/src/arm/internal.h
Examining data/libffi-3.3/src/arm/ffitarget.h
Examining data/libffi-3.3/src/arm/ffi.c
Examining data/libffi-3.3/src/pa/ffitarget.h
Examining data/libffi-3.3/src/pa/ffi.c
Examining data/libffi-3.3/src/sparc/internal.h
Examining data/libffi-3.3/src/sparc/ffitarget.h
Examining data/libffi-3.3/src/sparc/ffi.c
Examining data/libffi-3.3/src/sparc/ffi64.c
Examining data/libffi-3.3/src/metag/ffitarget.h
Examining data/libffi-3.3/src/metag/ffi.c
Examining data/libffi-3.3/src/cris/ffitarget.h
Examining data/libffi-3.3/src/cris/ffi.c
Examining data/libffi-3.3/src/dlmalloc.c
Examining data/libffi-3.3/testsuite/libffi.call/strlen4.c
Examining data/libffi-3.3/testsuite/libffi.call/struct10.c
Examining data/libffi-3.3/testsuite/libffi.call/many_mixed.c
Examining data/libffi-3.3/testsuite/libffi.call/float.c
Examining data/libffi-3.3/testsuite/libffi.call/struct5.c
Examining data/libffi-3.3/testsuite/libffi.call/return_fl3.c
Examining data/libffi-3.3/testsuite/libffi.call/return_fl1.c
Examining data/libffi-3.3/testsuite/libffi.call/pyobjc-tc.c
Examining data/libffi-3.3/testsuite/libffi.call/float_va.c
Examining data/libffi-3.3/testsuite/libffi.call/struct8.c
Examining data/libffi-3.3/testsuite/libffi.call/pr1172638.c
Examining data/libffi-3.3/testsuite/libffi.call/return_sc.c
Examining data/libffi-3.3/testsuite/libffi.call/va_struct1.c
Examining data/libffi-3.3/testsuite/libffi.call/align_stdcall.c
Examining data/libffi-3.3/testsuite/libffi.call/struct9.c
Examining data/libffi-3.3/testsuite/libffi.call/va_1.c
Examining data/libffi-3.3/testsuite/libffi.call/va_struct2.c
Examining data/libffi-3.3/testsuite/libffi.call/return_fl2.c
Examining data/libffi-3.3/testsuite/libffi.call/align_mixed.c
Examining data/libffi-3.3/testsuite/libffi.call/ffitest.h
Examining data/libffi-3.3/testsuite/libffi.call/struct4.c
Examining data/libffi-3.3/testsuite/libffi.call/return_ldl.c
Examining data/libffi-3.3/testsuite/libffi.call/float3.c
Examining data/libffi-3.3/testsuite/libffi.call/return_sl.c
Examining data/libffi-3.3/testsuite/libffi.call/return_dbl1.c
Examining data/libffi-3.3/testsuite/libffi.call/err_bad_typedef.c
Examining data/libffi-3.3/testsuite/libffi.call/return_ll1.c
Examining data/libffi-3.3/testsuite/libffi.call/return_dbl2.c
Examining data/libffi-3.3/testsuite/libffi.call/negint.c
Examining data/libffi-3.3/testsuite/libffi.call/struct2.c
Examining data/libffi-3.3/testsuite/libffi.call/struct3.c
Examining data/libffi-3.3/testsuite/libffi.call/return_fl.c
Examining data/libffi-3.3/testsuite/libffi.call/offsets.c
Examining data/libffi-3.3/testsuite/libffi.call/struct7.c
Examining data/libffi-3.3/testsuite/libffi.call/va_struct3.c
Examining data/libffi-3.3/testsuite/libffi.call/float1.c
Examining data/libffi-3.3/testsuite/libffi.call/uninitialized.c
Examining data/libffi-3.3/testsuite/libffi.call/many2.c
Examining data/libffi-3.3/testsuite/libffi.call/struct6.c
Examining data/libffi-3.3/testsuite/libffi.call/strlen2.c
Examining data/libffi-3.3/testsuite/libffi.call/float2.c
Examining data/libffi-3.3/testsuite/libffi.call/return_ul.c
Examining data/libffi-3.3/testsuite/libffi.call/struct1.c
Examining data/libffi-3.3/testsuite/libffi.call/strlen3.c
Examining data/libffi-3.3/testsuite/libffi.call/return_dbl.c
Examining data/libffi-3.3/testsuite/libffi.call/float4.c
Examining data/libffi-3.3/testsuite/libffi.call/many.c
Examining data/libffi-3.3/testsuite/libffi.call/strlen.c
Examining data/libffi-3.3/testsuite/libffi.call/return_uc.c
Examining data/libffi-3.3/testsuite/libffi.call/many_double.c
Examining data/libffi-3.3/testsuite/libffi.call/return_ll.c
Examining data/libffi-3.3/testsuite/libffi.call/promotion.c
Examining data/libffi-3.3/testsuite/libffi.complex/cls_align_complex_float.c
Examining data/libffi-3.3/testsuite/libffi.complex/cls_complex_va_float.c
Examining data/libffi-3.3/testsuite/libffi.complex/cls_complex_struct_float.c
Examining data/libffi-3.3/testsuite/libffi.complex/return_complex2_longdouble.c
Examining data/libffi-3.3/testsuite/libffi.complex/cls_complex_float.c
Examining data/libffi-3.3/testsuite/libffi.complex/return_complex_longdouble.c
Examining data/libffi-3.3/testsuite/libffi.complex/return_complex2_float.c
Examining data/libffi-3.3/testsuite/libffi.complex/cls_complex_va_longdouble.c
Examining data/libffi-3.3/testsuite/libffi.complex/return_complex_double.c
Examining data/libffi-3.3/testsuite/libffi.complex/complex_float.c
Examining data/libffi-3.3/testsuite/libffi.complex/return_complex2_double.c
Examining data/libffi-3.3/testsuite/libffi.complex/many_complex_float.c
Examining data/libffi-3.3/testsuite/libffi.complex/ffitest.h
Examining data/libffi-3.3/testsuite/libffi.complex/return_complex1_double.c
Examining data/libffi-3.3/testsuite/libffi.complex/cls_complex_struct_longdouble.c
Examining data/libffi-3.3/testsuite/libffi.complex/cls_complex_va_double.c
Examining data/libffi-3.3/testsuite/libffi.complex/many_complex_double.c
Examining data/libffi-3.3/testsuite/libffi.complex/return_complex1_float.c
Examining data/libffi-3.3/testsuite/libffi.complex/complex_longdouble.c
Examining data/libffi-3.3/testsuite/libffi.complex/cls_complex_double.c
Examining data/libffi-3.3/testsuite/libffi.complex/cls_align_complex_double.c
Examining data/libffi-3.3/testsuite/libffi.complex/cls_align_complex_longdouble.c
Examining data/libffi-3.3/testsuite/libffi.complex/complex_double.c
Examining data/libffi-3.3/testsuite/libffi.complex/many_complex_longdouble.c
Examining data/libffi-3.3/testsuite/libffi.complex/return_complex1_longdouble.c
Examining data/libffi-3.3/testsuite/libffi.complex/complex_int.c
Examining data/libffi-3.3/testsuite/libffi.complex/cls_complex_longdouble.c
Examining data/libffi-3.3/testsuite/libffi.complex/cls_complex_struct_double.c
Examining data/libffi-3.3/testsuite/libffi.complex/return_complex_float.c
Examining data/libffi-3.3/testsuite/libffi.go/closure1.c
Examining data/libffi-3.3/testsuite/libffi.go/aa-direct.c
Examining data/libffi-3.3/testsuite/libffi.go/ffitest.h
Examining data/libffi-3.3/testsuite/libffi.go/static-chain.h
Examining data/libffi-3.3/testsuite/libffi.bhaible/test-call.c
Examining data/libffi-3.3/testsuite/libffi.bhaible/alignof.h
Examining data/libffi-3.3/testsuite/libffi.bhaible/testcases.c
Examining data/libffi-3.3/testsuite/libffi.bhaible/test-callback.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_multi_sshort.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_align_longdouble_split2.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_1_1byte.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_uint_va.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_3_1byte.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_many_mixed_args.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_20byte1.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_pointer_stack.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_align_float.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_5_1_byte.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_9byte1.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_align_uint32.c
Examining data/libffi-3.3/testsuite/libffi.closures/stret_medium.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_3byte1.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_align_uint64.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_longdouble_va.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_align_pointer.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_19byte.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_ushort.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_align_sint32.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_ulonglong.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_struct_va1.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_9byte2.c
Examining data/libffi-3.3/testsuite/libffi.closures/closure_fn5.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_5byte.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_3float.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_schar.c
Examining data/libffi-3.3/testsuite/libffi.closures/closure_fn4.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_uchar_va.c
Examining data/libffi-3.3/testsuite/libffi.closures/closure_fn0.c
Examining data/libffi-3.3/testsuite/libffi.closures/huge_struct.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_ushort_va.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_64byte.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_longdouble.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_ulong_va.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_6_1_byte.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_align_uint16.c
Examining data/libffi-3.3/testsuite/libffi.closures/closure_fn2.c
Examining data/libffi-3.3/testsuite/libffi.closures/unwindtest_ffi_call.cc
Examining data/libffi-3.3/testsuite/libffi.closures/cls_multi_ushortchar.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_8byte.c
Examining data/libffi-3.3/testsuite/libffi.closures/ffitest.h
Examining data/libffi-3.3/testsuite/libffi.closures/nested_struct8.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_pointer.c
Examining data/libffi-3.3/testsuite/libffi.closures/nested_struct2.c
Examining data/libffi-3.3/testsuite/libffi.closures/nested_struct.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_multi_schar.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_align_longdouble_split.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_uchar.c
Examining data/libffi-3.3/testsuite/libffi.closures/nested_struct9.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_float.c
Examining data/libffi-3.3/testsuite/libffi.closures/stret_medium2.c
Examining data/libffi-3.3/testsuite/libffi.closures/closure_loc_fn0.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_6byte.c
Examining data/libffi-3.3/testsuite/libffi.closures/closure_simple.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_align_double.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_multi_uchar.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_4_1byte.c
Examining data/libffi-3.3/testsuite/libffi.closures/closure_fn3.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_align_sint64.c
Examining data/libffi-3.3/testsuite/libffi.closures/nested_struct1.c
Examining data/libffi-3.3/testsuite/libffi.closures/nested_struct3.c
Examining data/libffi-3.3/testsuite/libffi.closures/unwindtest.cc
Examining data/libffi-3.3/testsuite/libffi.closures/nested_struct5.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_multi_ushort.c
Examining data/libffi-3.3/testsuite/libffi.closures/nested_struct11.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_multi_sshortchar.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_align_longdouble.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_dbls_struct.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_many_mixed_float_double.c
Examining data/libffi-3.3/testsuite/libffi.closures/stret_large.c
Examining data/libffi-3.3/testsuite/libffi.closures/stret_large2.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_align_sint16.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_2byte.c
Examining data/libffi-3.3/testsuite/libffi.closures/nested_struct4.c
Examining data/libffi-3.3/testsuite/libffi.closures/problem1.c
Examining data/libffi-3.3/testsuite/libffi.closures/testclosure.c
Examining data/libffi-3.3/testsuite/libffi.closures/nested_struct6.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_4byte.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_24byte.c
Examining data/libffi-3.3/testsuite/libffi.closures/nested_struct10.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_uint.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_12byte.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_sint.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_7_1_byte.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_sshort.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_16byte.c
Examining data/libffi-3.3/testsuite/libffi.closures/nested_struct7.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_double_va.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_3byte2.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_double.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_7byte.c
Examining data/libffi-3.3/testsuite/libffi.closures/closure_fn6.c
Examining data/libffi-3.3/testsuite/libffi.closures/closure_fn1.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_20byte.c
Examining data/libffi-3.3/testsuite/libffi.closures/cls_18byte.c
Examining data/libffi-3.3/testsuite/libffi.closures/err_bad_abi.c
Examining data/libffi-3.3/msvc_build/aarch64/aarch64_include/fficonfig.h
Examining data/libffi-3.3/msvc_build/aarch64/aarch64_include/ffi.h

FINAL RESULTS:

data/libffi-3.3/src/closures.c:649: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.
	  || access (mnt.mnt_dir, W_OK))
data/libffi-3.3/src/pa/ffi.c:52:57:  [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 debug(lvl, x...) do { if (lvl <= DEBUG_LEVEL) { printf(x); } } while (0)
data/libffi-3.3/testsuite/libffi.bhaible/test-call.c:44:7:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
      vsprintf(&rbuf1[strlen(rbuf1)], format, args);
data/libffi-3.3/testsuite/libffi.bhaible/test-call.c:48:7:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
      vsprintf(rbuf2, format, args);
data/libffi-3.3/testsuite/libffi.bhaible/test-call.c:51:7:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
      vsprintf(&rbuf2[strlen(rbuf2)], format, args);
data/libffi-3.3/testsuite/libffi.bhaible/test-call.c:61: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.
#define fprintf _fprintf
data/libffi-3.3/testsuite/libffi.bhaible/test-callback.c:44:7:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
      vsprintf(&rbuf1[strlen(rbuf1)], format, args);
data/libffi-3.3/testsuite/libffi.bhaible/test-callback.c:48:7:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
      vsprintf(rbuf2, format, args);
data/libffi-3.3/testsuite/libffi.bhaible/test-callback.c:51:7:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
      vsprintf(&rbuf2[strlen(rbuf2)], format, args);
data/libffi-3.3/testsuite/libffi.bhaible/test-callback.c:61: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.
#define fprintf _fprintf
data/libffi-3.3/testsuite/libffi.closures/cls_double_va.c:20:20:  [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.
	*(ffi_arg*)resp = printf(format, doubleValue);
data/libffi-3.3/testsuite/libffi.closures/cls_double_va.c:47:24:  [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.
	ffi_call(&cif, FFI_FN(printf), &res, args);
data/libffi-3.3/testsuite/libffi.closures/cls_longdouble_va.c:20:20:  [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.
	*(ffi_arg*)resp = printf(format, ldValue);
data/libffi-3.3/testsuite/libffi.closures/cls_longdouble_va.c:47:24:  [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.
	ffi_call(&cif, FFI_FN(printf), &res, args);
data/libffi-3.3/src/closures.c:603:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *value = getenv (envvar);
data/libffi-3.3/include/ffi_common.h:55:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#  define memcpy(d, s, n) bcopy ((s), (d), (n))
data/libffi-3.3/include/ffi_common.h:55:27:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#  define memcpy(d, s, n) bcopy ((s), (d), (n))
data/libffi-3.3/msvc_build/aarch64/aarch64_include/ffi.h:253:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char      data[FFI_SIZEOF_ARG];
data/libffi-3.3/msvc_build/aarch64/aarch64_include/ffi.h:264:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char		data[FFI_SIZEOF_JAVA_RAW];
data/libffi-3.3/msvc_build/aarch64/aarch64_include/ffi.h:311: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 tramp[FFI_TRAMPOLINE_SIZE];
data/libffi-3.3/msvc_build/aarch64/aarch64_include/ffi.h:358: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 tramp[FFI_TRAMPOLINE_SIZE];
data/libffi-3.3/msvc_build/aarch64/aarch64_include/ffi.h:383: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 tramp[FFI_TRAMPOLINE_SIZE];
data/libffi-3.3/src/aarch64/ffi.c:448: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.
	return memcpy (dest, reg, 16 * (4 - (h & 3)));
data/libffi-3.3/src/aarch64/ffi.c:648:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(d, a, s);
data/libffi-3.3/src/aarch64/ffi.c:729: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 (dest, a, s);
data/libffi-3.3/src/aarch64/ffi.c:750: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 (orig_rvalue, rvalue, rtype_size);
data/libffi-3.3/src/aarch64/ffi.c:797: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.
  static const unsigned char trampoline[16] = {
data/libffi-3.3/src/aarch64/ffi.c:804:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (tramp, trampoline, sizeof(trampoline));
data/libffi-3.3/src/alpha/ffi.c:287:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(argp + argn, valp, size);
data/libffi-3.3/src/alpha/ffi.c:470: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(valp + size, valp + 8, size);
data/libffi-3.3/src/arc/ffi.c:100: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 (argp, *p_argv, (*p_arg)->size);
data/libffi-3.3/src/arc/ffi.c:115: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 (argp, *p_argv, z);
data/libffi-3.3/src/arc/ffi.c:120: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 (argp, *p_argv, z);
data/libffi-3.3/src/arm/ffi.c:123:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (dst, src, z);
data/libffi-3.3/src/arm/ffi.c:415: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 (rvalue, new_rvalue, rtype->size);
data/libffi-3.3/src/arm/ffi.c:534: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 vfp_space[8*8] __attribute__((aligned(8)));
data/libffi-3.3/src/arm/ffi.c:535: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 result[8*4];
data/libffi-3.3/src/arm/ffi.c:596:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(closure->tramp, ffi_arm_trampoline, 8);
data/libffi-3.3/src/arm/ffi.c:599:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(closure->tramp, (void*)((uintptr_t)ffi_arm_trampoline & 0xFFFFFFFE), FFI_TRAMPOLINE_CLOSURE_OFFSET);
data/libffi-3.3/src/arm/ffitarget.h:57: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.
  signed char vfp_args[16]			\
data/libffi-3.3/src/avr32/ffi.c:153: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(addr, *p_argv, z);
data/libffi-3.3/src/bfin/ffi.c:179:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
               memcpy(argp, *p_argv, (*p_arg)->size);
data/libffi-3.3/src/bfin/ffi.c:188:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
         memcpy(argp, *p_argv, z);
data/libffi-3.3/src/closures.c:94:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dataseg, &rounded_size, sizeof(rounded_size));
data/libffi-3.3/src/closures.c:95:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(ADD_TO_POINTER(dataseg, sizeof(size_t)), &codeseg, sizeof(void *));
data/libffi-3.3/src/closures.c:108:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&codeseg, ADD_TO_POINTER(dataseg, sizeof(size_t)), sizeof(void *));
data/libffi-3.3/src/closures.c:418:7:  [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 ("/proc/mounts", "r");
data/libffi-3.3/src/closures.c:463:7:  [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 ("/proc/self/status", "r");
data/libffi-3.3/src/closures.c:550:8:  [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).
  fd = mkstemp (name);
data/libffi-3.3/src/closures.c:577:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open (dir, flags | O_RDWR | O_EXCL | O_TMPFILE, 0700);
data/libffi-3.3/src/closures.c:592:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (tempname, dir, lendir);
data/libffi-3.3/src/closures.c:593:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (tempname + lendir, suffix, sizeof (suffix));
data/libffi-3.3/src/closures.c:642: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[MAXPATHLEN * 3];
data/libffi-3.3/src/closures.c:743:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buf[page_size];
data/libffi-3.3/src/cris/ffi.c:94:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (argp, *p_argv, z);
data/libffi-3.3/src/cris/ffi.c:99:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (argp, *p_argv, z);
data/libffi-3.3/src/cris/ffi.c:110:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy ((stack + uiLocOnStack), *p_argv, (*p_arg)->size);
data/libffi-3.3/src/cris/ffi.c:146: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 (argp, *p_argv, z);
data/libffi-3.3/src/cris/ffi.c:378:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (closure->tramp, ffi_cris_trampoline_template,
data/libffi-3.3/src/cris/ffi.c:380:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (closure->tramp + ffi_cris_trampoline_fn_offset,
data/libffi-3.3/src/cris/ffi.c:382:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (closure->tramp + ffi_cris_trampoline_closure_offset,
data/libffi-3.3/src/dlmalloc.c:1324:27:  [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).
           (dev_zero_fd = open("/dev/zero", O_RDWR), \
data/libffi-3.3/src/dlmalloc.c:2530: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.
      unsigned char buf[sizeof(size_t)];
data/libffi-3.3/src/dlmalloc.c:2532: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).
      if ((fd = open("/dev/urandom", O_RDONLY)) >= 0 &&
data/libffi-3.3/src/dlmalloc.c:3899: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(newmem, oldmem, (oc < bytes)? oc : bytes);
data/libffi-3.3/src/frv/ffi.c:103:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(argp, *p_argv, z);
data/libffi-3.3/src/ia64/ffi.c:346: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 (&tmp, avalue[i], sizeof (UINT32));
data/libffi-3.3/src/ia64/ffi.c:354:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (&stack->gp_regs[gpcount++], avalue[i], sizeof (UINT64));
data/libffi-3.3/src/ia64/ffi.c:362:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (&stack->gp_regs[gpcount], avalue[i], 16);
data/libffi-3.3/src/ia64/ffi.c:394: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 (&stack->gp_regs[gpcount], avalue[i], size);
data/libffi-3.3/src/ia64/ffi.c:586: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 + offset, (char *)stack->gp_regs + gp_offset,
data/libffi-3.3/src/java_raw_api.c:235:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy ((void*) raw->data, (void*)*args, (*tp)->size);
data/libffi-3.3/src/m32r/ffi.c:95:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (argp, *p_argv, z);
data/libffi-3.3/src/m32r/ffi.c:97:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (argp + 4 - z, *p_argv, z);
data/libffi-3.3/src/m32r/ffi.c:120:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	              memcpy(argp, *p_argv, z);
data/libffi-3.3/src/m32r/ffi.c:127:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	          memcpy (argp, *p_argv, z);
data/libffi-3.3/src/m32r/ffi.c:214: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 (ecif.rvalue, ecif.rvalue + 8-size, size);
data/libffi-3.3/src/m32r/ffi.c:222:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (ecif.rvalue, ecif.rvalue + 8-size, size);
data/libffi-3.3/src/m68k/ffi.c:89:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (argp + 2, *p_argv, z);
data/libffi-3.3/src/m68k/ffi.c:91:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (argp, *p_argv, z);
data/libffi-3.3/src/m68k/ffi.c:93: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 (argp + sizeof (int) - z, *p_argv, z);
data/libffi-3.3/src/m68k/ffi.c:104:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (argp, *p_argv, z);
data/libffi-3.3/src/m88k/ffi.c:171:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (argp, *p_argv, z);
data/libffi-3.3/src/metag/ffi.c:82: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(argp, *p_argv, (*p_arg)->size);
data/libffi-3.3/src/metag/ffi.c:90:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(argp, *p_argv, z);
data/libffi-3.3/src/metag/ffi.c:205:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (rvalue, &temp, cif->rtype->size);
data/libffi-3.3/src/metag/ffi.c:228: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 (__tramp, ffi_metag_trampoline, sizeof(ffi_metag_trampoline));
data/libffi-3.3/src/microblaze/ffi.c:62:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(addr, &(ecif->rvalue), WORD_SIZE);
data/libffi-3.3/src/microblaze/ffi.c:122:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				  memcpy (addr + (WORD_SIZE - size), value, size);
data/libffi-3.3/src/microblaze/ffi.c:133: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, value, aligned_size);
data/libffi-3.3/src/microblaze/ffi.c:201: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(stackclone, register_args, registers_used);
data/libffi-3.3/src/microblaze/ffi.c:206:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(stackclone + ARGS_REGISTER_SIZE, stack_args, stack_used);
data/libffi-3.3/src/microblaze/ffi.c:244:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				  memcpy (ptr, ptr + (WORD_SIZE - arg_types[i]->size), arg_types[i]->size);
data/libffi-3.3/src/mips/ffi.c:191:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(argp, *p_argv, (*p_arg)->size);
data/libffi-3.3/src/mips/ffi.c:198:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(argp, *p_argv, z);
data/libffi-3.3/src/mips/ffi.c:208: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(argp, *p_argv, z);
data/libffi-3.3/src/mips/ffi.c:213:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(argp, *p_argv, portion);
data/libffi-3.3/src/mips/ffi.c:216:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(argp, (void*)((unsigned long)(*p_argv) + portion),
data/libffi-3.3/src/mips/ffi.c:664:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(ecif.rvalue, rvalue_copy + copy_offset, cif->rtype->size);
data/libffi-3.3/src/mips/ffi.c:935: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(tp, argp + arg_offset, elt_type->size);
data/libffi-3.3/src/moxie/ffi.c:96:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(argp, *p_argv, z);
data/libffi-3.3/src/nios2/ffi.c:130: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 (argp, avalue, atype->size);
data/libffi-3.3/src/nios2/ffi.c:140: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 (argp, avalue, size);
data/libffi-3.3/src/nios2/ffi.c:193: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 (rvalue, (void *)&result, cif->rtype->size);
data/libffi-3.3/src/or1k/ffi.c:99: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(stack, *argv, s);
data/libffi-3.3/src/pa/ffi.c:239: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(dest_cpy, (char *)*p_argv, len);
data/libffi-3.3/src/pa/ffi.c:245: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(dest_cpy, (char *)*p_argv, len);
data/libffi-3.3/src/pa/ffi.c:580:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy((void*)tmp, &ret[0], cif->rtype->size);
data/libffi-3.3/src/pa/ffi.c:601: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 ((char *)ret2 + off, ret, 8 - off);
data/libffi-3.3/src/powerpc/ffi.c:120: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 (rvalue, (char *) smst_buffer + 4 - rsize, rsize);
data/libffi-3.3/src/powerpc/ffi.c:128:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (rvalue, (char *) smst_buffer + 8 - rsize, rsize);
data/libffi-3.3/src/powerpc/ffi.c:131:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (rvalue, smst_buffer, rsize);
data/libffi-3.3/src/powerpc/ffi_darwin.c:274:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy ((char *) dest_cpy, (char *) *p_argv, size_al);
data/libffi-3.3/src/powerpc/ffi_darwin.c:283:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy((char *) dest_cpy, (char *) *p_argv, size_al);
data/libffi-3.3/src/powerpc/ffi_darwin.c:499:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy ((char *) dest_cpy, src, size);
data/libffi-3.3/src/powerpc/ffi_darwin.c:504:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy ((char *) dest_cpy, src, size);
data/libffi-3.3/src/powerpc/ffi_darwin.c:510:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy ((char *) dest_cpy, src, size);
data/libffi-3.3/src/powerpc/ffi_darwin.c:1275:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  pgr = (unsigned long *)FFI_ALIGN((char *)pgr, arg_types[i]->alignment);
data/libffi-3.3/src/powerpc/ffi_darwin.c:1400: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 (&temp_ld.lb[0], pfr, sizeof(ldbits));
data/libffi-3.3/src/powerpc/ffi_darwin.c:1401: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 (&temp_ld.lb[1], pgr + 2, sizeof(ldbits));
data/libffi-3.3/src/powerpc/ffi_linux64.c:550:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (vec_base.f128++, *p_argv.f128, sizeof (float128));
data/libffi-3.3/src/powerpc/ffi_linux64.c:552:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (next_arg.f128, *p_argv.f128, sizeof (float128));
data/libffi-3.3/src/powerpc/ffi_linux64.c:683:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		        memcpy (vec_base.f128++, arg.f128, sizeof (float128));
data/libffi-3.3/src/powerpc/ffi_linux64.c:685:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		        memcpy (next_arg.f128, arg.f128++, sizeof (float128));
data/libffi-3.3/src/powerpc/ffi_linux64.c:739: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 (next_arg.c, *p_argv.c, first);
data/libffi-3.3/src/powerpc/ffi_linux64.c:740: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 (rest.c, *p_argv.c + first, (*ptr)->size - first);
data/libffi-3.3/src/powerpc/ffi_linux64.c:753: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 (where, *p_argv.c, (*ptr)->size);
data/libffi-3.3/src/powerpc/ffi_linux64.c:845:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (&tramp[0], (void **) ffi_closure_LINUX64, sizeof (void *));
data/libffi-3.3/src/powerpc/ffi_linux64.c:847:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (&tramp[2], (void **) ffi_closure_LINUX64 + 1, sizeof (void *));
data/libffi-3.3/src/powerpc/ffi_linux64.c:989:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		        memcpy (to.f128, pvec++, sizeof (float128));
data/libffi-3.3/src/powerpc/ffi_linux64.c:991:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		        memcpy (to.f128, from.f128, sizeof (float128));
data/libffi-3.3/src/powerpc/ffi_powerpc.h:65: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.
typedef char float128[16] __attribute__((aligned(16)));
data/libffi-3.3/src/powerpc/ffi_sysv.c:571:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (copy_space.c, *p_argv.c, (*ptr)->size);
data/libffi-3.3/src/raw_api.c:188:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy ((void*) raw->data, (void*)*args, (*tp)->size);
data/libffi-3.3/src/riscv/ffi.c:55: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 frame[16];
data/libffi-3.3/src/riscv/ffi.c:245: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(realign, data, type->size);
data/libffi-3.3/src/riscv/ffi.c:297: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(data, realign, type->size);
data/libffi-3.3/src/s390/ffi.c:467:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (p_struct, arg, ty->size);
data/libffi-3.3/src/s390/ffi.c:729:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (tramp, template, sizeof(template));
data/libffi-3.3/src/sh/ffi.c:203:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (argp, *p_argv, z);
data/libffi-3.3/src/sh/ffi.c:218:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (argp, *p_argv, z);
data/libffi-3.3/src/sh/ffi.c:294:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (argp, *p_argv, z);
data/libffi-3.3/src/sh/ffi.c:313:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (argp, *p_argv, z);
data/libffi-3.3/src/sh/ffi.c:448: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 (rvalue, &trvalue, cif->rtype->size);
data/libffi-3.3/src/sh64/ffi.c:106: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 (argp, *p_argv, z);
data/libffi-3.3/src/sh64/ffi.c:147:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (argp, *p_argv, z);
data/libffi-3.3/src/sh64/ffi.c:290: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 (rvalue, &trvalue, cif->rtype->size);
data/libffi-3.3/src/sparc/ffi.c:234:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(argp, a, 8);
data/libffi-3.3/src/sparc/ffi.c:266: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((char *)argp + 4 - z, a, z);
data/libffi-3.3/src/sparc/ffi.c:271: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(argp, a, z);
data/libffi-3.3/src/sparc/ffi64.c:157:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (vd, vi, size);
data/libffi-3.3/src/sparc/ffi64.c:407:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(argp, a, z);
data/libffi-3.3/src/tile/ffi.c:130:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(out, in, type->size);
data/libffi-3.3/src/tile/ffi.c:192:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(argp, arg_in, type->size);
data/libffi-3.3/src/vax/ffi.c:97: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 (argp, *p_argv, z);
data/libffi-3.3/src/vax/ffi.c:107:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (argp, *p_argv, z);
data/libffi-3.3/src/x86/ffi.c:379: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 (argp, valp, z);
data/libffi-3.3/src/x86/ffi.c:384: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 (argp, valp, z);
data/libffi-3.3/src/x86/ffi.c:748:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (argp, avalue, z);
data/libffi-3.3/src/x86/ffi.c:756: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 (argp, avalue, bytes);
data/libffi-3.3/src/x86/ffi64.c:615:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (argp, avalue[i], size);
data/libffi-3.3/src/x86/ffi64.c:621: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.
	  char *a = (char *) avalue[i];
data/libffi-3.3/src/x86/ffi64.c:650: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 (&reg_args->gpr[gprcount], a, size);
data/libffi-3.3/src/x86/ffi64.c:656: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 (&reg_args->sse[ssecount++].i64, a, sizeof(UINT64));
data/libffi-3.3/src/x86/ffi64.c:659: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 (&reg_args->sse[ssecount++].i32, a, sizeof(UINT32));
data/libffi-3.3/src/x86/ffi64.c:731: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.
  static const unsigned char trampoline[16] = {
data/libffi-3.3/src/x86/ffi64.c:754:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (tramp, trampoline, sizeof(trampoline));
data/libffi-3.3/src/x86/ffi64.c:843:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (a, &reg_args->sse[ssecount++], 8);
data/libffi-3.3/src/x86/ffi64.c:845:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (a, &reg_args->gpr[gprcount++], 8);
data/libffi-3.3/src/x86/ffiw64.c:199: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.
  static const unsigned char trampoline[16] = {
data/libffi-3.3/src/x86/ffiw64.c:218:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (tramp, trampoline, sizeof(trampoline));
data/libffi-3.3/src/xtensa/ffi.c:178:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((char*) addr, *p_argv.c, size);
data/libffi-3.3/src/xtensa/ffi.c:222: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(rvalue, alloc, rsize);
data/libffi-3.3/src/xtensa/ffi.c:236:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(closure->tramp, ffi_trampoline, FFI_TRAMPOLINE_SIZE);
data/libffi-3.3/testsuite/libffi.bhaible/test-call.c:33: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 rbuf1[2048];
data/libffi-3.3/testsuite/libffi.bhaible/test-call.c:34: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 rbuf2[2048];
data/libffi-3.3/testsuite/libffi.bhaible/test-callback.c:33: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 rbuf1[2048];
data/libffi-3.3/testsuite/libffi.bhaible/test-callback.c:34: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 rbuf2[2048];
data/libffi-3.3/testsuite/libffi.bhaible/testcases.c:64: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.
typedef struct { char c[3]; } T;
data/libffi-3.3/testsuite/libffi.bhaible/testcases.c:65: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.
typedef struct { char c[33],c1; } X;
data/libffi-3.3/testsuite/libffi.call/float1.c:16:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char c[sizeof (double)];
data/libffi-3.3/testsuite/libffi.call/float4.c:16:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char c[sizeof (double)];
data/libffi-3.3/testsuite/libffi.closures/cls_multi_schar.c:27: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.
  a1 = *(signed char *)avals[0];
data/libffi-3.3/testsuite/libffi.closures/cls_multi_schar.c:28: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.
  a2 = *(signed char *)avals[1];
data/libffi-3.3/testsuite/libffi.closures/cls_multi_sshortchar.c:29: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.
  a1 = *(signed char *)avals[0];
data/libffi-3.3/testsuite/libffi.closures/cls_multi_sshortchar.c:31: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.
  a3 = *(signed char *)avals[2];
data/libffi-3.3/testsuite/libffi.closures/cls_multi_uchar.c:28: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.
  a1 = *(unsigned char *)avals[0];
data/libffi-3.3/testsuite/libffi.closures/cls_multi_uchar.c:29: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.
  a2 = *(unsigned char *)avals[1];
data/libffi-3.3/testsuite/libffi.closures/cls_multi_uchar.c:30: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.
  a3 = *(unsigned char *)avals[2];
data/libffi-3.3/testsuite/libffi.closures/cls_multi_uchar.c:31: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.
  a4 = *(unsigned char *)avals[3];
data/libffi-3.3/testsuite/libffi.closures/cls_multi_uchar.c:43:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  printf("%d %d %d %d\n", *(unsigned char *)avals[0],
data/libffi-3.3/testsuite/libffi.closures/cls_multi_uchar.c:44: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 *)avals[1], *(unsigned char *)avals[2],
data/libffi-3.3/testsuite/libffi.closures/cls_multi_uchar.c:44:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *)avals[1], *(unsigned char *)avals[2],
data/libffi-3.3/testsuite/libffi.closures/cls_multi_uchar.c:45: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 *)avals[3]);
data/libffi-3.3/testsuite/libffi.closures/cls_multi_ushortchar.c:29: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.
  a1 = *(unsigned char *)avals[0];
data/libffi-3.3/testsuite/libffi.closures/cls_multi_ushortchar.c:31: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.
  a3 = *(unsigned char *)avals[2];
data/libffi-3.3/testsuite/libffi.closures/cls_schar.c:15:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  *(ffi_arg*)resp = *(signed char *)args[0];
data/libffi-3.3/testsuite/libffi.closures/cls_schar.c:16:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  printf("%d: %d\n",*(signed char *)args[0],
data/libffi-3.3/testsuite/libffi.closures/cls_uchar.c:13: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.
  *(ffi_arg*)resp = *(unsigned char *)args[0];
data/libffi-3.3/testsuite/libffi.closures/cls_uchar.c:14: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.
  printf("%d: %d\n",*(unsigned char *)args[0],
data/libffi-3.3/src/closures.c:586: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).
  lendir = (int) strlen (dir);
data/libffi-3.3/src/dlmalloc.c:661:32:  [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 dlmemalign             memalign
data/libffi-3.3/src/dlmalloc.c:2533:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          read(fd, buf, sizeof(buf)) == sizeof(buf)) {
data/libffi-3.3/testsuite/libffi.bhaible/test-call.c:44: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).
      vsprintf(&rbuf1[strlen(rbuf1)], format, args);
data/libffi-3.3/testsuite/libffi.bhaible/test-call.c:51: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).
      vsprintf(&rbuf2[strlen(rbuf2)], format, args);
data/libffi-3.3/testsuite/libffi.bhaible/test-callback.c:44: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).
      vsprintf(&rbuf1[strlen(rbuf1)], format, args);
data/libffi-3.3/testsuite/libffi.bhaible/test-callback.c:51: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).
      vsprintf(&rbuf2[strlen(rbuf2)], format, args);
data/libffi-3.3/testsuite/libffi.call/strlen.c:12: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).
  return (strlen(s));
data/libffi-3.3/testsuite/libffi.call/strlen2.c:13: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).
  return (size_t) ((int) strlen(s) + (int) a);
data/libffi-3.3/testsuite/libffi.call/strlen3.c:13: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).
  return (size_t) ((int) strlen(s) + (int) a);
data/libffi-3.3/testsuite/libffi.call/strlen4.c:13: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).
  return (size_t) ((int) strlen(s) + (int) a + i);

ANALYSIS SUMMARY:

Hits = 211
Lines analyzed = 48190 in approximately 1.51 seconds (31895 lines/second)
Physical Source Lines of Code (SLOC) = 33739
Hits@level = [0] 869 [1]  11 [2] 185 [3]   1 [4]  14 [5]   0
Hits@level+ = [0+] 1080 [1+] 211 [2+] 200 [3+]  15 [4+]  14 [5+]   0
Hits/KSLOC@level+ = [0+] 32.0104 [1+] 6.25389 [2+] 5.92786 [3+] 0.444589 [4+] 0.41495 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.