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/libcrypto++-8.2.0/3way.cpp Examining data/libcrypto++-8.2.0/3way.h Examining data/libcrypto++-8.2.0/TestPrograms/dump2def.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_32bit.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_64bit.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_arm_acle.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_arm_aes.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_arm_asimd.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_arm_crc.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_arm_neon.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_arm_pmull.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_arm_sha.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_arm_sha3.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_arm_sha512.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_arm_sm3.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_arm_sm4.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_cxx.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_mixed_asm.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_newlib.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_ppc_aes.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_ppc_altivec.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_ppc_power7.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_ppc_power8.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_ppc_power9.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_ppc_sha.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_ppc_vmull.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_pthreads.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_x86_aes.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_x86_avx.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_x86_avx2.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_x86_avx512.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_x86_clmul.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_x86_cpuid.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_x86_sha.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_x86_sse2.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_x86_sse3.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_x86_sse41.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_x86_sse42.cxx Examining data/libcrypto++-8.2.0/TestPrograms/test_x86_ssse3.cxx Examining data/libcrypto++-8.2.0/TestScripts/cryptest-coverity.cpp Examining data/libcrypto++-8.2.0/adler32.cpp Examining data/libcrypto++-8.2.0/adler32.h Examining data/libcrypto++-8.2.0/adv_simd.h Examining data/libcrypto++-8.2.0/aes.h Examining data/libcrypto++-8.2.0/aes_armv4.h Examining data/libcrypto++-8.2.0/algebra.cpp Examining data/libcrypto++-8.2.0/algebra.h Examining data/libcrypto++-8.2.0/algparam.cpp Examining data/libcrypto++-8.2.0/algparam.h Examining data/libcrypto++-8.2.0/arc4.cpp Examining data/libcrypto++-8.2.0/arc4.h Examining data/libcrypto++-8.2.0/argnames.h Examining data/libcrypto++-8.2.0/aria.cpp Examining data/libcrypto++-8.2.0/aria.h Examining data/libcrypto++-8.2.0/aria_simd.cpp Examining data/libcrypto++-8.2.0/ariatab.cpp Examining data/libcrypto++-8.2.0/arm_simd.h Examining data/libcrypto++-8.2.0/asn.cpp Examining data/libcrypto++-8.2.0/asn.h Examining data/libcrypto++-8.2.0/authenc.cpp Examining data/libcrypto++-8.2.0/authenc.h Examining data/libcrypto++-8.2.0/base32.cpp Examining data/libcrypto++-8.2.0/base32.h Examining data/libcrypto++-8.2.0/base64.cpp Examining data/libcrypto++-8.2.0/base64.h Examining data/libcrypto++-8.2.0/basecode.cpp Examining data/libcrypto++-8.2.0/basecode.h Examining data/libcrypto++-8.2.0/bench.h Examining data/libcrypto++-8.2.0/bench1.cpp Examining data/libcrypto++-8.2.0/bench2.cpp Examining data/libcrypto++-8.2.0/bench3.cpp Examining data/libcrypto++-8.2.0/bfinit.cpp Examining data/libcrypto++-8.2.0/blake2.cpp Examining data/libcrypto++-8.2.0/blake2.h Examining data/libcrypto++-8.2.0/blake2b_simd.cpp Examining data/libcrypto++-8.2.0/blake2s_simd.cpp Examining data/libcrypto++-8.2.0/blowfish.cpp Examining data/libcrypto++-8.2.0/blowfish.h Examining data/libcrypto++-8.2.0/blumshub.cpp Examining data/libcrypto++-8.2.0/blumshub.h Examining data/libcrypto++-8.2.0/camellia.cpp Examining data/libcrypto++-8.2.0/camellia.h Examining data/libcrypto++-8.2.0/cast.cpp Examining data/libcrypto++-8.2.0/cast.h Examining data/libcrypto++-8.2.0/casts.cpp Examining data/libcrypto++-8.2.0/cbcmac.cpp Examining data/libcrypto++-8.2.0/cbcmac.h Examining data/libcrypto++-8.2.0/ccm.cpp Examining data/libcrypto++-8.2.0/ccm.h Examining data/libcrypto++-8.2.0/chacha.cpp Examining data/libcrypto++-8.2.0/chacha.h Examining data/libcrypto++-8.2.0/chacha_avx.cpp Examining data/libcrypto++-8.2.0/chacha_simd.cpp Examining data/libcrypto++-8.2.0/chachapoly.cpp Examining data/libcrypto++-8.2.0/chachapoly.h Examining data/libcrypto++-8.2.0/cham.cpp Examining data/libcrypto++-8.2.0/cham.h Examining data/libcrypto++-8.2.0/cham_simd.cpp Examining data/libcrypto++-8.2.0/channels.cpp Examining data/libcrypto++-8.2.0/channels.h Examining data/libcrypto++-8.2.0/cmac.cpp Examining data/libcrypto++-8.2.0/cmac.h Examining data/libcrypto++-8.2.0/config.h Examining data/libcrypto++-8.2.0/cpu.cpp Examining data/libcrypto++-8.2.0/cpu.h Examining data/libcrypto++-8.2.0/crc.cpp Examining data/libcrypto++-8.2.0/crc.h Examining data/libcrypto++-8.2.0/crc_simd.cpp Examining data/libcrypto++-8.2.0/cryptlib.cpp Examining data/libcrypto++-8.2.0/cryptlib.h Examining data/libcrypto++-8.2.0/darn.cpp Examining data/libcrypto++-8.2.0/darn.h Examining data/libcrypto++-8.2.0/datatest.cpp Examining data/libcrypto++-8.2.0/default.cpp Examining data/libcrypto++-8.2.0/default.h Examining data/libcrypto++-8.2.0/des.cpp Examining data/libcrypto++-8.2.0/des.h Examining data/libcrypto++-8.2.0/dessp.cpp Examining data/libcrypto++-8.2.0/dh.cpp Examining data/libcrypto++-8.2.0/dh.h Examining data/libcrypto++-8.2.0/dh2.cpp Examining data/libcrypto++-8.2.0/dh2.h Examining data/libcrypto++-8.2.0/dll.cpp Examining data/libcrypto++-8.2.0/dll.h Examining data/libcrypto++-8.2.0/dlltest.cpp Examining data/libcrypto++-8.2.0/dmac.h Examining data/libcrypto++-8.2.0/donna.h Examining data/libcrypto++-8.2.0/donna_32.cpp Examining data/libcrypto++-8.2.0/donna_32.h Examining data/libcrypto++-8.2.0/donna_64.cpp Examining data/libcrypto++-8.2.0/donna_64.h Examining data/libcrypto++-8.2.0/donna_sse.cpp Examining data/libcrypto++-8.2.0/donna_sse.h Examining data/libcrypto++-8.2.0/drbg.h Examining data/libcrypto++-8.2.0/dsa.cpp Examining data/libcrypto++-8.2.0/dsa.h Examining data/libcrypto++-8.2.0/eax.cpp Examining data/libcrypto++-8.2.0/eax.h Examining data/libcrypto++-8.2.0/ec2n.cpp Examining data/libcrypto++-8.2.0/ec2n.h Examining data/libcrypto++-8.2.0/eccrypto.cpp Examining data/libcrypto++-8.2.0/eccrypto.h Examining data/libcrypto++-8.2.0/ecp.h Examining data/libcrypto++-8.2.0/ecpoint.h Examining data/libcrypto++-8.2.0/elgamal.cpp Examining data/libcrypto++-8.2.0/elgamal.h Examining data/libcrypto++-8.2.0/emsa2.cpp Examining data/libcrypto++-8.2.0/emsa2.h Examining data/libcrypto++-8.2.0/eprecomp.cpp Examining data/libcrypto++-8.2.0/eprecomp.h Examining data/libcrypto++-8.2.0/esign.cpp Examining data/libcrypto++-8.2.0/esign.h Examining data/libcrypto++-8.2.0/factory.h Examining data/libcrypto++-8.2.0/fhmqv.h Examining data/libcrypto++-8.2.0/files.cpp Examining data/libcrypto++-8.2.0/files.h Examining data/libcrypto++-8.2.0/filters.cpp Examining data/libcrypto++-8.2.0/filters.h Examining data/libcrypto++-8.2.0/fips140.cpp Examining data/libcrypto++-8.2.0/fips140.h Examining data/libcrypto++-8.2.0/fipsalgt.cpp Examining data/libcrypto++-8.2.0/fipstest.cpp Examining data/libcrypto++-8.2.0/fltrimpl.h Examining data/libcrypto++-8.2.0/gcm.cpp Examining data/libcrypto++-8.2.0/gcm.h Examining data/libcrypto++-8.2.0/gcm_simd.cpp Examining data/libcrypto++-8.2.0/gf256.cpp Examining data/libcrypto++-8.2.0/gf256.h Examining data/libcrypto++-8.2.0/gf2_32.cpp Examining data/libcrypto++-8.2.0/gf2_32.h Examining data/libcrypto++-8.2.0/gf2n.cpp Examining data/libcrypto++-8.2.0/gf2n.h Examining data/libcrypto++-8.2.0/gf2n_simd.cpp Examining data/libcrypto++-8.2.0/gfpcrypt.cpp Examining data/libcrypto++-8.2.0/gfpcrypt.h Examining data/libcrypto++-8.2.0/gost.cpp Examining data/libcrypto++-8.2.0/gost.h Examining data/libcrypto++-8.2.0/gzip.cpp Examining data/libcrypto++-8.2.0/gzip.h Examining data/libcrypto++-8.2.0/hashfwd.h Examining data/libcrypto++-8.2.0/hc128.cpp Examining data/libcrypto++-8.2.0/hc128.h Examining data/libcrypto++-8.2.0/hc256.cpp Examining data/libcrypto++-8.2.0/hc256.h Examining data/libcrypto++-8.2.0/hex.cpp Examining data/libcrypto++-8.2.0/hex.h Examining data/libcrypto++-8.2.0/hight.cpp Examining data/libcrypto++-8.2.0/hight.h Examining data/libcrypto++-8.2.0/hkdf.h Examining data/libcrypto++-8.2.0/hmac.cpp Examining data/libcrypto++-8.2.0/hmac.h Examining data/libcrypto++-8.2.0/hmqv.h Examining data/libcrypto++-8.2.0/hrtimer.cpp Examining data/libcrypto++-8.2.0/hrtimer.h Examining data/libcrypto++-8.2.0/ida.cpp Examining data/libcrypto++-8.2.0/ida.h Examining data/libcrypto++-8.2.0/idea.cpp Examining data/libcrypto++-8.2.0/idea.h Examining data/libcrypto++-8.2.0/integer.cpp Examining data/libcrypto++-8.2.0/integer.h Examining data/libcrypto++-8.2.0/iterhash.cpp Examining data/libcrypto++-8.2.0/iterhash.h Examining data/libcrypto++-8.2.0/kalyna.cpp Examining data/libcrypto++-8.2.0/kalyna.h Examining data/libcrypto++-8.2.0/kalynatab.cpp Examining data/libcrypto++-8.2.0/keccak.cpp Examining data/libcrypto++-8.2.0/keccak.h Examining data/libcrypto++-8.2.0/keccak_core.cpp Examining data/libcrypto++-8.2.0/keccak_simd.cpp Examining data/libcrypto++-8.2.0/lea.cpp Examining data/libcrypto++-8.2.0/lea.h Examining data/libcrypto++-8.2.0/lea_simd.cpp Examining data/libcrypto++-8.2.0/lubyrack.h Examining data/libcrypto++-8.2.0/luc.cpp Examining data/libcrypto++-8.2.0/luc.h Examining data/libcrypto++-8.2.0/mars.cpp Examining data/libcrypto++-8.2.0/mars.h Examining data/libcrypto++-8.2.0/marss.cpp Examining data/libcrypto++-8.2.0/md2.cpp Examining data/libcrypto++-8.2.0/md2.h Examining data/libcrypto++-8.2.0/md4.cpp Examining data/libcrypto++-8.2.0/md4.h Examining data/libcrypto++-8.2.0/md5.cpp Examining data/libcrypto++-8.2.0/md5.h Examining data/libcrypto++-8.2.0/mdc.h Examining data/libcrypto++-8.2.0/mersenne.h Examining data/libcrypto++-8.2.0/misc.cpp Examining data/libcrypto++-8.2.0/misc.h Examining data/libcrypto++-8.2.0/modarith.h Examining data/libcrypto++-8.2.0/modes.cpp Examining data/libcrypto++-8.2.0/modes.h Examining data/libcrypto++-8.2.0/modexppc.h Examining data/libcrypto++-8.2.0/mqueue.cpp Examining data/libcrypto++-8.2.0/mqueue.h Examining data/libcrypto++-8.2.0/mqv.cpp Examining data/libcrypto++-8.2.0/mqv.h Examining data/libcrypto++-8.2.0/naclite.h Examining data/libcrypto++-8.2.0/nbtheory.cpp Examining data/libcrypto++-8.2.0/nbtheory.h Examining data/libcrypto++-8.2.0/neon_simd.cpp Examining data/libcrypto++-8.2.0/nr.h Examining data/libcrypto++-8.2.0/oaep.cpp Examining data/libcrypto++-8.2.0/oaep.h Examining data/libcrypto++-8.2.0/oids.h Examining data/libcrypto++-8.2.0/osrng.cpp Examining data/libcrypto++-8.2.0/osrng.h Examining data/libcrypto++-8.2.0/ossig.h Examining data/libcrypto++-8.2.0/padlkrng.cpp Examining data/libcrypto++-8.2.0/padlkrng.h Examining data/libcrypto++-8.2.0/panama.cpp Examining data/libcrypto++-8.2.0/panama.h Examining data/libcrypto++-8.2.0/pch.cpp Examining data/libcrypto++-8.2.0/pch.h Examining data/libcrypto++-8.2.0/pkcspad.cpp Examining data/libcrypto++-8.2.0/pkcspad.h Examining data/libcrypto++-8.2.0/poly1305.cpp Examining data/libcrypto++-8.2.0/poly1305.h Examining data/libcrypto++-8.2.0/polynomi.cpp Examining data/libcrypto++-8.2.0/polynomi.h Examining data/libcrypto++-8.2.0/ppc_power7.cpp Examining data/libcrypto++-8.2.0/ppc_power8.cpp Examining data/libcrypto++-8.2.0/ppc_power9.cpp Examining data/libcrypto++-8.2.0/ppc_simd.cpp Examining data/libcrypto++-8.2.0/ppc_simd.h Examining data/libcrypto++-8.2.0/pssr.cpp Examining data/libcrypto++-8.2.0/pssr.h Examining data/libcrypto++-8.2.0/pubkey.cpp Examining data/libcrypto++-8.2.0/pwdbased.h Examining data/libcrypto++-8.2.0/queue.cpp Examining data/libcrypto++-8.2.0/queue.h Examining data/libcrypto++-8.2.0/rabbit.cpp Examining data/libcrypto++-8.2.0/rabbit.h Examining data/libcrypto++-8.2.0/rabin.cpp Examining data/libcrypto++-8.2.0/rabin.h Examining data/libcrypto++-8.2.0/randpool.cpp Examining data/libcrypto++-8.2.0/randpool.h Examining data/libcrypto++-8.2.0/rc2.cpp Examining data/libcrypto++-8.2.0/rc2.h Examining data/libcrypto++-8.2.0/rc5.cpp Examining data/libcrypto++-8.2.0/rc5.h Examining data/libcrypto++-8.2.0/rc6.cpp Examining data/libcrypto++-8.2.0/rc6.h Examining data/libcrypto++-8.2.0/rdrand.cpp Examining data/libcrypto++-8.2.0/rdrand.h Examining data/libcrypto++-8.2.0/rdtables.cpp Examining data/libcrypto++-8.2.0/regtest1.cpp Examining data/libcrypto++-8.2.0/regtest2.cpp Examining data/libcrypto++-8.2.0/regtest3.cpp Examining data/libcrypto++-8.2.0/regtest4.cpp Examining data/libcrypto++-8.2.0/resource.h Examining data/libcrypto++-8.2.0/rijndael.cpp Examining data/libcrypto++-8.2.0/rijndael.h Examining data/libcrypto++-8.2.0/rijndael_simd.cpp Examining data/libcrypto++-8.2.0/ripemd.cpp Examining data/libcrypto++-8.2.0/ripemd.h Examining data/libcrypto++-8.2.0/rng.cpp Examining data/libcrypto++-8.2.0/rng.h Examining data/libcrypto++-8.2.0/rsa.cpp Examining data/libcrypto++-8.2.0/rsa.h Examining data/libcrypto++-8.2.0/rw.cpp Examining data/libcrypto++-8.2.0/rw.h Examining data/libcrypto++-8.2.0/safer.cpp Examining data/libcrypto++-8.2.0/safer.h Examining data/libcrypto++-8.2.0/salsa.cpp Examining data/libcrypto++-8.2.0/salsa.h Examining data/libcrypto++-8.2.0/scrypt.cpp Examining data/libcrypto++-8.2.0/scrypt.h Examining data/libcrypto++-8.2.0/seal.cpp Examining data/libcrypto++-8.2.0/seal.h Examining data/libcrypto++-8.2.0/secblock.h Examining data/libcrypto++-8.2.0/seckey.h Examining data/libcrypto++-8.2.0/seed.cpp Examining data/libcrypto++-8.2.0/seed.h Examining data/libcrypto++-8.2.0/serpent.cpp Examining data/libcrypto++-8.2.0/serpent.h Examining data/libcrypto++-8.2.0/serpentp.h Examining data/libcrypto++-8.2.0/sha.cpp Examining data/libcrypto++-8.2.0/sha.h Examining data/libcrypto++-8.2.0/sha3.cpp Examining data/libcrypto++-8.2.0/sha3.h Examining data/libcrypto++-8.2.0/sha_simd.cpp Examining data/libcrypto++-8.2.0/shacal2.cpp Examining data/libcrypto++-8.2.0/shacal2.h Examining data/libcrypto++-8.2.0/shacal2_simd.cpp Examining data/libcrypto++-8.2.0/shake.cpp Examining data/libcrypto++-8.2.0/shake.h Examining data/libcrypto++-8.2.0/shark.cpp Examining data/libcrypto++-8.2.0/shark.h Examining data/libcrypto++-8.2.0/sharkbox.cpp Examining data/libcrypto++-8.2.0/simeck.cpp Examining data/libcrypto++-8.2.0/simeck.h Examining data/libcrypto++-8.2.0/simeck_simd.cpp Examining data/libcrypto++-8.2.0/simon.cpp Examining data/libcrypto++-8.2.0/simon.h Examining data/libcrypto++-8.2.0/simon128_simd.cpp Examining data/libcrypto++-8.2.0/simon64_simd.cpp Examining data/libcrypto++-8.2.0/simple.cpp Examining data/libcrypto++-8.2.0/simple.h Examining data/libcrypto++-8.2.0/siphash.h Examining data/libcrypto++-8.2.0/skipjack.cpp Examining data/libcrypto++-8.2.0/skipjack.h Examining data/libcrypto++-8.2.0/sm3.cpp Examining data/libcrypto++-8.2.0/sm3.h Examining data/libcrypto++-8.2.0/sm4.cpp Examining data/libcrypto++-8.2.0/sm4.h Examining data/libcrypto++-8.2.0/sm4_simd.cpp Examining data/libcrypto++-8.2.0/smartptr.h Examining data/libcrypto++-8.2.0/sosemanuk.cpp Examining data/libcrypto++-8.2.0/sosemanuk.h Examining data/libcrypto++-8.2.0/speck.cpp Examining data/libcrypto++-8.2.0/speck.h Examining data/libcrypto++-8.2.0/speck128_simd.cpp Examining data/libcrypto++-8.2.0/speck64_simd.cpp Examining data/libcrypto++-8.2.0/square.cpp Examining data/libcrypto++-8.2.0/square.h Examining data/libcrypto++-8.2.0/squaretb.cpp Examining data/libcrypto++-8.2.0/sse_simd.cpp Examining data/libcrypto++-8.2.0/stdcpp.h Examining data/libcrypto++-8.2.0/strciphr.cpp Examining data/libcrypto++-8.2.0/strciphr.h Examining data/libcrypto++-8.2.0/tea.cpp Examining data/libcrypto++-8.2.0/tea.h Examining data/libcrypto++-8.2.0/test.cpp Examining data/libcrypto++-8.2.0/tftables.cpp Examining data/libcrypto++-8.2.0/threefish.cpp Examining data/libcrypto++-8.2.0/threefish.h Examining data/libcrypto++-8.2.0/tiger.cpp Examining data/libcrypto++-8.2.0/tiger.h Examining data/libcrypto++-8.2.0/tigertab.cpp Examining data/libcrypto++-8.2.0/trap.h Examining data/libcrypto++-8.2.0/trunhash.h Examining data/libcrypto++-8.2.0/ttmac.cpp Examining data/libcrypto++-8.2.0/ttmac.h Examining data/libcrypto++-8.2.0/tweetnacl.cpp Examining data/libcrypto++-8.2.0/tweetnacl.h Examining data/libcrypto++-8.2.0/twofish.cpp Examining data/libcrypto++-8.2.0/twofish.h Examining data/libcrypto++-8.2.0/validat0.cpp Examining data/libcrypto++-8.2.0/validat1.cpp Examining data/libcrypto++-8.2.0/validat10.cpp Examining data/libcrypto++-8.2.0/validat2.cpp Examining data/libcrypto++-8.2.0/validat3.cpp Examining data/libcrypto++-8.2.0/validat4.cpp Examining data/libcrypto++-8.2.0/validat5.cpp Examining data/libcrypto++-8.2.0/validat6.cpp Examining data/libcrypto++-8.2.0/validat7.cpp Examining data/libcrypto++-8.2.0/validat8.cpp Examining data/libcrypto++-8.2.0/validat9.cpp Examining data/libcrypto++-8.2.0/validate.h Examining data/libcrypto++-8.2.0/vmac.cpp Examining data/libcrypto++-8.2.0/vmac.h Examining data/libcrypto++-8.2.0/wake.cpp Examining data/libcrypto++-8.2.0/wake.h Examining data/libcrypto++-8.2.0/whrlpool.cpp Examining data/libcrypto++-8.2.0/whrlpool.h Examining data/libcrypto++-8.2.0/words.h Examining data/libcrypto++-8.2.0/xed25519.cpp Examining data/libcrypto++-8.2.0/xed25519.h Examining data/libcrypto++-8.2.0/xtr.cpp Examining data/libcrypto++-8.2.0/xtr.h Examining data/libcrypto++-8.2.0/xtrcrypt.cpp Examining data/libcrypto++-8.2.0/xtrcrypt.h Examining data/libcrypto++-8.2.0/zdeflate.cpp Examining data/libcrypto++-8.2.0/zdeflate.h Examining data/libcrypto++-8.2.0/zinflate.cpp Examining data/libcrypto++-8.2.0/zinflate.h Examining data/libcrypto++-8.2.0/zlib.cpp Examining data/libcrypto++-8.2.0/zlib.h Examining data/libcrypto++-8.2.0/pubkey.h Examining data/libcrypto++-8.2.0/ecp.cpp FINAL RESULTS: data/libcrypto++-8.2.0/test.cpp:495:19: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. char* resolved = realpath (pathHint.c_str(), NULLPTR); data/libcrypto++-8.2.0/test.cpp:503:12: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. char* r = realpath (pathHint.c_str(), &resolved[0]); data/libcrypto++-8.2.0/TestPrograms/test_ppc_power7.cxx:23: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 res[16]; data/libcrypto++-8.2.0/adv_simd.h:912:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp, inBlocks, blockSize); data/libcrypto++-8.2.0/adv_simd.h:921:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(const_cast<byte*>(inBlocks), temp, blockSize); data/libcrypto++-8.2.0/adv_simd.h:980:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp, inBlocks, blockSize); data/libcrypto++-8.2.0/adv_simd.h:985:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp, xorBlocks, blockSize); data/libcrypto++-8.2.0/adv_simd.h:996:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp, xorBlocks, blockSize); data/libcrypto++-8.2.0/adv_simd.h:1001:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(outBlocks, temp, blockSize); data/libcrypto++-8.2.0/adv_simd.h:1067:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp, inBlocks, blockSize); data/libcrypto++-8.2.0/adv_simd.h:1080:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(const_cast<byte*>(inBlocks), temp, blockSize); data/libcrypto++-8.2.0/adv_simd.h:1160:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp, inBlocks, blockSize); data/libcrypto++-8.2.0/adv_simd.h:1169:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(const_cast<byte*>(inBlocks), temp, blockSize); data/libcrypto++-8.2.0/adv_simd.h:1229:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp, inBlocks, blockSize); data/libcrypto++-8.2.0/adv_simd.h:1234:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp, xorBlocks, blockSize); data/libcrypto++-8.2.0/adv_simd.h:1246:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp, xorBlocks, blockSize); data/libcrypto++-8.2.0/adv_simd.h:1252:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(outBlocks, temp, blockSize); data/libcrypto++-8.2.0/adv_simd.h:1644:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp, inBlocks, blockSize); data/libcrypto++-8.2.0/adv_simd.h:1655:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(const_cast<byte*>(inBlocks), temp, blockSize); data/libcrypto++-8.2.0/adv_simd.h:1730:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp, inBlocks, blockSize); data/libcrypto++-8.2.0/adv_simd.h:1735:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp, xorBlocks, blockSize); data/libcrypto++-8.2.0/adv_simd.h:1746:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp, xorBlocks, blockSize); data/libcrypto++-8.2.0/adv_simd.h:1751:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(outBlocks, temp, blockSize); data/libcrypto++-8.2.0/adv_simd.h:1832:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp+LowOffset, inBlocks, 8); data/libcrypto++-8.2.0/adv_simd.h:1833:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp+HighOffset, inBlocks, 8); data/libcrypto++-8.2.0/adv_simd.h:1926:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp+LowOffset, inBlocks, 8); data/libcrypto++-8.2.0/adv_simd.h:1927:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp+HighOffset, inBlocks, 8); data/libcrypto++-8.2.0/adv_simd.h:2005:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp+LowOffset, inBlocks, 8); data/libcrypto++-8.2.0/adv_simd.h:2006:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp+HighOffset, inBlocks, 8); // don't care data/libcrypto++-8.2.0/adv_simd.h:2011:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp+LowOffset, xorBlocks, 8); data/libcrypto++-8.2.0/adv_simd.h:2012:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp+HighOffset, xorBlocks, 8); // don't care data/libcrypto++-8.2.0/adv_simd.h:2025:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp+LowOffset, xorBlocks, 8); data/libcrypto++-8.2.0/adv_simd.h:2026:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(temp+HighOffset, xorBlocks, 8); // don't care data/libcrypto++-8.2.0/adv_simd.h:2032:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(outBlocks, temp+LowOffset, 8); data/libcrypto++-8.2.0/aes_armv4.h:23:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 AES_encrypt(const unsigned char in[16], unsigned char out[16], const unsigned int *rkey); data/libcrypto++-8.2.0/aes_armv4.h:23:55: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 AES_encrypt(const unsigned char in[16], unsigned char out[16], const unsigned int *rkey); data/libcrypto++-8.2.0/aes_armv4.h:24:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 AES_decrypt(const unsigned char in[16], unsigned char out[16], const unsigned int *rkey); data/libcrypto++-8.2.0/aes_armv4.h:24:55: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 AES_decrypt(const unsigned char in[16], unsigned char out[16], const unsigned int *rkey); data/libcrypto++-8.2.0/aria.cpp:162: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(t, w1, 16); data/libcrypto++-8.2.0/aria.cpp:170: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(w2, t, 16); data/libcrypto++-8.2.0/aria.cpp: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(t, a, 16); ::memcpy(a, z, 16); ::memcpy(z, t, 16); data/libcrypto++-8.2.0/aria.cpp:222: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(t, a, 16); ::memcpy(a, z, 16); ::memcpy(z, t, 16); data/libcrypto++-8.2.0/aria.cpp:222:45: [2] (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, a, 16); ::memcpy(a, z, 16); ::memcpy(z, t, 16); data/libcrypto++-8.2.0/aria.cpp:229: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(s, t, 16); data/libcrypto++-8.2.0/aria.cpp:233: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(a, t, 16); ::memcpy(z, s, 16); data/libcrypto++-8.2.0/aria.cpp:233:26: [2] (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, t, 16); ::memcpy(z, s, 16); data/libcrypto++-8.2.0/aria.cpp:238:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. ::memcpy(z, t, 16); data/libcrypto++-8.2.0/authenc.cpp:25: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(data+num, input, blockSize-num); data/libcrypto++-8.2.0/authenc.cpp:34: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(data+num, input, len); data/libcrypto++-8.2.0/authenc.cpp:49: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(data, input, len); data/libcrypto++-8.2.0/blake2.cpp:403:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(m_key, key, length); data/libcrypto++-8.2.0/blake2.cpp:435:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(m_key, key, length); data/libcrypto++-8.2.0/blake2.cpp:491:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(m_block.data(), block.data(), m_block.size()); data/libcrypto++-8.2.0/blake2.cpp:524:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(m_block.data(), block.data(), m_block.size()); data/libcrypto++-8.2.0/blake2.cpp:550:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(m_state.m_buf+m_state.m_len, input, fill); data/libcrypto++-8.2.0/blake2.cpp:572:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(m_state.m_buf+m_state.m_len, input, length); data/libcrypto++-8.2.0/blake2.cpp:587:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(m_state.m_buf+m_state.m_len, input, fill); data/libcrypto++-8.2.0/blake2.cpp:610:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(m_state.m_buf + m_state.m_len, input, length); data/libcrypto++-8.2.0/blake2.cpp:635: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. std::memcpy(hash, m_state.h(), size); data/libcrypto++-8.2.0/blake2.cpp:660: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. std::memcpy(hash, m_state.h(), size); data/libcrypto++-8.2.0/blowfish.cpp:16: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(pbox, p_init, sizeof(p_init)); data/libcrypto++-8.2.0/blowfish.cpp:17: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(sbox, s_init, sizeof(s_init)); data/libcrypto++-8.2.0/cbcmac.cpp:50: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(mac, m_reg, size); data/libcrypto++-8.2.0/ccm.cpp:37: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(m_buffer+1, iv, len); data/libcrypto++-8.2.0/ccm.cpp:63: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(cbcBuffer+1, m_buffer+1, REQUIRED_BLOCKSIZE-1-m_L); data/libcrypto++-8.2.0/chacha.cpp:453: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. std::memcpy(m_state+4, m_state+KEY, 8*sizeof(word32)); data/libcrypto++-8.2.0/chacha.cpp:545: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. std::memcpy(m_state+4, m_state+KEY, 8*sizeof(word32)); data/libcrypto++-8.2.0/cmac.cpp:69: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(m_reg+2*blockSize, m_reg+blockSize, blockSize); data/libcrypto++-8.2.0/cmac.cpp:133: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(mac, m_reg, size); data/libcrypto++-8.2.0/cpu.cpp:96: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). version = std::atoi(machine.substr(pos).c_str()); data/libcrypto++-8.2.0/darn.cpp:147:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(output, m_temp, i); data/libcrypto++-8.2.0/darn.cpp:163:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(output, m_temp, size); data/libcrypto++-8.2.0/darn.cpp:173:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(output, m_temp, i); data/libcrypto++-8.2.0/darn.cpp:188:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(output, m_temp, size); data/libcrypto++-8.2.0/datatest.cpp:161:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). repeat = ::atoi(s1.c_str()); data/libcrypto++-8.2.0/datatest.cpp:266:39: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *reinterpret_cast<int *>(pValue) = atoi(value.c_str()); data/libcrypto++-8.2.0/default.cpp:51: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(buf, outBuf, bufSize); data/libcrypto++-8.2.0/default.cpp:62: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(out, outBuf, outLen); data/libcrypto++-8.2.0/default.cpp:71: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(temp, passphrase, passphraseLength); data/libcrypto++-8.2.0/default.cpp:73: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(temp+passphraseLength, salt, saltLength); data/libcrypto++-8.2.0/default.cpp:78: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(key, keyIV, Info::KEYLENGTH); data/libcrypto++-8.2.0/default.cpp: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(IV, keyIV+Info::KEYLENGTH, Info::BLOCKSIZE); data/libcrypto++-8.2.0/des.cpp:453: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(m_x1, key + (IsForwardTransformation() ? 0 : 16), BLOCKSIZE); data/libcrypto++-8.2.0/des.cpp:455: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(m_x3, key + (IsForwardTransformation() ? 16 : 0), BLOCKSIZE); data/libcrypto++-8.2.0/donna_32.cpp:1246: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(work, in, len); data/libcrypto++-8.2.0/donna_32.cpp:1330:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. contract256_window4_modm(signed char r[64], const bignum256modm in) { data/libcrypto++-8.2.0/donna_32.cpp:1367:39: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. contract256_slidingwindow_modm(signed char r[256], const bignum256modm s, int windowsize) { data/libcrypto++-8.2.0/donna_32.cpp:1645: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 slide1[256], slide2[256]; data/libcrypto++-8.2.0/donna_32.cpp:1724: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 b[64]; data/libcrypto++-8.2.0/donna_64.cpp: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(work, in, len); data/libcrypto++-8.2.0/donna_64.cpp:994:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. contract256_window4_modm(signed char r[64], const bignum256modm in) { data/libcrypto++-8.2.0/donna_64.cpp:1021:39: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. contract256_slidingwindow_modm(signed char r[256], const bignum256modm s, int windowsize) { data/libcrypto++-8.2.0/donna_64.cpp:1360: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 slide1[256], slide2[256]; data/libcrypto++-8.2.0/donna_64.cpp:1439: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 b[64]; data/libcrypto++-8.2.0/drbg.h:641: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(output, m_v, count); data/libcrypto++-8.2.0/elgamal.h:66: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(block+modulusLen-2-plainTextLength, plainText, plainTextLength); data/libcrypto++-8.2.0/esign.cpp:115: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(seed + 4, seedParam.begin(), seedParam.size()); data/libcrypto++-8.2.0/fhmqv.h:112: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(publicKey, privateKey+StaticPrivateKeyLength(), EphemeralPublicKeyLength()); data/libcrypto++-8.2.0/files.cpp:49:11: [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). m_file->open(fileNameWide, std::ios::in | binary); data/libcrypto++-8.2.0/files.cpp:56:11: [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). m_file->open(fileName, std::ios::in | binary); data/libcrypto++-8.2.0/files.cpp:204:11: [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). m_file->open(fileNameWide, std::ios::out | std::ios::trunc | binary); data/libcrypto++-8.2.0/files.cpp:211:11: [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). m_file->open(fileName, std::ios::out | std::ios::trunc | binary); data/libcrypto++-8.2.0/filters.cpp:295: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(outString, ptr, numberOfBytes); data/libcrypto++-8.2.0/filters.cpp:296: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(PtrAdd(outString, numberOfBytes), m_begin, m_size); data/libcrypto++-8.2.0/filters.cpp:310: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(end, inString, len); data/libcrypto++-8.2.0/filters.cpp:312: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(m_buffer, PtrAdd(inString, len), length-len); data/libcrypto++-8.2.0/filters.cpp:761:20: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (inString) {memcpy(space, inString, length);} data/libcrypto++-8.2.0/filters.cpp:794:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (inString) {memcpy(space, inString, length);} data/libcrypto++-8.2.0/filters.cpp:911:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (inString) {memcpy(m_expectedHash, inString, m_expectedHash.size());} data/libcrypto++-8.2.0/filters.cpp:1106:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (inString) {memcpy(m_signature, inString, m_signature.size());} data/libcrypto++-8.2.0/fipsalgt.cpp:277: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(x + k, text[pos / blockSize] + pos % blockSize, blockSize - pos % blockSize); data/libcrypto++-8.2.0/fipsalgt.cpp:431:18: [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). int modLen = atol(m_bracketString.substr(6).c_str()); data/libcrypto++-8.2.0/fipsalgt.cpp:438:13: [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). int n = atol(m_data["N"].c_str()); data/libcrypto++-8.2.0/fipsalgt.cpp:453:13: [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). int n = atol(m_data["N"].c_str()); data/libcrypto++-8.2.0/fipsalgt.cpp:481:18: [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). int modLen = atol(m_bracketString.substr(6).c_str()); data/libcrypto++-8.2.0/fipsalgt.cpp:540:13: [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). int c = atol(m_data["c"].c_str()); data/libcrypto++-8.2.0/fipsalgt.cpp:589:30: [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). EC_KeyPair<ECP>(output, atol(m_data["N"].c_str()), name2oid[m_bracketString]); data/libcrypto++-8.2.0/fipsalgt.cpp:591:31: [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). EC_KeyPair<EC2N>(output, atol(m_data["N"].c_str()), name2oid[m_bracketString]); data/libcrypto++-8.2.0/fipsalgt.cpp:640:18: [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). int modLen = atol(m_bracketString.substr(6).c_str()); data/libcrypto++-8.2.0/fipsalgt.cpp:717:15: [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). int len = atol(m_data["Len"].c_str()); data/libcrypto++-8.2.0/fipsalgt.cpp:792:15: [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). int Tlen = atol(m_data["Tlen"].c_str()); data/libcrypto++-8.2.0/fipsalgt.cpp:921: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(IB[j+1], IB[j]+K/8, blockSize-K/8); data/libcrypto++-8.2.0/fipsalgt.cpp:922: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(IB[j+1]+blockSize-K/8, CT[j], K/8); data/libcrypto++-8.2.0/fipsalgt.cpp:931: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(IB[j+1], IB[j]+K/8, blockSize-K/8); data/libcrypto++-8.2.0/fipsalgt.cpp:932: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(IB[j+1]+blockSize-K/8, CT[j], K/8); data/libcrypto++-8.2.0/fipsalgt.cpp:1130:32: [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). m_compactString.push_back(atol(tokens[i].c_str())); data/libcrypto++-8.2.0/fipsalgt.cpp:1238:23: [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). mode = IntToString(atol(filename.substr(3, 3).c_str())); data/libcrypto++-8.2.0/fipsalgt.cpp:1247:47: [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). unsigned int feedbackSize = mode == "CFB" ? atoi(filename.substr(filename.find_first_of("0123456789")).c_str()) : 0; data/libcrypto++-8.2.0/fipstest.cpp:299: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 moduleFilenameBuf[FIPS_MODULE_MAX_PATH] = ""; data/libcrypto++-8.2.0/fipstest.cpp:303:3: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t wideModuleFilename[FIPS_MODULE_MAX_PATH]; data/libcrypto++-8.2.0/fipstest.cpp:306: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). moduleStream.open(wideModuleFilename, std::ios::in | std::ios::binary); data/libcrypto++-8.2.0/fipstest.cpp:319: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). moduleStream.open(moduleFilename, std::ios::in | std::ios::binary); data/libcrypto++-8.2.0/gcm.cpp:327: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(hashBuffer, iv, len); data/libcrypto++-8.2.0/gcm.cpp:344: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(m_buffer, iv, len); data/libcrypto++-8.2.0/gcm_simd.cpp:631:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(mulTable+i, temp+0, 8); data/libcrypto++-8.2.0/gcm_simd.cpp:635:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(mulTable+i+8, temp+0, 8); data/libcrypto++-8.2.0/gcm_simd.cpp:641: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. std::memcpy(mulTable+i, temp+0, 8); data/libcrypto++-8.2.0/gcm_simd.cpp:645: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. std::memcpy(mulTable+i+8, temp+0, 8); data/libcrypto++-8.2.0/gfpcrypt.h:355:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(t, block + offset, rlen); data/libcrypto++-8.2.0/gfpcrypt.h:361:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(t + offset, block, rlen - offset); data/libcrypto++-8.2.0/hkdf.h:167: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. std::memcpy(derived, buffer, segmentLen); data/libcrypto++-8.2.0/hmac.cpp:26: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(AccessIpad(), userKey, keylength); data/libcrypto++-8.2.0/hmqv.h:111:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(publicKey, privateKey+StaticPrivateKeyLength(), EphemeralPublicKeyLength()); data/libcrypto++-8.2.0/integer.cpp:2557: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(R, X+N, N*WORD_SIZE); data/libcrypto++-8.2.0/integer.cpp:2583: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(R, X+N, N*WORD_SIZE); data/libcrypto++-8.2.0/integer.cpp:3542: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(m_counterAndSeed + 4, seed, ClampSize(seedSize)); data/libcrypto++-8.2.0/iterhash.cpp:36: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. {std::memcpy(data+num, input, blockSize-num);} data/libcrypto++-8.2.0/iterhash.cpp:47: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. {std::memcpy(data+num, input, length);} data/libcrypto++-8.2.0/iterhash.cpp:72: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. { std::memcpy(data, input, blockSize); } data/libcrypto++-8.2.0/iterhash.cpp:82: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. std::memcpy(data, input, length); data/libcrypto++-8.2.0/iterhash.cpp:114: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. std::memcpy(dataBuf, input, blockSize); data/libcrypto++-8.2.0/iterhash.cpp:128: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. std::memcpy(dataBuf, input, blockSize); data/libcrypto++-8.2.0/iterhash.cpp:186: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. std::memcpy(digest, stateBuf, size); data/libcrypto++-8.2.0/kalyna.cpp: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(odd, even + V, U - V); data/libcrypto++-8.2.0/kalyna.cpp:83: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(odd + U - V, even, V); data/libcrypto++-8.2.0/kalyna.cpp:435: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, key, 16); data/libcrypto++-8.2.0/kalyna.cpp:501: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(ka, key, 16); data/libcrypto++-8.2.0/kalyna.cpp:502: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(ko, key + 2, 16); data/libcrypto++-8.2.0/kalyna.cpp:512: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, key, 256 / 8); data/libcrypto++-8.2.0/kalyna.cpp:611: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, key, 32); data/libcrypto++-8.2.0/kalyna.cpp:705: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(ka, key, 32); data/libcrypto++-8.2.0/kalyna.cpp:706: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(ko, key+4, 32); data/libcrypto++-8.2.0/kalyna.cpp:716: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, key, 512 / 8); data/libcrypto++-8.2.0/kalyna.cpp:836: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, key, 512 / 8); data/libcrypto++-8.2.0/keccak.cpp:63: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. std::memcpy(hash, m_state, size); data/libcrypto++-8.2.0/keccak_simd.cpp:67:20: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. double x; std::memcpy(&x, &a, 8); data/libcrypto++-8.2.0/lubyrack.h: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(outBlock, this->buffer, 2*this->S); data/libcrypto++-8.2.0/md2.cpp:64: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(m_buf+m_count, buf, L); data/libcrypto++-8.2.0/md2.cpp:74: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(m_X+16, m_buf, 16); data/libcrypto++-8.2.0/md2.cpp:114: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(hash, m_X, size); data/libcrypto++-8.2.0/mersenne.h:76: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(output, &temp, 4); data/libcrypto++-8.2.0/misc.h:121: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 dummy[2*b-1]; data/libcrypto++-8.2.0/misc.h:464: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(dest, src, count); data/libcrypto++-8.2.0/misc.h:2391: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(&temp, block, sizeof(T)); data/libcrypto++-8.2.0/misc.h:2434: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. if (xorBlock) {memcpy(&t2, xorBlock, sizeof(T)); t1 ^= t2;} data/libcrypto++-8.2.0/misc.h:2435: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(block, &t1, sizeof(T)); data/libcrypto++-8.2.0/modes.cpp:47: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(m_register, PtrAdd(output,(iterationCount-1)*s), s); data/libcrypto++-8.2.0/modes.cpp:52: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(m_temp, PtrAdd(input,(iterationCount-1)*s), s); data/libcrypto++-8.2.0/modes.cpp:56: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(m_register, m_temp, s); data/libcrypto++-8.2.0/modes.cpp:111: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(m_register, PtrAdd(keystreamBuffer, (iterationCount-1)*s), s); data/libcrypto++-8.2.0/modes.cpp:207: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(m_register, PtrAdd(outString, length - blockSize), blockSize); data/libcrypto++-8.2.0/modes.cpp:222: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(outString, m_register, inLength); data/libcrypto++-8.2.0/modes.cpp:232: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(PtrAdd(outString, blockSize), m_register, inLength); data/libcrypto++-8.2.0/modes.cpp:238: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(outString, m_register, blockSize); data/libcrypto++-8.2.0/modes.cpp:256: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(m_temp, PtrAdd(inString,length-blockSize), blockSize); data/libcrypto++-8.2.0/modes.cpp:284: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(m_temp, pn2, blockSize); data/libcrypto++-8.2.0/modes.cpp:290: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(outString, m_temp, inLength); data/libcrypto++-8.2.0/modes.cpp:294: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(PtrAdd(outString, blockSize), m_temp, inLength); data/libcrypto++-8.2.0/modes.cpp:296: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(m_temp, pn1, inLength); data/libcrypto++-8.2.0/mqv.h: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(publicKey, privateKey+StaticPrivateKeyLength(), EphemeralPublicKeyLength()); data/libcrypto++-8.2.0/oaep.cpp:45: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(maskedDB+dbLen-inputLength, input, inputLength); data/libcrypto++-8.2.0/oaep.cpp:92: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, M, maskedDB+dbLen-M); data/libcrypto++-8.2.0/osrng.cpp:134: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). m_fd = open("/dev/urandom",O_RDONLY); data/libcrypto++-8.2.0/osrng.cpp:199: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). m_fd = open(CRYPTOPP_BLOCKING_RNG_FILENAME,O_RDONLY); data/libcrypto++-8.2.0/padlkrng.cpp:63: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. std::memcpy(output, m_buffer, rem); data/libcrypto++-8.2.0/padlkrng.cpp:82: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. std::memcpy(output, buffer, rem); data/libcrypto++-8.2.0/panama.cpp:452: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(hash, m_buf, size); data/libcrypto++-8.2.0/panama.cpp:463: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(m_key, key, 32); data/libcrypto++-8.2.0/panama.cpp:479: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(m_buf, iv, 32); data/libcrypto++-8.2.0/pkcspad.cpp:83: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(pkcsBlock+pkcsBlockLen-inputLen, input, inputLen); data/libcrypto++-8.2.0/pkcspad.cpp:115: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, pkcsBlock+i, outputLen); data/libcrypto++-8.2.0/pkcspad.cpp:152: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(pHashId, hashIdentifier.first, hashIdentifier.second); data/libcrypto++-8.2.0/poly1305.cpp:159: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. std::memcpy(mac, m, size); data/libcrypto++-8.2.0/poly1305.cpp:253: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(m_acc, input, rem); data/libcrypto++-8.2.0/poly1305.cpp:369: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(m_acc, input, rem); data/libcrypto++-8.2.0/pssr.cpp:87: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(representative + representativeByteLength - u, hashIdentifier.first, hashIdentifier.second); data/libcrypto++-8.2.0/pssr.cpp:137: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(recoverableMessage, M+1, recoverableMessageLength); data/libcrypto++-8.2.0/pwdbased.h: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(derived, buffer, derivedLen); data/libcrypto++-8.2.0/pwdbased.h:269: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(derived, buffer, segmentLen); data/libcrypto++-8.2.0/pwdbased.h:450: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. std::memcpy(derived, Ai, segmentLen); data/libcrypto++-8.2.0/queue.cpp:49: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(m_buf+m_tail, begin, l); data/libcrypto++-8.2.0/queue.cpp:66: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(target, m_buf+m_head, len); data/libcrypto++-8.2.0/queue.cpp:396: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(m_head->m_buf + m_head->m_head, inString + length, len); data/libcrypto++-8.2.0/randpool.cpp:60: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(&tt1, m_seed.data()+8, 8); data/libcrypto++-8.2.0/randpool.cpp:61: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(m_seed.data()+8, &(tt2 += tt1), 8); data/libcrypto++-8.2.0/randpool.cpp: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(key, pool, key.size()); data/libcrypto++-8.2.0/rc2.cpp:18: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 const unsigned char PITABLE[256] = { data/libcrypto++-8.2.0/rc2.cpp:37: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(L, key, keyLen); data/libcrypto++-8.2.0/rdrand.cpp:122:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(output, &val, size); data/libcrypto++-8.2.0/rdrand.cpp:136:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(output, &val, size); data/libcrypto++-8.2.0/rdrand.cpp:227:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(output, &val, size); data/libcrypto++-8.2.0/rdrand.cpp:241:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(output, &val, size); data/libcrypto++-8.2.0/rijndael.cpp:333:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 "C" void AES_encrypt(const unsigned char in[16], unsigned char out[16], const word32 *rkey); data/libcrypto++-8.2.0/rijndael.cpp:333:66: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 "C" void AES_encrypt(const unsigned char in[16], unsigned char out[16], const word32 *rkey); data/libcrypto++-8.2.0/rijndael.cpp:334:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 "C" void AES_decrypt(const unsigned char in[16], unsigned char out[16], const word32 *rkey); data/libcrypto++-8.2.0/rijndael.cpp:334:66: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 "C" void AES_decrypt(const unsigned char in[16], unsigned char out[16], const word32 *rkey); data/libcrypto++-8.2.0/rijndael_simd.cpp:456: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. std::memcpy(rk, userKey, keyLen); data/libcrypto++-8.2.0/rng.cpp:128: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(m_lastBlock, m_randseed, m_size); data/libcrypto++-8.2.0/salsa.cpp:704: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(m_key.begin()+4, m_key.begin(), 16); data/libcrypto++-8.2.0/seal.cpp:41: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(Z, H, 20); data/libcrypto++-8.2.0/sha.cpp:420: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(state, s, sizeof(s)); data/libcrypto++-8.2.0/sha.cpp:428: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(state, s, sizeof(s)); data/libcrypto++-8.2.0/sha.cpp:944: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(state, s, sizeof(s)); data/libcrypto++-8.2.0/sha.cpp:954: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(state, s, sizeof(s)); data/libcrypto++-8.2.0/sha3.cpp:67: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. std::memcpy(hash, m_state, size); data/libcrypto++-8.2.0/shake.cpp:76:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(hash, m_state, segmentLen); data/libcrypto++-8.2.0/siphash.h:163: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(m_acc+m_idx, input, head); data/libcrypto++-8.2.0/siphash.h:198: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(m_acc+m_idx, input, tail); data/libcrypto++-8.2.0/sm3.cpp:237: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. std::memcpy(state, s, sizeof(s)); data/libcrypto++-8.2.0/strciphr.cpp:39: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(outString, PtrSub(KeystreamBufferEnd(), m_leftOver), len); data/libcrypto++-8.2.0/strciphr.cpp:63: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(outString, PtrSub(KeystreamBufferEnd(), bufferByteSize), length); data/libcrypto++-8.2.0/strciphr.cpp: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(outString, inString, length); data/libcrypto++-8.2.0/strciphr.cpp:265: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, reg, length); data/libcrypto++-8.2.0/test.cpp:197:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char thisSeed[1024], privFilename[128], pubFilename[128]; data/libcrypto++-8.2.0/test.cpp:224:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char privFilename[128], pubFilename[128]; data/libcrypto++-8.2.0/test.cpp:225:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char thisSeed[1024], message[1024]; data/libcrypto++-8.2.0/test.cpp:347:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char passPhrase[MAX_PHRASE_LENGTH], plaintext[1024]; data/libcrypto++-8.2.0/test.cpp:373:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char passPhrase[MAX_PHRASE_LENGTH]; data/libcrypto++-8.2.0/test.cpp:383:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char thisSeed[1024]; data/libcrypto++-8.2.0/test.cpp:735: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 extension[5] = ".000"; data/libcrypto++-8.2.0/test.cpp:791: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 extension[5] = ".000"; data/libcrypto++-8.2.0/tiger.cpp:49: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(hash, m_state, size); data/libcrypto++-8.2.0/ttmac.cpp:47: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(m_key, userKey, KEYLENGTH); data/libcrypto++-8.2.0/ttmac.cpp:108: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(hash, m_digest, size); data/libcrypto++-8.2.0/validat10.cpp:416:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(sk, data.sk, crypto_sign_SEEDBYTES); data/libcrypto++-8.2.0/validat10.cpp:417:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(sk+crypto_sign_SEEDBYTES, data.pk, crypto_sign_PUBLICKEYBYTES); data/libcrypto++-8.2.0/validat10.cpp:418:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(pk, data.pk, crypto_sign_PUBLICKEYBYTES); data/libcrypto++-8.2.0/validat4.cpp:1461: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 stars[64]; data/libcrypto++-8.2.0/validat4.cpp:1535: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. const char alphabet[64+1] = data/libcrypto++-8.2.0/validat5.cpp:90: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. oss << " \"" << (char *)testSet[i].input << '\"'; data/libcrypto++-8.2.0/validat5.cpp:529: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. const char *TestVals[7]={ data/libcrypto++-8.2.0/validat5.cpp:602: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. const char *TestVals[7]={ data/libcrypto++-8.2.0/validat5.cpp:666: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. const char *TestVals[8]={ data/libcrypto++-8.2.0/validat7.cpp:448: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. std::memcpy(sk1, seed, 32); data/libcrypto++-8.2.0/validat7.cpp:449: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. std::memcpy(sk2, seed, 32); data/libcrypto++-8.2.0/validat7.cpp: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. std::memcpy(sk2, sk1, 32); data/libcrypto++-8.2.0/validat7.cpp:471: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. std::memcpy(pk2, pk1, 32); data/libcrypto++-8.2.0/validat7.cpp:501: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. std::memcpy(sk2, sk1, 32); data/libcrypto++-8.2.0/validat7.cpp:502: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. std::memcpy(pk2, pk1, 32); data/libcrypto++-8.2.0/validat7.cpp:509: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. std::memcpy(msg2, msg1, len); data/libcrypto++-8.2.0/validat7.cpp:546: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. std::memcpy(sk2, sk1, 32); data/libcrypto++-8.2.0/validat7.cpp:547: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. std::memcpy(pk2, pk1, 32); data/libcrypto++-8.2.0/validat7.cpp:554: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. std::memcpy(msg2, msg1, len); data/libcrypto++-8.2.0/validate.h:204: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 timeBuf[64]; data/libcrypto++-8.2.0/validate.h:288:7: [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). file.open(name.c_str()); data/libcrypto++-8.2.0/validate.h:295:7: [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). file.open(name.c_str()); data/libcrypto++-8.2.0/validate.h:302:7: [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). file.open(name.c_str()); data/libcrypto++-8.2.0/validate.h:317:7: [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). file.open(name.c_str()); data/libcrypto++-8.2.0/validate.h:323:7: [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). file.open(name.c_str()); data/libcrypto++-8.2.0/vmac.cpp:136: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(storedNonce+s-length, nonce, length); data/libcrypto++-8.2.0/vmac.cpp:150: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(storedNonce+s-length, nonce, length-1); data/libcrypto++-8.2.0/vmac.cpp:857: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(mac, t, size); data/libcrypto++-8.2.0/vmac.cpp:869: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(mac, &t, size); data/libcrypto++-8.2.0/whrlpool.cpp:121: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(hash, m_state, size); data/libcrypto++-8.2.0/words.h:28: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(r, a, n*WORD_SIZE); data/libcrypto++-8.2.0/xed25519.cpp:76: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. std::memcpy(m_pk, y, SECRET_KEYLENGTH); data/libcrypto++-8.2.0/xed25519.cpp:77: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. std::memcpy(m_sk, x, PUBLIC_KEYLENGTH); data/libcrypto++-8.2.0/xed25519.cpp:85: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. std::memcpy(m_sk, x, SECRET_KEYLENGTH); data/libcrypto++-8.2.0/xed25519.cpp:194:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(m_pk.begin(), subjectPublicKey, PUBLIC_KEYLENGTH); data/libcrypto++-8.2.0/xed25519.cpp:321:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(m_sk, val.begin(), SECRET_KEYLENGTH); data/libcrypto++-8.2.0/xed25519.cpp:326:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(m_pk, val.begin(), PUBLIC_KEYLENGTH); data/libcrypto++-8.2.0/xed25519.cpp:442:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(m_sk, val.begin(), SECRET_KEYLENGTH); data/libcrypto++-8.2.0/xed25519.cpp:447:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(m_pk, val.begin(), PUBLIC_KEYLENGTH); data/libcrypto++-8.2.0/xed25519.cpp:527:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(m_pk.begin(), subjectPublicKey, PUBLIC_KEYLENGTH); data/libcrypto++-8.2.0/xed25519.cpp:728:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(m_pk, ba.begin(), PUBLIC_KEYLENGTH); data/libcrypto++-8.2.0/xed25519.cpp:795: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. std::memcpy(m_pk.begin(), subjectPublicKey, PUBLIC_KEYLENGTH); data/libcrypto++-8.2.0/xed25519.cpp:805: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. std::memcpy(m_pk, y, PUBLIC_KEYLENGTH); data/libcrypto++-8.2.0/xed25519.cpp:815: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. std::memcpy(m_pk, by, PUBLIC_KEYLENGTH); data/libcrypto++-8.2.0/xed25519.h:769:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(accum.signature(), signature, STDMIN((size_t)SIGNATURE_LENGTH, signatureLength)); data/libcrypto++-8.2.0/zdeflate.cpp:349: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(m_byteBuffer, m_byteBuffer + DSIZE, DSIZE); data/libcrypto++-8.2.0/zdeflate.cpp:374: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(m_byteBuffer + m_stringStart + m_lookahead, str, accepted); data/libcrypto++-8.2.0/zdeflate.cpp:686: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(combinedLengths, literalCodeLengths, (hlit+257)*sizeof(unsigned int)); data/libcrypto++-8.2.0/zdeflate.cpp:687: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(combinedLengths+hlit+257, distanceCodeLengths, (hdist+1)*sizeof(unsigned int)); data/libcrypto++-8.2.0/zinflate.cpp:258: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(m_window + m_current, string, len); data/libcrypto++-8.2.0/zinflate.cpp:296: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(m_window + m_current, m_window + start, length); data/libcrypto++-8.2.0/algparam.h:31:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Assign(reinterpret_cast<const byte *>(data), data ? strlen(data) : 0, deepCopy); data/libcrypto++-8.2.0/default.cpp:86:83: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). : ProxyFilter(NULLPTR, 0, 0, attachment), m_passphrase((const byte *)passphrase, strlen(passphrase)) data/libcrypto++-8.2.0/default.cpp:145:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , m_passphrase((const byte *)p, strlen(p)) data/libcrypto++-8.2.0/default.cpp:234:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , m_mac(NewDataEncryptorMAC<H,MAC>((const byte *)passphrase, strlen(passphrase))) data/libcrypto++-8.2.0/default.cpp:259:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , m_mac(NewDataEncryptorMAC<H,MAC>((const byte *)passphrase, strlen(passphrase))) data/libcrypto++-8.2.0/donna_32.cpp:1042:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (stream.read((char*)block.begin(), block.size())) data/libcrypto++-8.2.0/donna_64.cpp:790:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (stream.read((char*)block.begin(), block.size())) data/libcrypto++-8.2.0/files.cpp:94:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). m_stream->read((char *)m_space, (unsigned int)STDMIN(size, (lword)spaceSize)); data/libcrypto++-8.2.0/fipstest.cpp:85: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). RandomNumberStore(rng, strlen(output)/2).TransferAllTo(comparison, "0"); data/libcrypto++-8.2.0/integer.cpp:3670:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in.read(&c, 1); data/libcrypto++-8.2.0/misc.cpp:152:8: [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). len = wcslen(str)+1; data/libcrypto++-8.2.0/misc.cpp:216:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = std::strlen(str)+1; data/libcrypto++-8.2.0/misc.cpp:289:22: [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. while ((p = (byte *)memalign(16, size)) == NULLPTR) data/libcrypto++-8.2.0/mqueue.cpp:100:9: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. goto mismatch; data/libcrypto++-8.2.0/mqueue.cpp:108:10: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. goto mismatch; data/libcrypto++-8.2.0/mqueue.cpp:119:10: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. goto mismatch; data/libcrypto++-8.2.0/mqueue.cpp:123:10: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. goto mismatch; data/libcrypto++-8.2.0/mqueue.cpp:130:1: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. mismatch: data/libcrypto++-8.2.0/mqueue.cpp:151:9: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. goto mismatch; data/libcrypto++-8.2.0/mqueue.cpp:159:1: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. mismatch: data/libcrypto++-8.2.0/osrng.cpp:167:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t len = read(m_fd, output, size); data/libcrypto++-8.2.0/osrng.cpp:215:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t len = read(m_fd, output, size); data/libcrypto++-8.2.0/polynomi.cpp:354:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in.read(&c, 1); data/libcrypto++-8.2.0/test.cpp:277:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). dllFile.read((char *)buf.begin(), fileSize); data/libcrypto++-8.2.0/test.cpp:468: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). const size_t argLen = std::strlen(argv0); data/libcrypto++-8.2.0/test.cpp:506: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). resolved.resize(std::strlen(&resolved[0])); data/libcrypto++-8.2.0/test.cpp:567:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). randPool.IncorporateEntropy((byte *)seed, strlen(seed)); data/libcrypto++-8.2.0/test.cpp:586:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). randPool.IncorporateEntropy((byte *)seed, strlen(seed)); data/libcrypto++-8.2.0/test.cpp:690: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). encryptor.Put((byte *)instr, strlen(instr)); data/libcrypto++-8.2.0/test.cpp:701: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). decryptor.Put((byte *)instr, strlen(instr)); data/libcrypto++-8.2.0/test.cpp:724:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rng.IncorporateEntropy((byte *)seed, strlen(seed)); data/libcrypto++-8.2.0/validat0.cpp:1564:18: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. std::equal(str.begin(), str.end(), vec.begin()) && data/libcrypto++-8.2.0/validat0.cpp:1566:18: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. std::equal(vec.begin(), vec.end(), vec2.begin()); data/libcrypto++-8.2.0/validat4.cpp:1106:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ECB_Mode<Blowfish>::Encryption enc2((byte *)key[i], strlen(key[i])); data/libcrypto++-8.2.0/validat4.cpp:1110:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ECB_Mode<Blowfish>::Decryption dec2((byte *)key[i], strlen(key[i])); data/libcrypto++-8.2.0/validat4.cpp:1117: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). for (int j=0; j<(signed int)(30-strlen(key[i])); j++) data/libcrypto++-8.2.0/validat4.cpp:1381:78: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fail = !TestFilter(HexEncoder().Ref(), data, 255, (const byte *)hexEncoded, strlen(hexEncoded)); data/libcrypto++-8.2.0/validat4.cpp:1388:67: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fail = !TestFilter(HexDecoder().Ref(), (const byte *)hexEncoded, strlen(hexEncoded), data, 255); data/libcrypto++-8.2.0/validat4.cpp:1395:84: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fail = !TestFilter(Base32Encoder().Ref(), data, 255, (const byte *)base32Encoded, strlen(base32Encoded)); data/libcrypto++-8.2.0/validat4.cpp:1402:73: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fail = !TestFilter(Base32Decoder().Ref(), (const byte *)base32Encoded, strlen(base32Encoded), data, 255); data/libcrypto++-8.2.0/validat4.cpp:1409:104: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fail = !TestFilter(Base64Encoder(new HexEncoder).Ref(), data, 255, (const byte *)base64AndHexEncoded, strlen(base64AndHexEncoded)); data/libcrypto++-8.2.0/validat4.cpp:1416:93: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fail = !TestFilter(HexDecoder(new Base64Decoder).Ref(), (const byte *)base64AndHexEncoded, strlen(base64AndHexEncoded), data, 255); data/libcrypto++-8.2.0/validat4.cpp:1423:110: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fail = !TestFilter(Base64URLEncoder(new HexEncoder).Ref(), data, 255, (const byte *)base64URLAndHexEncoded, strlen(base64URLAndHexEncoded)); data/libcrypto++-8.2.0/validat4.cpp:1430:99: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fail = !TestFilter(HexDecoder(new Base64URLDecoder).Ref(), (const byte *)base64URLAndHexEncoded, strlen(base64URLAndHexEncoded), data, 255); data/libcrypto++-8.2.0/validat5.cpp:61:60: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). : input((byte *)input), output((byte *)output), inputLen(strlen(input)), repeatTimes(repeatTimes) {} data/libcrypto++-8.2.0/validat5.cpp:569: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). mac.Update((byte *)TestVals[i], strlen(TestVals[i])); data/libcrypto++-8.2.0/validat5.cpp:572:62: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). || !mac.VerifyDigest(output[k][i], (byte *)TestVals[i], strlen(TestVals[i])); data/libcrypto++-8.2.0/validat5.cpp:644: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). mac.Update((byte *)TestVals[i], strlen(TestVals[i])); data/libcrypto++-8.2.0/validat5.cpp:647:62: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). || !mac.VerifyDigest(output[k][i], (byte *)TestVals[i], strlen(TestVals[i])); data/libcrypto++-8.2.0/validat5.cpp:695: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). mac.Update((byte *)TestVals[k], strlen(TestVals[k])); data/libcrypto++-8.2.0/validat5.cpp:698: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). || !mac.VerifyDigest(output[k], (byte *)TestVals[k], strlen(TestVals[k])); data/libcrypto++-8.2.0/validat5.cpp:830:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). std::cout << (tuple.hexSalt ? (strlen(tuple.hexSalt) ? tuple.hexSalt : "<0-LEN SALT>") : "<NO SALT>"); data/libcrypto++-8.2.0/validat5.cpp:832:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). std::cout << (tuple.hexInfo ? (strlen(tuple.hexInfo) ? tuple.hexInfo : "<0-LEN INFO>") : "<NO INFO>"); data/libcrypto++-8.2.0/validat9.cpp:74:76: [1] (buffer) strlen: Does not handle 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 signatureLength = rsaPriv.SignMessage(GlobalRNG(), (byte *)plain, strlen(plain), out); data/libcrypto++-8.2.0/validat9.cpp:82: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). fail = !rsaPub.VerifyMessage((byte *)plain, strlen(plain), out, signatureLength); data/libcrypto++-8.2.0/validat9.cpp:89:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fail = rsaPub.VerifyMessage((byte *)plain, strlen(plain), out, signatureLength); data/libcrypto++-8.2.0/validat9.cpp:117:76: [1] (buffer) strlen: Does not handle 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 signatureLength = rsaPriv.SignMessage(GlobalRNG(), (byte *)plain, strlen(plain), out); data/libcrypto++-8.2.0/validat9.cpp:125: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). fail = !rsaPub.VerifyMessage((byte *)plain, strlen(plain), out, signatureLength); data/libcrypto++-8.2.0/validat9.cpp:132:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fail = rsaPub.VerifyMessage((byte *)plain, strlen(plain), out, signatureLength); data/libcrypto++-8.2.0/validat9.cpp:357: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). const size_t len = strlen((char*)msg); data/libcrypto++-8.2.0/validat9.cpp:395: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). const size_t len = strlen((char*)msg); data/libcrypto++-8.2.0/validat9.cpp:433: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). const size_t len = strlen((char*)msg); data/libcrypto++-8.2.0/validat9.cpp:470: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). const size_t len = strlen((char*)msg); data/libcrypto++-8.2.0/validat9.cpp:507: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). const size_t len = strlen((char*)msg); data/libcrypto++-8.2.0/validat9.cpp:544: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). const size_t len = strlen((char*)msg); data/libcrypto++-8.2.0/validat9.cpp:581: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). const size_t len = strlen((char*)msg); data/libcrypto++-8.2.0/validat9.cpp:618: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). const size_t len = strlen((char*)msg); data/libcrypto++-8.2.0/validat9.cpp:659:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fail = !verifier.VerifyMessage((byte *)plain, strlen(plain), signature, verifier.SignatureLength()); data/libcrypto++-8.2.0/validat9.cpp:694:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fail = !verifier.VerifyMessage((byte *)plain, strlen(plain), signature, verifier.SignatureLength()); data/libcrypto++-8.2.0/zdeflate.cpp:413:10: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. std::mismatch ANALYSIS SUMMARY: Hits = 375 Lines analyzed = 145142 in approximately 4.63 seconds (31365 lines/second) Physical Source Lines of Code (SLOC) = 105044 Hits@level = [0] 0 [1] 70 [2] 303 [3] 2 [4] 0 [5] 0 Hits@level+ = [0+] 375 [1+] 375 [2+] 305 [3+] 2 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 3.56993 [1+] 3.56993 [2+] 2.90355 [3+] 0.0190396 [4+] 0 [5+] 0 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.