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/softhsm2-2.6.1/modules/tests/test_botan_aes_gcm.cpp Examining data/softhsm2-2.6.1/modules/tests/test_botan_ecc.cpp Examining data/softhsm2-2.6.1/modules/tests/test_botan_ed25519.cpp Examining data/softhsm2-2.6.1/modules/tests/test_botan_gost.cpp Examining data/softhsm2-2.6.1/modules/tests/test_botan_rawpss.cpp Examining data/softhsm2-2.6.1/modules/tests/test_botan_rfc5649.cpp Examining data/softhsm2-2.6.1/modules/tests/test_openssl_ecc.c Examining data/softhsm2-2.6.1/modules/tests/test_openssl_ed25519.c Examining data/softhsm2-2.6.1/modules/tests/test_openssl_ed448.c Examining data/softhsm2-2.6.1/modules/tests/test_openssl_fips.c Examining data/softhsm2-2.6.1/modules/tests/test_openssl_gost.c Examining data/softhsm2-2.6.1/modules/tests/test_openssl_rfc3394.c Examining data/softhsm2-2.6.1/modules/tests/test_openssl_rfc5649.c Examining data/softhsm2-2.6.1/src/bin/common/findslot.cpp Examining data/softhsm2-2.6.1/src/bin/common/findslot.h Examining data/softhsm2-2.6.1/src/bin/common/getpw.cpp Examining data/softhsm2-2.6.1/src/bin/common/getpw.h Examining data/softhsm2-2.6.1/src/bin/common/library.cpp Examining data/softhsm2-2.6.1/src/bin/common/library.h Examining data/softhsm2-2.6.1/src/bin/dump/common.h Examining data/softhsm2-2.6.1/src/bin/dump/softhsm2-dump-db.cpp Examining data/softhsm2-2.6.1/src/bin/dump/softhsm2-dump-file.cpp Examining data/softhsm2-2.6.1/src/bin/dump/tables.h Examining data/softhsm2-2.6.1/src/bin/keyconv/base64.c Examining data/softhsm2-2.6.1/src/bin/keyconv/softhsm2-keyconv-botan.cpp Examining data/softhsm2-2.6.1/src/bin/keyconv/softhsm2-keyconv-ossl.cpp Examining data/softhsm2-2.6.1/src/bin/keyconv/softhsm2-keyconv.cpp Examining data/softhsm2-2.6.1/src/bin/keyconv/softhsm2-keyconv.h Examining data/softhsm2-2.6.1/src/bin/migrate/softhsm2-migrate.cpp Examining data/softhsm2-2.6.1/src/bin/migrate/softhsm2-migrate.h Examining data/softhsm2-2.6.1/src/bin/util/softhsm2-util-botan.cpp Examining data/softhsm2-2.6.1/src/bin/util/softhsm2-util-botan.h Examining data/softhsm2-2.6.1/src/bin/util/softhsm2-util-ossl.cpp Examining data/softhsm2-2.6.1/src/bin/util/softhsm2-util-ossl.h Examining data/softhsm2-2.6.1/src/bin/util/softhsm2-util.cpp Examining data/softhsm2-2.6.1/src/bin/util/softhsm2-util.h Examining data/softhsm2-2.6.1/src/bin/win32/getpassphase.cpp Examining data/softhsm2-2.6.1/src/lib/P11Attributes.cpp Examining data/softhsm2-2.6.1/src/lib/P11Attributes.h Examining data/softhsm2-2.6.1/src/lib/P11Objects.cpp Examining data/softhsm2-2.6.1/src/lib/P11Objects.h Examining data/softhsm2-2.6.1/src/lib/SoftHSM.cpp Examining data/softhsm2-2.6.1/src/lib/SoftHSM.h Examining data/softhsm2-2.6.1/src/lib/access.cpp Examining data/softhsm2-2.6.1/src/lib/access.h Examining data/softhsm2-2.6.1/src/lib/common/Configuration.cpp Examining data/softhsm2-2.6.1/src/lib/common/Configuration.h Examining data/softhsm2-2.6.1/src/lib/common/HandleFactory.h Examining data/softhsm2-2.6.1/src/lib/common/MutexFactory.cpp Examining data/softhsm2-2.6.1/src/lib/common/MutexFactory.h Examining data/softhsm2-2.6.1/src/lib/common/Serialisable.h Examining data/softhsm2-2.6.1/src/lib/common/SimpleConfigLoader.cpp Examining data/softhsm2-2.6.1/src/lib/common/SimpleConfigLoader.h Examining data/softhsm2-2.6.1/src/lib/common/fatal.cpp Examining data/softhsm2-2.6.1/src/lib/common/fatal.h Examining data/softhsm2-2.6.1/src/lib/common/log.cpp Examining data/softhsm2-2.6.1/src/lib/common/log.h Examining data/softhsm2-2.6.1/src/lib/common/osmutex.cpp Examining data/softhsm2-2.6.1/src/lib/common/osmutex.h Examining data/softhsm2-2.6.1/src/lib/crypto/AESKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/AESKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/AsymmetricAlgorithm.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/AsymmetricAlgorithm.h Examining data/softhsm2-2.6.1/src/lib/crypto/AsymmetricKeyPair.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/AsymmetricKeyPair.h Examining data/softhsm2-2.6.1/src/lib/crypto/AsymmetricParameters.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanAES.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanAES.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanCryptoFactory.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanCryptoFactory.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanDES.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanDES.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanDH.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanDH.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanDHKeyPair.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanDHKeyPair.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanDHPrivateKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanDHPrivateKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanDHPublicKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanDHPublicKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanDSA.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanDSA.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanDSAKeyPair.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanDSAKeyPair.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanDSAPrivateKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanDSAPrivateKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanDSAPublicKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanDSAPublicKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanECDH.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanECDH.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanECDHKeyPair.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanECDHKeyPair.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanECDHPrivateKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanECDHPrivateKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanECDHPublicKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanECDHPublicKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanECDSA.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanECDSA.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanECDSAKeyPair.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanECDSAKeyPair.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanECDSAPrivateKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanECDSAPrivateKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanECDSAPublicKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanECDSAPublicKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanEDDSA.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanEDDSA.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanEDKeyPair.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanEDKeyPair.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanEDPrivateKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanEDPrivateKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanEDPublicKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanEDPublicKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanGOST.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanGOST.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanGOSTKeyPair.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanGOSTKeyPair.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanGOSTPrivateKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanGOSTPrivateKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanGOSTPublicKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanGOSTPublicKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanGOSTR3411.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanGOSTR3411.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanHashAlgorithm.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanHashAlgorithm.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanMAC.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanMAC.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanMD5.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanMD5.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanMacAlgorithm.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanMacAlgorithm.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanRNG.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanRNG.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanRSA.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanRSA.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanRSAKeyPair.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanRSAKeyPair.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanRSAPrivateKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanRSAPrivateKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanRSAPublicKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanRSAPublicKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanSHA1.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanSHA1.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanSHA224.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanSHA224.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanSHA256.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanSHA256.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanSHA384.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanSHA384.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanSHA512.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanSHA512.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanSymmetricAlgorithm.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanSymmetricAlgorithm.h Examining data/softhsm2-2.6.1/src/lib/crypto/BotanUtil.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/BotanUtil.h Examining data/softhsm2-2.6.1/src/lib/crypto/Botan_ecb.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/Botan_ecb.h Examining data/softhsm2-2.6.1/src/lib/crypto/CryptoFactory.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/CryptoFactory.h Examining data/softhsm2-2.6.1/src/lib/crypto/DESKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/DESKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/DHParameters.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/DHParameters.h Examining data/softhsm2-2.6.1/src/lib/crypto/DHPrivateKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/DHPrivateKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/DHPublicKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/DHPublicKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/DSAParameters.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/DSAParameters.h Examining data/softhsm2-2.6.1/src/lib/crypto/DSAPrivateKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/DSAPrivateKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/DSAPublicKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/DSAPublicKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/DerUtil.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/DerUtil.h Examining data/softhsm2-2.6.1/src/lib/crypto/ECParameters.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/ECParameters.h Examining data/softhsm2-2.6.1/src/lib/crypto/ECPrivateKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/ECPrivateKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/ECPublicKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/ECPublicKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/EDPrivateKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/EDPrivateKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/EDPublicKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/EDPublicKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/GOSTPrivateKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/GOSTPrivateKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/GOSTPublicKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/GOSTPublicKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/HashAlgorithm.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/HashAlgorithm.h Examining data/softhsm2-2.6.1/src/lib/crypto/MacAlgorithm.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/MacAlgorithm.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLAES.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLAES.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLCMAC.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLCMAC.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLComp.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLComp.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLCryptoFactory.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLDES.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLDES.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLDH.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLDH.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLDHKeyPair.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLDHKeyPair.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLDHPrivateKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLDHPrivateKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLDHPublicKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLDHPublicKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLDSA.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLDSA.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLDSAKeyPair.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLDSAKeyPair.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLDSAPrivateKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLDSAPrivateKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLDSAPublicKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLDSAPublicKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLECDH.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLECDH.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLECDSA.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLECDSA.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLECKeyPair.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLECKeyPair.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLECPrivateKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLECPrivateKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLECPublicKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLECPublicKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLEDDSA.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLEDDSA.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLEDKeyPair.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLEDKeyPair.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPrivateKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPrivateKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPublicKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPublicKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLEVPCMacAlgorithm.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLEVPCMacAlgorithm.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLEVPHashAlgorithm.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLEVPHashAlgorithm.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLEVPMacAlgorithm.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLEVPMacAlgorithm.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLEVPSymmetricAlgorithm.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLEVPSymmetricAlgorithm.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLGOST.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLGOST.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLGOSTKeyPair.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLGOSTKeyPair.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLGOSTPrivateKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLGOSTPrivateKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLGOSTPublicKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLGOSTPublicKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLGOSTR3411.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLGOSTR3411.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLHMAC.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLHMAC.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLMD5.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLMD5.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLRNG.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLRNG.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLRSA.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLRSA.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLRSAKeyPair.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLRSAKeyPair.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLRSAPrivateKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLRSAPrivateKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLRSAPublicKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLRSAPublicKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLSHA1.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLSHA1.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLSHA224.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLSHA224.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLSHA256.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLSHA256.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLSHA384.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLSHA384.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLSHA512.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLSHA512.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLUtil.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLUtil.h Examining data/softhsm2-2.6.1/src/lib/crypto/PrivateKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/PublicKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/RNG.h Examining data/softhsm2-2.6.1/src/lib/crypto/RSAParameters.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/RSAParameters.h Examining data/softhsm2-2.6.1/src/lib/crypto/RSAPrivateKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/RSAPrivateKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/RSAPublicKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/RSAPublicKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/SymmetricAlgorithm.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/SymmetricAlgorithm.h Examining data/softhsm2-2.6.1/src/lib/crypto/SymmetricKey.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/SymmetricKey.h Examining data/softhsm2-2.6.1/src/lib/crypto/odd.h Examining data/softhsm2-2.6.1/src/lib/crypto/test/AESTests.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/test/AESTests.h Examining data/softhsm2-2.6.1/src/lib/crypto/test/DESTests.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/test/DESTests.h Examining data/softhsm2-2.6.1/src/lib/crypto/test/DHTests.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/test/DHTests.h Examining data/softhsm2-2.6.1/src/lib/crypto/test/DSATests.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/test/DSATests.h Examining data/softhsm2-2.6.1/src/lib/crypto/test/ECDHTests.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/test/ECDHTests.h Examining data/softhsm2-2.6.1/src/lib/crypto/test/ECDSATests.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/test/ECDSATests.h Examining data/softhsm2-2.6.1/src/lib/crypto/test/EDDSATests.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/test/EDDSATests.h Examining data/softhsm2-2.6.1/src/lib/crypto/test/GOSTTests.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/test/GOSTTests.h Examining data/softhsm2-2.6.1/src/lib/crypto/test/HashTests.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/test/HashTests.h Examining data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.h Examining data/softhsm2-2.6.1/src/lib/crypto/test/RNGTests.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/test/RNGTests.h Examining data/softhsm2-2.6.1/src/lib/crypto/test/RSATests.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/test/RSATests.h Examining data/softhsm2-2.6.1/src/lib/crypto/test/chisq.c Examining data/softhsm2-2.6.1/src/lib/crypto/test/cryptotest.cpp Examining data/softhsm2-2.6.1/src/lib/crypto/test/ent.c Examining data/softhsm2-2.6.1/src/lib/crypto/test/ent.h Examining data/softhsm2-2.6.1/src/lib/crypto/test/iso8859.c Examining data/softhsm2-2.6.1/src/lib/crypto/test/iso8859.h Examining data/softhsm2-2.6.1/src/lib/crypto/test/randtest.c Examining data/softhsm2-2.6.1/src/lib/crypto/test/randtest.h Examining data/softhsm2-2.6.1/src/lib/crypto/OSSLCryptoFactory.cpp Examining data/softhsm2-2.6.1/src/lib/data_mgr/ByteString.cpp Examining data/softhsm2-2.6.1/src/lib/data_mgr/ByteString.h Examining data/softhsm2-2.6.1/src/lib/data_mgr/RFC4880.cpp Examining data/softhsm2-2.6.1/src/lib/data_mgr/RFC4880.h Examining data/softhsm2-2.6.1/src/lib/data_mgr/SecureAllocator.h Examining data/softhsm2-2.6.1/src/lib/data_mgr/SecureDataManager.cpp Examining data/softhsm2-2.6.1/src/lib/data_mgr/SecureDataManager.h Examining data/softhsm2-2.6.1/src/lib/data_mgr/SecureMemoryRegistry.cpp Examining data/softhsm2-2.6.1/src/lib/data_mgr/SecureMemoryRegistry.h Examining data/softhsm2-2.6.1/src/lib/data_mgr/salloc.cpp Examining data/softhsm2-2.6.1/src/lib/data_mgr/salloc.h Examining data/softhsm2-2.6.1/src/lib/data_mgr/test/ByteStringTests.cpp Examining data/softhsm2-2.6.1/src/lib/data_mgr/test/ByteStringTests.h Examining data/softhsm2-2.6.1/src/lib/data_mgr/test/RFC4880Tests.cpp Examining data/softhsm2-2.6.1/src/lib/data_mgr/test/RFC4880Tests.h Examining data/softhsm2-2.6.1/src/lib/data_mgr/test/SecureDataMgrTests.cpp Examining data/softhsm2-2.6.1/src/lib/data_mgr/test/SecureDataMgrTests.h Examining data/softhsm2-2.6.1/src/lib/data_mgr/test/datamgrtest.cpp Examining data/softhsm2-2.6.1/src/lib/handle_mgr/Handle.cpp Examining data/softhsm2-2.6.1/src/lib/handle_mgr/Handle.h Examining data/softhsm2-2.6.1/src/lib/handle_mgr/HandleManager.cpp Examining data/softhsm2-2.6.1/src/lib/handle_mgr/HandleManager.h Examining data/softhsm2-2.6.1/src/lib/handle_mgr/test/HandleManagerTests.cpp Examining data/softhsm2-2.6.1/src/lib/handle_mgr/test/HandleManagerTests.h Examining data/softhsm2-2.6.1/src/lib/handle_mgr/test/handlemgrtest.cpp Examining data/softhsm2-2.6.1/src/lib/main.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/DB.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/DB.h Examining data/softhsm2-2.6.1/src/lib/object_store/DBObject.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/DBObject.h Examining data/softhsm2-2.6.1/src/lib/object_store/DBToken.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/DBToken.h Examining data/softhsm2-2.6.1/src/lib/object_store/Directory.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/Directory.h Examining data/softhsm2-2.6.1/src/lib/object_store/File.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/File.h Examining data/softhsm2-2.6.1/src/lib/object_store/FindOperation.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/FindOperation.h Examining data/softhsm2-2.6.1/src/lib/object_store/Generation.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/Generation.h Examining data/softhsm2-2.6.1/src/lib/object_store/OSAttribute.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/OSAttribute.h Examining data/softhsm2-2.6.1/src/lib/object_store/OSAttributes.h Examining data/softhsm2-2.6.1/src/lib/object_store/OSObject.h Examining data/softhsm2-2.6.1/src/lib/object_store/OSPathSep.h Examining data/softhsm2-2.6.1/src/lib/object_store/OSToken.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/OSToken.h Examining data/softhsm2-2.6.1/src/lib/object_store/ObjectFile.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/ObjectFile.h Examining data/softhsm2-2.6.1/src/lib/object_store/ObjectStore.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/ObjectStore.h Examining data/softhsm2-2.6.1/src/lib/object_store/ObjectStoreToken.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/ObjectStoreToken.h Examining data/softhsm2-2.6.1/src/lib/object_store/SessionObject.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/SessionObject.h Examining data/softhsm2-2.6.1/src/lib/object_store/SessionObjectStore.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/SessionObjectStore.h Examining data/softhsm2-2.6.1/src/lib/object_store/UUID.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/UUID.h Examining data/softhsm2-2.6.1/src/lib/object_store/test/DBObjectStoreTests.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/test/DBObjectStoreTests.h Examining data/softhsm2-2.6.1/src/lib/object_store/test/DBObjectTests.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/test/DBObjectTests.h Examining data/softhsm2-2.6.1/src/lib/object_store/test/DBTests.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/test/DBTests.h Examining data/softhsm2-2.6.1/src/lib/object_store/test/DBTokenTests.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/test/DBTokenTests.h Examining data/softhsm2-2.6.1/src/lib/object_store/test/DirectoryTests.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/test/DirectoryTests.h Examining data/softhsm2-2.6.1/src/lib/object_store/test/FileTests.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/test/FileTests.h Examining data/softhsm2-2.6.1/src/lib/object_store/test/OSTokenTests.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/test/OSTokenTests.h Examining data/softhsm2-2.6.1/src/lib/object_store/test/ObjectFileTests.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/test/ObjectFileTests.h Examining data/softhsm2-2.6.1/src/lib/object_store/test/ObjectStoreTests.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/test/ObjectStoreTests.h Examining data/softhsm2-2.6.1/src/lib/object_store/test/SessionObjectStoreTests.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/test/SessionObjectStoreTests.h Examining data/softhsm2-2.6.1/src/lib/object_store/test/SessionObjectTests.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/test/SessionObjectTests.h Examining data/softhsm2-2.6.1/src/lib/object_store/test/UUIDTests.cpp Examining data/softhsm2-2.6.1/src/lib/object_store/test/UUIDTests.h Examining data/softhsm2-2.6.1/src/lib/object_store/test/objstoretest.cpp Examining data/softhsm2-2.6.1/src/lib/pkcs11/cryptoki.h Examining data/softhsm2-2.6.1/src/lib/pkcs11/pkcs11.h Examining data/softhsm2-2.6.1/src/lib/session_mgr/Session.cpp Examining data/softhsm2-2.6.1/src/lib/session_mgr/Session.h Examining data/softhsm2-2.6.1/src/lib/session_mgr/SessionManager.cpp Examining data/softhsm2-2.6.1/src/lib/session_mgr/SessionManager.h Examining data/softhsm2-2.6.1/src/lib/session_mgr/test/SessionManagerTests.cpp Examining data/softhsm2-2.6.1/src/lib/session_mgr/test/SessionManagerTests.h Examining data/softhsm2-2.6.1/src/lib/session_mgr/test/sessionmgrtest.cpp Examining data/softhsm2-2.6.1/src/lib/slot_mgr/Slot.cpp Examining data/softhsm2-2.6.1/src/lib/slot_mgr/Slot.h Examining data/softhsm2-2.6.1/src/lib/slot_mgr/SlotManager.cpp Examining data/softhsm2-2.6.1/src/lib/slot_mgr/SlotManager.h Examining data/softhsm2-2.6.1/src/lib/slot_mgr/Token.cpp Examining data/softhsm2-2.6.1/src/lib/slot_mgr/Token.h Examining data/softhsm2-2.6.1/src/lib/slot_mgr/test/SlotManagerTests.cpp Examining data/softhsm2-2.6.1/src/lib/slot_mgr/test/SlotManagerTests.h Examining data/softhsm2-2.6.1/src/lib/slot_mgr/test/slotmgrtest.cpp Examining data/softhsm2-2.6.1/src/lib/test/AsymEncryptDecryptTests.cpp Examining data/softhsm2-2.6.1/src/lib/test/AsymEncryptDecryptTests.h Examining data/softhsm2-2.6.1/src/lib/test/AsymWrapUnwrapTests.cpp Examining data/softhsm2-2.6.1/src/lib/test/AsymWrapUnwrapTests.h Examining data/softhsm2-2.6.1/src/lib/test/DeriveTests.cpp Examining data/softhsm2-2.6.1/src/lib/test/DeriveTests.h Examining data/softhsm2-2.6.1/src/lib/test/DigestTests.cpp Examining data/softhsm2-2.6.1/src/lib/test/DigestTests.h Examining data/softhsm2-2.6.1/src/lib/test/ForkTests.cpp Examining data/softhsm2-2.6.1/src/lib/test/ForkTests.h Examining data/softhsm2-2.6.1/src/lib/test/InfoTests.cpp Examining data/softhsm2-2.6.1/src/lib/test/InfoTests.h Examining data/softhsm2-2.6.1/src/lib/test/InitTests.cpp Examining data/softhsm2-2.6.1/src/lib/test/InitTests.h Examining data/softhsm2-2.6.1/src/lib/test/ObjectTests.cpp Examining data/softhsm2-2.6.1/src/lib/test/ObjectTests.h Examining data/softhsm2-2.6.1/src/lib/test/RandomTests.cpp Examining data/softhsm2-2.6.1/src/lib/test/RandomTests.h Examining data/softhsm2-2.6.1/src/lib/test/SessionTests.cpp Examining data/softhsm2-2.6.1/src/lib/test/SessionTests.h Examining data/softhsm2-2.6.1/src/lib/test/SignVerifyTests.cpp Examining data/softhsm2-2.6.1/src/lib/test/SignVerifyTests.h Examining data/softhsm2-2.6.1/src/lib/test/SymmetricAlgorithmTests.cpp Examining data/softhsm2-2.6.1/src/lib/test/SymmetricAlgorithmTests.h Examining data/softhsm2-2.6.1/src/lib/test/TestsBase.cpp Examining data/softhsm2-2.6.1/src/lib/test/TestsBase.h Examining data/softhsm2-2.6.1/src/lib/test/TestsNoPINInitBase.cpp Examining data/softhsm2-2.6.1/src/lib/test/TestsNoPINInitBase.h Examining data/softhsm2-2.6.1/src/lib/test/TokenTests.cpp Examining data/softhsm2-2.6.1/src/lib/test/TokenTests.h Examining data/softhsm2-2.6.1/src/lib/test/UserTests.cpp Examining data/softhsm2-2.6.1/src/lib/test/UserTests.h Examining data/softhsm2-2.6.1/src/lib/test/p11test.cpp Examining data/softhsm2-2.6.1/src/lib/win32/dllmain.cc Examining data/softhsm2-2.6.1/src/lib/win32/setenv.cpp Examining data/softhsm2-2.6.1/src/lib/win32/setenv.h Examining data/softhsm2-2.6.1/src/lib/win32/syslog.cpp Examining data/softhsm2-2.6.1/src/lib/win32/syslog.h FINAL RESULTS: data/softhsm2-2.6.1/src/lib/common/SimpleConfigLoader.cpp:226:3: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(path, sizeof(path), "%s/" CONFIG_FILE, home_dir); data/softhsm2-2.6.1/src/lib/common/SimpleConfigLoader.cpp:227:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(path, R_OK) == 0) data/softhsm2-2.6.1/src/lib/common/SimpleConfigLoader.cpp:242:4: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(path, sizeof(path), "%s/" CONFIG_FILE, pwd->pw_dir); data/softhsm2-2.6.1/src/lib/common/SimpleConfigLoader.cpp:243:8: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(path, R_OK) == 0) data/softhsm2-2.6.1/src/lib/common/log.cpp:98:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(&logMessage[0], 4096, format, args); data/softhsm2-2.6.1/src/lib/crypto/OSSLDES.cpp:81:12: [4] (crypto) EVP_des_cbc: DES only supports a 56-bit keysize, which is too small given today's computers (CWE-327). Use a different patent-free encryption algorithm with a larger keysize, such as 3DES or AES. return EVP_des_cbc(); data/softhsm2-2.6.1/src/lib/crypto/OSSLDES.cpp:93:12: [4] (crypto) EVP_des_ecb: DES only supports a 56-bit keysize, which is too small given today's computers (CWE-327). Use a different patent-free encryption algorithm with a larger keysize, such as 3DES or AES. return EVP_des_ecb(); data/softhsm2-2.6.1/src/lib/crypto/OSSLDES.cpp:105:12: [4] (crypto) EVP_des_ofb: DES only supports a 56-bit keysize, which is too small given today's computers (CWE-327). Use a different patent-free encryption algorithm with a larger keysize, such as 3DES or AES. return EVP_des_ofb(); data/softhsm2-2.6.1/src/lib/crypto/OSSLDES.cpp:117:12: [4] (crypto) EVP_des_cfb: DES only supports a 56-bit keysize, which is too small given today's computers (CWE-327). Use a different patent-free encryption algorithm with a larger keysize, such as 3DES or AES. return EVP_des_cfb(); data/softhsm2-2.6.1/src/lib/object_store/DB.cpp:65:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(&logMessage[0], 4096, format, ap); data/softhsm2-2.6.1/src/lib/object_store/DB.cpp:752:16: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int cneeded = vsnprintf(statement,sizeof(statement),format.c_str(),args); data/softhsm2-2.6.1/src/lib/object_store/DB.cpp:766:13: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. bool ok = vsnprintf(pstatement,cneeded+1,format.c_str(),args)==cneeded; data/softhsm2-2.6.1/src/lib/object_store/DBObject.cpp:1377:40: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. bool DBObject::startTransaction(Access access) data/softhsm2-2.6.1/src/lib/object_store/DBObject.h:108:39: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. virtual bool startTransaction(Access access); data/softhsm2-2.6.1/src/lib/object_store/ObjectFile.h:99:39: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. virtual bool startTransaction(Access access); data/softhsm2-2.6.1/src/lib/object_store/SessionObject.h:94:39: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. virtual bool startTransaction(Access access); data/softhsm2-2.6.1/src/lib/object_store/test/DBObjectStoreTests.cpp:48:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("mkdir testdir")); data/softhsm2-2.6.1/src/lib/object_store/test/DBObjectStoreTests.cpp:63:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("rm -rf testdir")); data/softhsm2-2.6.1/src/lib/object_store/test/DBObjectStoreTests.cpp:65:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("rmdir /s /q testdir 2> nul")); data/softhsm2-2.6.1/src/lib/object_store/test/DBObjectTests.cpp:49:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("mkdir testdir")); data/softhsm2-2.6.1/src/lib/object_store/test/DBObjectTests.cpp:77:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("rm -rf testdir")); data/softhsm2-2.6.1/src/lib/object_store/test/DBObjectTests.cpp:79:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("rmdir /s /q testdir 2> nul")); data/softhsm2-2.6.1/src/lib/object_store/test/DBTests.cpp:47:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("mkdir testdir")); data/softhsm2-2.6.1/src/lib/object_store/test/DBTests.cpp:54:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("rm -rf testdir")); data/softhsm2-2.6.1/src/lib/object_store/test/DBTests.cpp:56:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("rmdir /s /q testdir 2> nul")); data/softhsm2-2.6.1/src/lib/object_store/test/DBTests.cpp:85:23: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT_EQUAL(system("test -f ./testdir/TestToken"), 0); data/softhsm2-2.6.1/src/lib/object_store/test/DBTokenTests.cpp:54:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("mkdir testdir")); data/softhsm2-2.6.1/src/lib/object_store/test/DBTokenTests.cpp:60:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("rm -rf testdir")); data/softhsm2-2.6.1/src/lib/object_store/test/DBTokenTests.cpp:62:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("rmdir /s /q testdir 2> nul")); data/softhsm2-2.6.1/src/lib/object_store/test/DirectoryTests.cpp:44:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("mkdir testdir")); data/softhsm2-2.6.1/src/lib/object_store/test/DirectoryTests.cpp:45:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("mkdir testdir/anotherdir")); data/softhsm2-2.6.1/src/lib/object_store/test/DirectoryTests.cpp:46:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("mkdir testdir/anotherdir2")); data/softhsm2-2.6.1/src/lib/object_store/test/DirectoryTests.cpp:47:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("mkdir testdir/anotherdir3")); data/softhsm2-2.6.1/src/lib/object_store/test/DirectoryTests.cpp:48:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("echo someStuff > testdir/afile")); data/softhsm2-2.6.1/src/lib/object_store/test/DirectoryTests.cpp:49:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("echo someOtherStuff > testdir/anotherFile")); data/softhsm2-2.6.1/src/lib/object_store/test/DirectoryTests.cpp:50:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("echo justStuff > testdir/justaFile")); data/softhsm2-2.6.1/src/lib/object_store/test/DirectoryTests.cpp:52:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("mkdir testdir")); data/softhsm2-2.6.1/src/lib/object_store/test/DirectoryTests.cpp:53:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("mkdir testdir\\anotherdir")); data/softhsm2-2.6.1/src/lib/object_store/test/DirectoryTests.cpp:54:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("mkdir testdir\\anotherdir2")); data/softhsm2-2.6.1/src/lib/object_store/test/DirectoryTests.cpp:55:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("mkdir testdir\\anotherdir3")); data/softhsm2-2.6.1/src/lib/object_store/test/DirectoryTests.cpp:56:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("echo someStuff > testdir\\afile")); data/softhsm2-2.6.1/src/lib/object_store/test/DirectoryTests.cpp:57:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("echo someOtherStuff > testdir\\anotherFile")); data/softhsm2-2.6.1/src/lib/object_store/test/DirectoryTests.cpp:58:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("echo justStuff > testdir\\justaFile")); data/softhsm2-2.6.1/src/lib/object_store/test/DirectoryTests.cpp:65:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("rm -rf testdir")); data/softhsm2-2.6.1/src/lib/object_store/test/DirectoryTests.cpp:67:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("rmdir /s /q testdir 2> nul")); data/softhsm2-2.6.1/src/lib/object_store/test/FileTests.cpp:49:11: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int rv = system("rm -rf testdir"); data/softhsm2-2.6.1/src/lib/object_store/test/FileTests.cpp:51:11: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int rv = system("rmdir /s /q testdir 2> nul"); data/softhsm2-2.6.1/src/lib/object_store/test/FileTests.cpp:55:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("mkdir testdir")); data/softhsm2-2.6.1/src/lib/object_store/test/FileTests.cpp:61:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("rm -rf testdir")); data/softhsm2-2.6.1/src/lib/object_store/test/FileTests.cpp:63:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("rmdir /s /q testdir 2> nul")); data/softhsm2-2.6.1/src/lib/object_store/test/FileTests.cpp:83:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("echo someStuff > testdir/existingFile")); data/softhsm2-2.6.1/src/lib/object_store/test/FileTests.cpp:85:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("echo someStuff > testdir\\existingFile")); data/softhsm2-2.6.1/src/lib/object_store/test/FileTests.cpp:129:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("echo someStuff > testdir/existingFile")); data/softhsm2-2.6.1/src/lib/object_store/test/FileTests.cpp:131:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("echo someStuff > testdir\\existingFile")); data/softhsm2-2.6.1/src/lib/object_store/test/OSTokenTests.cpp:51:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("mkdir testdir")); data/softhsm2-2.6.1/src/lib/object_store/test/OSTokenTests.cpp:57:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("rm -rf testdir")); data/softhsm2-2.6.1/src/lib/object_store/test/OSTokenTests.cpp:59:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("rmdir /s /q testdir 2> nul")); data/softhsm2-2.6.1/src/lib/object_store/test/OSTokenTests.cpp:131:19: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("mkdir testdir/existingToken")); data/softhsm2-2.6.1/src/lib/object_store/test/OSTokenTests.cpp:133:19: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("mkdir testdir\\existingToken")); data/softhsm2-2.6.1/src/lib/object_store/test/ObjectFileTests.cpp:52:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("mkdir testdir")); data/softhsm2-2.6.1/src/lib/object_store/test/ObjectFileTests.cpp:58:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("rm -rf testdir")); data/softhsm2-2.6.1/src/lib/object_store/test/ObjectFileTests.cpp:60:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("rmdir /s /q testdir 2> nul")); data/softhsm2-2.6.1/src/lib/object_store/test/ObjectStoreTests.cpp:50:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("mkdir testdir")); data/softhsm2-2.6.1/src/lib/object_store/test/ObjectStoreTests.cpp:56:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("rm -rf testdir")); data/softhsm2-2.6.1/src/lib/object_store/test/ObjectStoreTests.cpp:58:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("rmdir /s /q testdir 2> nul")); data/softhsm2-2.6.1/src/lib/session_mgr/test/SessionManagerTests.cpp:47:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("mkdir testdir")); data/softhsm2-2.6.1/src/lib/session_mgr/test/SessionManagerTests.cpp:53:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("rm -rf testdir")); data/softhsm2-2.6.1/src/lib/session_mgr/test/SessionManagerTests.cpp:55:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("rmdir /s /q testdir 2> nul")); data/softhsm2-2.6.1/src/lib/slot_mgr/test/SlotManagerTests.cpp:52:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("mkdir testdir")); data/softhsm2-2.6.1/src/lib/slot_mgr/test/SlotManagerTests.cpp:58:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("rm -rf testdir")); data/softhsm2-2.6.1/src/lib/slot_mgr/test/SlotManagerTests.cpp:60:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. CPPUNIT_ASSERT(!system("rmdir /s /q testdir 2> nul")); data/softhsm2-2.6.1/src/lib/win32/syslog.cpp:34:1: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(int priority, const char *message, ...) { data/softhsm2-2.6.1/src/lib/win32/syslog.cpp:42:2: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(buf, message, ap); data/softhsm2-2.6.1/src/lib/win32/syslog.h:44:1: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(int priority, const char *message, ...); data/softhsm2-2.6.1/src/bin/keyconv/softhsm2-keyconv.cpp:112:16: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt_long(argc, argv, "hv", long_options, &option_index)) != -1) data/softhsm2-2.6.1/src/bin/migrate/softhsm2-migrate.cpp:137:16: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt_long(argc, argv, "hv", long_options, &option_index)) != -1) data/softhsm2-2.6.1/src/bin/util/softhsm2-util.cpp:216:16: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt_long(argc, argv, "hv", long_options, &option_index)) != -1) data/softhsm2-2.6.1/src/lib/common/SimpleConfigLoader.cpp:211:27: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *home_drive = getenv("HOMEDRIVE"); data/softhsm2-2.6.1/src/lib/common/SimpleConfigLoader.cpp:212:26: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *home_path = getenv("HOMEPATH"); data/softhsm2-2.6.1/src/lib/common/SimpleConfigLoader.cpp:223:25: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *home_dir = getenv("HOME"); data/softhsm2-2.6.1/src/lib/common/SimpleConfigLoader.cpp:282:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *value = getenv("SOFTHSM2_CONF"); data/softhsm2-2.6.1/src/lib/test/SymmetricAlgorithmTests.cpp:183:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. const unsigned random(*(pRandom++)); data/softhsm2-2.6.1/src/lib/test/SymmetricAlgorithmTests.cpp:188:30: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. current = ((unsigned long)random >> 20)*blockSize*0x100/(UINT_MAX >> 20) + 1; data/softhsm2-2.6.1/src/lib/test/TestsNoPINInitBase.cpp:100:15: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. p11Library( LoadLibrary(libName.c_str()) ), data/softhsm2-2.6.1/src/bin/common/findslot.cpp:47:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int slotNumber = atoi(slot); data/softhsm2-2.6.1/src/bin/common/findslot.cpp:79: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(paddedSerial, serial, inSize); data/softhsm2-2.6.1/src/bin/common/findslot.cpp:91:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(paddedToken, token, inSize); data/softhsm2-2.6.1/src/bin/common/findslot.cpp:189:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int slotNumber = atoi(slot); data/softhsm2-2.6.1/src/bin/common/findslot.cpp:221: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(paddedSerial, serial, inSize); data/softhsm2-2.6.1/src/bin/common/findslot.cpp:233: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(paddedToken, token, inSize); data/softhsm2-2.6.1/src/bin/common/getpw.cpp:144: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 password1[MAX_PIN_LEN+1]; data/softhsm2-2.6.1/src/bin/common/getpw.cpp:145: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 password2[MAX_PIN_LEN+1]; data/softhsm2-2.6.1/src/bin/common/getpw.cpp:155: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(password1, pin, length+1); data/softhsm2-2.6.1/src/bin/common/getpw.cpp:205: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(newPIN, password1, length+1); data/softhsm2-2.6.1/src/bin/common/library.cpp:51: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 errMsg[100]; data/softhsm2-2.6.1/src/bin/dump/softhsm2-dump-file.cpp:527:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). stream = fopen(argv[1], "r"); data/softhsm2-2.6.1/src/bin/keyconv/base64.c:128: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 input[3]; data/softhsm2-2.6.1/src/bin/keyconv/base64.c:129: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 output[4]; data/softhsm2-2.6.1/src/bin/keyconv/softhsm2-keyconv.cpp:53:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). #define open _open data/softhsm2-2.6.1/src/bin/keyconv/softhsm2-keyconv.cpp:149: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 line[MAX_LINE], data[MAX_LINE]; data/softhsm2-2.6.1/src/bin/keyconv/softhsm2-keyconv.cpp:167:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file_pointer = fopen(in_path, "r"); data/softhsm2-2.6.1/src/bin/keyconv/softhsm2-keyconv.cpp:265: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(pkey[found].big, data, data_length); data/softhsm2-2.6.1/src/bin/keyconv/softhsm2-keyconv.cpp:288: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). int fd = open(out_path, O_CREAT, S_IRUSR | S_IWUSR); data/softhsm2-2.6.1/src/bin/migrate/softhsm2-migrate.cpp:380: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 user_pin_copy[MAX_PIN_LEN+1]; data/softhsm2-2.6.1/src/bin/migrate/softhsm2-migrate.cpp:793: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(attTemplate->pValue, pValue, length); data/softhsm2-2.6.1/src/bin/util/softhsm2-util-botan.cpp:72: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 aesKeyValue[cMaxAesKeySize]; data/softhsm2-2.6.1/src/bin/util/softhsm2-util-botan.cpp:73:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* fp = fopen(filePath, "rb"); data/softhsm2-2.6.1/src/bin/util/softhsm2-util-botan.cpp:667: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(keyMat->derParams, &derEC[0], derEC.size()); data/softhsm2-2.6.1/src/bin/util/softhsm2-util-botan.cpp:669: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(keyMat->derQ, &derPoint[0], derPoint.size()); data/softhsm2-2.6.1/src/bin/util/softhsm2-util-botan.cpp:820: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(keyMat->derOID, derOID.data(), keyMat->sizeOID); data/softhsm2-2.6.1/src/bin/util/softhsm2-util-botan.cpp:821: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(keyMat->bigA, pub.data(), keyMat->sizeA); data/softhsm2-2.6.1/src/bin/util/softhsm2-util-botan.cpp:822: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(keyMat->bigK, priv.data(), keyMat->sizeK); data/softhsm2-2.6.1/src/bin/util/softhsm2-util-ossl.cpp:85: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 aesKeyValue[cMaxAesKeySize]; data/softhsm2-2.6.1/src/bin/util/softhsm2-util-ossl.cpp:86:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* fp = fopen(filePath, "rb"); data/softhsm2-2.6.1/src/bin/util/softhsm2-util-ossl.cpp:965: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(keyMat->bigA, buf + PUBPREFIXLEN, keyMat->sizeA); data/softhsm2-2.6.1/src/bin/util/softhsm2-util-ossl.cpp:977: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(keyMat->bigK, buf + PRIVPREFIXLEN, keyMat->sizeK); data/softhsm2-2.6.1/src/bin/util/softhsm2-util.cpp:411: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 so_pin_copy[MAX_PIN_LEN+1]; data/softhsm2-2.6.1/src/bin/util/softhsm2-util.cpp:412: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 user_pin_copy[MAX_PIN_LEN+1]; data/softhsm2-2.6.1/src/bin/util/softhsm2-util.cpp:443: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(paddedLabel, label, strlen(label)); data/softhsm2-2.6.1/src/bin/util/softhsm2-util.cpp:657: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(paddedSerial, serial, inSize); data/softhsm2-2.6.1/src/bin/util/softhsm2-util.cpp:669: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(paddedLabel, label, inSize); data/softhsm2-2.6.1/src/bin/util/softhsm2-util.cpp:1038: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 user_pin_copy[MAX_PIN_LEN+1]; data/softhsm2-2.6.1/src/bin/util/softhsm2-util.cpp:1122: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 user_pin_copy[MAX_PIN_LEN+1]; data/softhsm2-2.6.1/src/bin/win32/getpassphase.cpp:8: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 buf[128]; data/softhsm2-2.6.1/src/lib/P11Attributes.cpp:216: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(pTemplate[i].pValue, value.const_byte_str(), value.size()); data/softhsm2-2.6.1/src/lib/P11Attributes.cpp:345: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(pValue,attrPtr,attrSize); data/softhsm2-2.6.1/src/lib/P11Attributes.cpp:351: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(pValue,attrPtr,attrSize); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:617: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(pInfo->manufacturerID, "SoftHSM", 7); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:621: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(pInfo->libraryDescription, "Implementation of PKCS11+FIPS", 29); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:623: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(pInfo->libraryDescription, "Implementation of PKCS11", 24); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:2161: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(&iv[0], pMechanism->pParameter, pMechanism->ulParameterLen); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:2177: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(&iv[0], pMechanism->pParameter, pMechanism->ulParameterLen); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:2200: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(&iv[0], pMechanism->pParameter, pMechanism->ulParameterLen); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:2216: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(&iv[0], pMechanism->pParameter, pMechanism->ulParameterLen); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:2237: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(&iv[0], pMechanism->pParameter, pMechanism->ulParameterLen); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:2252: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(&iv[0], pMechanism->pParameter, pMechanism->ulParameterLen); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:2272: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(&iv[0], CK_AES_CTR_PARAMS_PTR(pMechanism->pParameter)->cb, 16); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:2286: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(&iv[0], CK_GCM_PARAMS_PTR(pMechanism->pParameter)->pIv, CK_GCM_PARAMS_PTR(pMechanism->pParameter)->ulIvLen); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:2288: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(&aad[0], CK_GCM_PARAMS_PTR(pMechanism->pParameter)->pAAD, CK_GCM_PARAMS_PTR(pMechanism->pParameter)->ulAADLen); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:2520: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(pEncryptedData, encryptedData.byte_str(), encryptedData.size()); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:2580: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(pEncryptedData, encryptedData.byte_str(), size); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:2676: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(pEncryptedData, encryptedData.byte_str(), encryptedData.size()); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:2771: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(pEncryptedData, encryptedFinal.byte_str(), encryptedFinal.size()); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:2881: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(&iv[0], pMechanism->pParameter, pMechanism->ulParameterLen); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:2897: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(&iv[0], pMechanism->pParameter, pMechanism->ulParameterLen); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:2920: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(&iv[0], pMechanism->pParameter, pMechanism->ulParameterLen); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:2936: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(&iv[0], pMechanism->pParameter, pMechanism->ulParameterLen); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:2957: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(&iv[0], pMechanism->pParameter, pMechanism->ulParameterLen); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:2972: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(&iv[0], pMechanism->pParameter, pMechanism->ulParameterLen); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:2992: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(&iv[0], CK_AES_CTR_PARAMS_PTR(pMechanism->pParameter)->cb, 16); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:3006: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(&iv[0], CK_GCM_PARAMS_PTR(pMechanism->pParameter)->pIv, CK_GCM_PARAMS_PTR(pMechanism->pParameter)->ulIvLen); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:3008: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(&aad[0], CK_GCM_PARAMS_PTR(pMechanism->pParameter)->pAAD, CK_GCM_PARAMS_PTR(pMechanism->pParameter)->ulAADLen); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:3253: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(pData, data.byte_str(), data.size()); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:3316: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(pData, data.byte_str(), data.size()); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:3417: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(pData, decryptedData.byte_str(), decryptedData.size()); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:3512: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(pDecryptedData, decryptedFinal.byte_str(), decryptedFinal.size()); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:3662: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(pDigest, digest.byte_str(), size); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:3815: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(pDigest, digest.byte_str(), size); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:4490: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(pSignature, signature.byte_str(), size); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:4567: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(pSignature, signature.byte_str(), size); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:4714: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(pSignature, signature.byte_str(), size); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:4769: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(pSignature, signature.byte_str(), size); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:6166: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(&iv[0], pMechanism->pParameter, 16); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:6169: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(&iv[0], pMechanism->pParameter, 8); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:6556: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(pWrappedKey, wrapped.byte_str(), wrapped.size()); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:7203: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(pRandomData, randomData.byte_str(), ulRandomLen); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:10148: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(&mechParameters[0], pMechanism->pParameter, pMechanism->ulParameterLen); data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:10480: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(&publicData[0], data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:10834: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(&publicData[0], data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:11078: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[0], data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:11099: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[0], data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:11119: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[0], data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:11139: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[0], data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:11255: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(&iv[0], data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:11270: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(&iv[0], data/softhsm2-2.6.1/src/lib/SoftHSM.cpp:11282: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(&iv[0], data/softhsm2-2.6.1/src/lib/common/SimpleConfigLoader.cpp:80:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* fp = fopen(configPath,"r"); data/softhsm2-2.6.1/src/lib/common/SimpleConfigLoader.cpp:90: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 fileBuf[1024]; data/softhsm2-2.6.1/src/lib/common/SimpleConfigLoader.cpp:156:44: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Configuration::i()->setInt(stringName, atoi(stringValue.c_str())); data/softhsm2-2.6.1/src/lib/common/SimpleConfigLoader.cpp:210: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 path[512]; data/softhsm2-2.6.1/src/lib/common/SimpleConfigLoader.cpp:222: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 path[_POSIX_PATH_MAX]; data/softhsm2-2.6.1/src/lib/common/SimpleConfigLoader.cpp:238:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[512]; data/softhsm2-2.6.1/src/lib/common/SimpleConfigLoader.cpp:349: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(trimmedText, text + startPos, length); data/softhsm2-2.6.1/src/lib/crypto/BotanAES.cpp:75: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.data(), in.const_byte_str(), in.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanAES.cpp:89:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&out[0], wrapped.data(), out.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanAES.cpp:103:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&out[0], wrapped.data(), out.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanAES.cpp:153: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(wrapped.data(), in.const_byte_str(), in.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanAES.cpp:167: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(&out[0], unwrapped.data(), out.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanAES.cpp:194: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(&out[0], wrapped.data(), out.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanDH.cpp:211: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(&secret[0] + size - keySize, sk.begin(), keySize); data/softhsm2-2.6.1/src/lib/crypto/BotanDHPrivateKey.cpp:169: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(&der[0], &ber[0], ber.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanDSA.cpp:127: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(&signature[0], signResult.data(), signResult.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanDSA.cpp:270: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(&signature[0], signResult.data(), signResult.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanDSAPrivateKey.cpp:142: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(&der[0], &ber[0], ber.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanECDH.cpp:201:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&secret[0] + size - keySize, sk.begin(), keySize); data/softhsm2-2.6.1/src/lib/crypto/BotanECDHPrivateKey.cpp:146: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(&der[0], &ber[0], ber.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanECDSA.cpp:129: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(&signature[0], signResult.data(), signResult.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanECDSAPrivateKey.cpp:144: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(&der[0], &ber[0], ber.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanEDDSA.cpp:131: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(&signature[0], signResult.data(), signResult.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanEDDSA.cpp:377: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(&secret[0] + size - keySize, sk.begin(), keySize); data/softhsm2-2.6.1/src/lib/crypto/BotanEDPrivateKey.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(&inK[0], &priv[0], priv.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanEDPrivateKey.cpp:156: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(&der[0], &ber[0], ber.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanEDPrivateKey.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(&priv[0], k.const_byte_str(), k.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanEDPublicKey.cpp:105: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(&inA[0], &pub[0], pub.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanEDPublicKey.cpp:168: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(&pub[0], raw.const_byte_str(), len); data/softhsm2-2.6.1/src/lib/crypto/BotanGOST.cpp:190: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(&signature[0], signResult.data(), signResult.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanGOSTPrivateKey.cpp:175: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(&der[0], &ber[0], ber.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanMacAlgorithm.cpp:159: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(&signature[0], signResult.data(), signResult.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanRSA.cpp:138: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(&signature[0], signResult.data(), signResult.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanRSA.cpp:399: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(&signature[0], signResult.data(), signResult.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanRSA.cpp:817: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(&encryptedData[0], encResult.data(), encResult.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanRSA.cpp:900: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[0] + modSize - decSize, decResult.data(), decSize); data/softhsm2-2.6.1/src/lib/crypto/BotanRSA.cpp:905: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[0], decResult.data(), decResult.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanRSAPrivateKey.cpp:195: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(&der[0], &ber[0], ber.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanUtil.cpp:93: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(&der[0], byteString.const_byte_str(), byteString.size()); data/softhsm2-2.6.1/src/lib/crypto/BotanUtil.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(&point[0], &der[0], der.size()); data/softhsm2-2.6.1/src/lib/crypto/OSSLDH.cpp:230: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(&secret[0] + size - keySize, &derivedSecret[0], keySize); data/softhsm2-2.6.1/src/lib/crypto/OSSLECDH.cpp:228:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&secret[0] + size - keySize, &derivedSecret[0], keySize); data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPrivateKey.cpp:134: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(&inK[0], &der[PREFIXLEN], X25519_KEYLEN); data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPrivateKey.cpp:143: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(&inK[0], &der[PREFIXLEN], X448_KEYLEN); data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPrivateKey.cpp:152: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(&inK[0], &der[PREFIXLEN], ED448_KEYLEN); data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPrivateKey.cpp:251: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(&der[0], x25519_prefix, PREFIXLEN); data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPrivateKey.cpp:252: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(&der[PREFIXLEN], k.const_byte_str(), X25519_KEYLEN); data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPrivateKey.cpp:261: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(&der[0], ed25519_prefix, PREFIXLEN); data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPrivateKey.cpp:262: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(&der[PREFIXLEN], k.const_byte_str(), X25519_KEYLEN); data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPrivateKey.cpp:271: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(&der[0], x448_prefix, PREFIXLEN); data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPrivateKey.cpp:272: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(&der[PREFIXLEN], k.const_byte_str(), X448_KEYLEN); data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPrivateKey.cpp:281: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(&der[0], ed448_prefix, PREFIXLEN); data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPrivateKey.cpp:282: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(&der[PREFIXLEN], k.const_byte_str(), ED448_KEYLEN); data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPublicKey.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(&raw[0], &der[PREFIXLEN], X25519_KEYLEN); data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPublicKey.cpp:145: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(&raw[0], &der[PREFIXLEN], X448_KEYLEN); data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPublicKey.cpp:155: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(&raw[0], &der[PREFIXLEN], ED448_KEYLEN); data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPublicKey.cpp:219: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(&der[0], x25519_prefix, PREFIXLEN); data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPublicKey.cpp:220: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(&der[PREFIXLEN], raw.const_byte_str(), X25519_KEYLEN); data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPublicKey.cpp:229: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(&der[0], ed25519_prefix, PREFIXLEN); data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPublicKey.cpp:230: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(&der[PREFIXLEN], raw.const_byte_str(), X25519_KEYLEN); data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPublicKey.cpp:239: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(&der[0], x448_prefix, PREFIXLEN); data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPublicKey.cpp:240: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(&der[PREFIXLEN], raw.const_byte_str(), X448_KEYLEN); data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPublicKey.cpp:249: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(&der[0], ed448_prefix, PREFIXLEN); data/softhsm2-2.6.1/src/lib/crypto/OSSLEDPublicKey.cpp:250: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(&der[PREFIXLEN], raw.const_byte_str(), ED448_KEYLEN); data/softhsm2-2.6.1/src/lib/crypto/OSSLGOSTPublicKey.cpp:126: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(&der[0], gost_prefix, 37); data/softhsm2-2.6.1/src/lib/crypto/OSSLGOSTPublicKey.cpp:127: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(&der[37], inQ.const_byte_str(), 64); data/softhsm2-2.6.1/src/lib/crypto/odd.h:36:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const unsigned char odd_parity[256] = { data/softhsm2-2.6.1/src/lib/crypto/test/AESTests.cpp:104: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 testResult[5][4][3][256] = { data/softhsm2-2.6.1/src/lib/crypto/test/AESTests.cpp:368: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 testResult[5][4][3][256] = { data/softhsm2-2.6.1/src/lib/crypto/test/AESTests.cpp:629: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 testResult[3][3][256] = data/softhsm2-2.6.1/src/lib/crypto/test/AESTests.cpp:648: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 testCB[3][3][33] = data/softhsm2-2.6.1/src/lib/crypto/test/AESTests.cpp:776: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 test128[8][6][256] = data/softhsm2-2.6.1/src/lib/crypto/test/AESTests.cpp:844: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 test192[8][6][256] = data/softhsm2-2.6.1/src/lib/crypto/test/AESTests.cpp:912: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 test256[8][6][256] = data/softhsm2-2.6.1/src/lib/crypto/test/DESTests.cpp:106: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 testResult[5][4][3][256] = { data/softhsm2-2.6.1/src/lib/crypto/test/DESTests.cpp:381: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 testResult[5][4][3][256] = { data/softhsm2-2.6.1/src/lib/crypto/test/DESTests.cpp:656: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 testResult[5][4][3][256] = { data/softhsm2-2.6.1/src/lib/crypto/test/DESTests.cpp:931: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 testResult[5][4][3][256] = { data/softhsm2-2.6.1/src/lib/crypto/test/GOSTTests.cpp:85: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 testData[4096] = "FE5A773751EAB2F18921C04806D6907444557B4469CDA7C822288E5065DA58F448A27FA0B4C8786853F246B093E3DBFDC332759D7764B6D057895184D9B82E626DF70AEB99B969EA35E5BE4D50C7406EA4A7450AC063933F96F77960EE711A445593119CF69061702CB4797F214FA440C94127E3DCD92F2C71B39D354C6F4284E030DCBFCB91EA5E543E0E3560ECD355091850BA080287BD87B74BB84A8892E0F2172F136D187305179F23EB8296BF1798405BAB52E201F22BCA5B793C5BA6F2CA15F154598EEC73E7E61B405262F6FE5FDC0F9AE0528801C3F965956C79A6C6805EDD0C6515AEA27D1DB9D70A56B0F13A544429C448FB6DB390C0E367EDF997E0B681ADE3846D77D1898F06FB60CB2384015F3749BD1E8163E532529E4D3BB8B200BBE79DA76D4865621FF2E583A1A1F8EBFB7A51B65DC9152B173A7DF91C6943F2FE497CDBC306827146199ADA925DD42B8A48429F5B6E3670AA85A44BDFAB3D273EA6711B996B5C27E04949BE61ED9ECB932F429ADCF31A2E0E9F83FCB1CE6BC0EE81627D1F9D08ECD599F16A1D68B256B002E90A8B4E5830A049ECE9ADF1D50C027EC537DD5412AA1509E91CEF358B2D495D3B37651987F51D9643A5AF2E0EF3D8C02E6023BB76FF8F1EB5CD018FA32BD7886A1A46A7D5CA15E4E0CDB793F0C1986EF4480305801A518B1D4596AAA741C093FC7AD075B637B1B2CC4DA33B6EB6D549001B33E1753C9C4358FB541FDE6541238BD011CD8ACAFB4CFF15B289872956DFBCC732593E838B6300E48ED3455CD101920114640A5B7C1250E419B7D771EC65934F53176BBD7A61A36D6D3D64A1F29C3D41745993636F812930E2936E9ED34E92A3C31239176ED3F78461EE80C54D92CBD9EF9F5746F8069809A38549FC7A8FD99FB350C27230966D6001D3136114A7BDCDEE495B72E4A633845BC88400DEDADC2FA2CD8640049CDB4F8F695C45EACF24FD573E1FB1670F688C9D7706A9AE9EB30E0DFDD54C7F3F3EE6F9BBFBBED6DB6E7C7B979E677DCD8457949DC271BD6ACB445B16247D8DAC1B59D45B8FFBBFDAEA20A5C450E0F93B399AE69887E1C721B0EF86C8CD37FC7514C4F2B70AA1E757DE95DCC3B74C6E18E51D272D433330826435B7CBA6C099558B51E408B1BFE60E876141A74195A00BF914F2536D92170FB43E078D98F784E6F150ED2B16DB5B629EBABF16444639C87A544050E03FB7CCD538DA29C45CE764F68682B48BF8AE5ED43064E833338A88605B1743FEB025D5F5607BB13A2078A99924A2D4818CD582ACDC1556FAEBA70959DE8498F3FCBF85BD269A7DF23A3AD5704908978031667C7BF4A85D1EF42F3ED144670E6EEB5D8213DB43B0B7B43767FD4277EF0EC52B5718A7D187A003DE8E5DFF9C3A3CD520615FB9B52281506E5BB033818E0912980A8BCAA54E21C5630B9E863C83"; data/softhsm2-2.6.1/src/lib/crypto/test/GOSTTests.cpp:86: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 testResult[512] = "3EC65819A084AD30712C4B3EB69CE130A8C7221EA3D8A9996D4BA6F298BC39F9"; data/softhsm2-2.6.1/src/lib/crypto/test/GOSTTests.cpp:120: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 testData[4096] = "1450414E94B2CEA9E202B8ACC9C358EBA5334C20CF1B7D13E8B79BE63A0A938A340CF710D539262F406787AF7188990C7D75780C265E37750510FA6AAA742D01C753548219C20B1283CCA9D30AA5A8650D0C5EE63FE10268F9CD5996F8DB0158C6FAD147AE41C0E565F6FBC85115E17BB0B448208075D1CF79CF70574098E7116A5C5EFFDB05DCD83E71DB4860B3AEC2612FB9DE1B010229A413055724AB07F4131B04800286D3C4895A158E7B1301F8010E718C76CC69B34C643D2B1EACC00F9CD0DEBC83425256B2524B34D61EBA32FE5F79FE0A1F9360E3CFB4C88CE7CC3C36E969A37827AD5FD79BFAC08CCA1786F30F34ADC605545F04BA96CA4A4E3DF7FEC36E43406E9CD68D708CBAC4C54B2E18E38535BD1A8029FD7393B5462AB688F8146445295E5473B15B26EC129A24C78B7198D558209E827C38426D747FB0D2B04F1EE7B142B7B736EFF4B819B5420F4642E77181617BEC8074109B463F4C53A6F3507A0B4419B2D7CC0B6CF89FAA2CAEAC17BF19E6A94E0BF346D0F77C47EDB29CBD204483E53853401779AEA0998B993E39EA4C5003326C017A5A3BD0C5591D4F822641FAE9DBDF78B15DC5BA326150F89C864774A8DBF6464B259A29C00D9BCC63F61B3B45FF19E6FD0CDA2BE17608488B0E5C6CC5C596F035C8E580C30FC7C6FE2428F3509511B9D7FE77CF53C5B0E8E66BB573B3D467B74B5493A4E8EA49A79B7E2D36A6C0A600C6B13DC617C3FAF927B2CB251279CFF4228254CB6022AE9D97A36894EBCB305B179284E5D2F330266B2B600E248D3C4B8121A8D698183A38BFB5A40C5E85CB08EF0BFB0242E418D11DD648B9B84E072A70D3FBA8A9B0CEE05BFD71AC945543E306824F9A4DCBA05BBE0027B475A020BD764B53AA5A187C089A2DEF8F3A96D38491A61CE5F3DA625F7F4EF38130B0F5DAA14E2236F4CD95FF0C31E7D6C1CC15CDE7D9D4F95326AE721812458D413CD6C758671C9A85D10F7692CE31A600483F6444F45E74C45B7CF886E63D0158E19C0B87BE6CD9FC4B74D72CB004D3BD7ADF60E162F4967E5EF3BCA0AF2DD7ED1DDE4097B5BA250281DB7E46C22A25A49ABDB1B2D148710128DC1F1A18CD0D762A1D2EB5D5D602336EE3F0A0095592E938A79BDEE72CF801015AD5871A8D907298E13F960A1417FDFA87C3FE3DA9490B73B45326C3161D9DE6460E37208665FDC90CF894A0301198F5FAA5A315FC562B2837194662A58DA13065760571172D42306BB57ECCFA578E9C927C211A1F7C1983DE1AE1EAB0A264AFDC18CD56F14E0429E80B0DDE9A5AF527952A7B6ABECFCB64CBDA3C3E7A024FC5CA3B655FAF5A2787FDB22C1DD3160827C886A119FD2833DA87E60F18B6A969916D35F559BCEA40D6E5E53F84FA5C46DD5DD09D0802A21F64F00EA755F95234AF913DBFB380CC370754448E46EDFC7CCC"; data/softhsm2-2.6.1/src/lib/crypto/test/GOSTTests.cpp:121: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 testResult[512] = "8D9D660D7BCAB705F14A90CB9A31F7B5206F9936E1B56F2489DA188A90C49CA3"; data/softhsm2-2.6.1/src/lib/crypto/test/HashTests.cpp:62: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 testData[4096] = "EDB39CC3CB5E8FD23A2182FAE8781F4E8E8534C8FE10BDC7ACDB34C4E22E4B60872E51AD092950771E475FB97B05D6203A0D1B3326D9678E44FB40787D8CF16BD3BBE4D4786F60BD8E9766EF1C30B22301FA8F7232358B3C5BE644342499622A5153B29D2E5F8F509771E8A5DE3B3737D30F2AB035262B8D83EC55F683E9B62BBB31E2E1F5E142A13ACB9701E1DE8752ACD492A943C2DB57CF4035BDA9D0519B86847CF74DB2F43CC23016D88EF44BA422710C00AEBB2ABDDED89D92E4BD132CEB87581644198B0D4AF82F3CE161ED03A4E189BE8276243243817F91159BDE294E61400041537618703754C609709846C3EDAE6922B498D24FDC6B9AE702A034BB3A2C6C230E58EE5759DC84AD0B960B111153F6D619E850E36833A26689B4718719EFF3A407B77B0BAD24A17E29B6A29E9125B4CF0DFFEB8D0B03D533ADA43D1F20CFFE0A067E0F6FFF28510148DD72AE33D8B72227523497B84082B682A480FA3B2FE42AAFF49883DAA4DC6826C9593D38002D73FA7AA91B41E828CC34FF12ECC1452B73709696A440CCDF3E6116DA36CB7A01C9E168C3518304721D2CDBC077F4D4B7E8D1A59F954872862F72AC12CB16E33BED8EC3CFD912E36BBF4DA86E31F5F45BE9294550965C7CBC03518AD7C5637A97F7470EDD6E359E82815230CE03AEE9512939A214D017719E5F6B2487E3B468D50DC8EA41EEE94360E77E0EAA9C27DFE2C28D63B7699406E2E6620FE23F96584EEA04034270A2A44096B70017CC2CB197CE8DA3B1924D8D2E86FB40FF59CCFC78B3A4F543068F08C3406DEF52413F95B2BE2AD5DA1ADBB7D95F2133F61AD5518A1BEA018E3C3C0C154EAE56B0B0F4A8818AE47DC618D138245192D055CE4EF8BD1A75030EABAFD66E45B204BA6B123FF54D78F51B6A7DB9B08BEE93E923F9DE553EC0BE4B8BE222998BC792002005ED66C0218902E7DDF6C6D5043A8A9790E438D5BDE37791CDC0DB6C974638884270D4F379DF845281C5F1F8A20978086A9444779D59423B6CEF8175E0BC2C517FA921EC66BE3F11ECEE078553F610D5B65FD293E37717C0CB323A2760646AD56C77A4B96940CF5AD1154A642043E40788C2D367123399FA6015422F5EFEC851EF558ACD4BC31EF3D3EF912241A586E54B97FAE083EE45FBBBED74BC9E3887795FC2EBC5354ACA358EC509F4AB8B2967488D5E5B77DD44EB72E66694A1F490ADEB2848918531B6FA7216C51CDB507598F1AA0985626482D3546BEF5CA3BB409934D11AECBAD47389F2CBCD85FB4DD1A8A6F4D0C28920671A31FFC14FC00FC51296A6182D5A05B16B33232798F0993C78BCC662932E2F57626D639DD00E39B206C1F8A15A19B5DCA9F8B015611AFA47A10A30527F552A22574E15E3577EAD9C7B89782F82D7082D747B50CEFD38C6F17D6269A696F518EE6EAFE1E1EA96FB4D"; data/softhsm2-2.6.1/src/lib/crypto/test/HashTests.cpp:63: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 testResult[512] = "7299FE513582D71A3B9EA1E9F45F95FD"; data/softhsm2-2.6.1/src/lib/crypto/test/HashTests.cpp:98: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 testData[4096] = "0583243FDEDEBF8C9EA4017808B490A2581A5A06B8C2CCA4F2259B7FABDE4BECA9F80C3EFBFEC436CF5F252568CDF55C7D31002456F6FE711D404F9A274037E8D55EC6C55077E4900EEAF6524C44FBFCC1C5C1C6AF962CE22106610A7C8DE7D725BF924B81EA566B952C8723E0EAFA21EB2C6E6F5528A89FC24C478C0600CB4FD482FAFF8507284C5F1E8AEBA9CDBFB3E71D77B775DD7C09E65049423BBAA70499450AE3B46703A4A44AE281C1F0341EDF0473B079C44E0F9EFB4C3683ED706E480C901A16E77B52030A7E46E31991131AED9C98DCA1850A4BD6F35DBCF5A894A8843EE656EF0DC617D923EB38426855FAA2E77E70CE9A8AC81D0F14259A748F9227F732420CDAE5A1CFEA9B541F0B12ADD5D966EBF66613D7FBAF5FFCAC8D625CFA536DBCA8E54B01B237211656F165A8114CD157E82870BCCE6AE8AF5334105B4E50B0A4E4AE5D0A3CC5CD8FF85F7C4D20D2627694B168CB48DB81B5B78C620C7559B2043C268F5D7351256D41FE892ED8EF6F7B5DD8E193EDCD268C55C209DCD0E827FCF76D6951CEBD0065826FBF044ED5818FEE4ECB99973FDB6826BF92488652E804C40D07D4CE43FCB31481667EE637721B91FD38331A98A6E8969D5B1D0690CFA0B500D72BF2D42AD6471FE064496C91126EFCC46B8CD093BCBB70D21FDE1937A888CA08DF3068A858280ABEAF71608BC9229E8E5EFF1814C4887E3A26782A110F347560DAB6B07DB8D063E8343A3FCD99B34C3C3F649096339CA7D39DA6F7B2E489A9EE6CE01C923D45C50350AC57247838E323F1B2A284606E45D60938A6F492545C5EBA0C7396702C0F4E77F36AC9ECE7ADD32FA4EEF7B38F9FF3F8BFB4E05F1025AAB52FB1B4777A4FC4B881EFA484D04397DE4312B7EE2BCEAD0ABAC0513D9C1819F59996AB5E94D48C098634D9907A4CA41B5A900F7CC299937B089A52C221333BF6B35242CA8D552A9CAA3BB18944D5CCEF69E752FA74A8BA3DD58159BAE375944B26A636457C30C451A58984BD6F028C8CBD3ED893ECD2F1536AFF3A97DB92C0E2FC93B9CC3837FDF56E4E3065D10B15F9A5A8925A5F772E4521CDC885180ACE49D98719BCE6770604C11E6DF090C199A5BBF1D695E1D55E2C9E135E89AB26446F6FED3FBD7DFE58EB75CA61B2D3DA4974908C7183E62FDD79C233387C78EDFF8AAC412EA36AD929808023EF04B8C9B7F980CC3FFD50E7356F51FBDC3DE8551C4F5B283D41E861E5604155E81748BF017268D4FBA8D253CA695300F5FB9A51190B24E2B17653519A3FE500B27DFF90A9FDF8404AFA8FAA1C4F738EB45969846E0A18693C06CA5FE2F2B5F7A33974A9453383E558317468B47DDAEE7A2AB90AA2446155CBF5B6473628C1D6BDA9044D4D96D1E3846AA7A65046C680BB173670FC04E5AC7D8CF41C6F233BD6945C0EA90958E9DBFE67D0EBCD"; data/softhsm2-2.6.1/src/lib/crypto/test/HashTests.cpp:99: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 testResult[512] = "9A5BD96DC0CD3B0089FBB6BE7D56BEE638431F5A"; data/softhsm2-2.6.1/src/lib/crypto/test/HashTests.cpp:133: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 testData[4096] = "8F300FA699500CA5E1E22B38EC06B2EADCE7738CF6A55CB241577D53ED68BD017517C83AEB9CD3A25536FE999B7CD61D9E2BA85C39A7D27CE2CAAC8FE7C12FA1B2905DB85ABF230A813C1A72D2BD93BE0C5A79842FE35C5EF4B2E94524FB9594E3CCC63FE2A4E21D91C25DED832FE8BC9788697051C2042094585187394BD0AFD64FB627F3CCB350874FD0D454BF0254A72DD99ED211F68DC15B94A5682B73B89BF533746E8EEC5CCE45DF55466D7026A95A062EFD49FA270751A8D427095D38FB757FD4D1395B5DC7D302D9CF28C2E2D09796B9E0FC2D1F56BDE005FCD266B097822C170981DE2DB5E92582A612019823A3A062E228AB99AD6A0E47C1DEAC0078460252D83FA11253A3EFD374B2B392F0E27079F9FCACBB8EE6320C7A06327335AB34B757057E6C7FEC5004C4F675D2C4ACC6B359CC13D6F9FBE7E12EA7F6FF753CA8FB68059DB06D9804CBE08AAA55E0F20EFB7094695C1BF0D8E504EAD0836C0E6BB491E1691FDEB9ADFE0C92CED19A612DBCA01FF5A515E32B4EC06BDA00482DE721B6A85F00CAB264B34C5F3749D35603D0216C5AA426BBFF15637D1AE7805ACA572337232C27BDFC9D17D5D129242FD883E3C33250BA089EA03BD794C03D8DB9F57F87DC0A30E37F063B9C4C43518DC9F94E7BB18718D1DC79474CFAF60CBCD5CAA8AAA9FF573E26BB8B722C522ACF561FF34A0716FB7C1217050AD6E8323889B47D7551BC7554909651A9BAFCF5F0FEFD100D35B2E06D89C46E572E3EB5A07FEA702DF10BBCD2CAF2F2A62A9BC162F6369D0DBD9A6D6368ECDAFF4246DEE682C2B20EF4D7BBCCABBE0CD44CFBB531F2190E55C1A650B4D16DB2DA0453B23C4F056C1F791336A7266742976653B2E9377F500AAEFA1EA5FEE3469F4A85A484F69FBFFC1C163F78872AFB79231D9E5B4F8EFE2A9E8487BC33E4EC462F9E451BFEB306964D1F02873EEABCAB0F06361DD463398717537C7C255E3DEF1E9EC1567A600CFEB63F822A3C24B3524225A40F0CE948B0284AEF1F9BBE7618D18839725087DD6BFEE15653B981D6F57ED6685388F3B510140F437E93B92583609D4B873BBA3641B2DB56AB26D3DC27A85866D8F66C4A33D82932ECE277387E583BB20A689BE12B597C6199799A3A53B970596355A46F7F94B9D5E07B09B8C47355CE19D7D2EC1F1DA8F382F7C90ABABDED1D82C8BD673C008E16102025B8C8AD33832953B9E28A1C01353C513D55F4E38C0FBC1FE7C1FB6B93D10B464F851BFE26426BC09C599708CA1CA3413BC4B147CD69A761E688E3846949AC3F455CCDC0DDB4FDBC91D880B38C73B7AD4C8633598F4570E3BCBA3C5E785686E38D2926187CDF0479DF5B818EBDDFDA757C31DF009ED234B3C0F2BC1ADC700FD715AFEE46AE5CBAD02ED086912BE45BE2D61097F008E45067C4ADC4FDFE29220E6CF0C6F7F8"; data/softhsm2-2.6.1/src/lib/crypto/test/HashTests.cpp:134: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 testResult[512] = "A4E71A239CED53E936011DF80B516A07DFF13BB5B05BE43C46C05CCD"; data/softhsm2-2.6.1/src/lib/crypto/test/HashTests.cpp:168: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 testData[4096] = "C75FF0C53CB345524BF9800FDF53CE448F3369F9CA08C817F8F07AEF0689274527F0AF1EE7FB5AE99B37456765F39880640BF6C5582111753758DF49A9A13B52379DA0C7AE930B03BC57CD819D2EBA0E38AD33D10876608B99A69D0A73F001065276055C4B659F62F77E7232B021BC085A2472293D2D1875028444902AB29D78C9919EC52B33C9F839B1F839C7FF39B68669C925F53AFC865C93D3694E2FD3F29FF0B7773BB412D0FDB1B506A4D501F840D01AE9BF18D7558109B10A6E55CD8CF9A5279D559810A0B08C84C2C8C294AFEC06C6219EB1647A51488BCDDAACE7C652BB0D3F1DC552E4B42BAFF52FD17239F4C08DDDA1BBA97D8D35D3A3DA32D66858B2D320A62AAA7C3909C3A34DCF9DAA69BEC13B7B3EAAEA8A56E2C6DB2507C43BE8990ADC4A281B8BFC6C76FAED50217F109594902FF7E0EDFF5C018B0FC76CACFF84FB9EA97D6D543EDA732089E82FDE3B9D087320014680E5EA2B21B534125806B650F3268DB7951460A9E32F2EEAAF69300E6F0B7F846ECBC2904E93E8D0423FBDCC3E34C5085A97636EA9961B00880BC381E37C3A6E3115256B1A9E1A915A401A8E507F97A09BF3881E852FEA614DF76D709DE6DC0FE54500E0C42132E9ACFFE4A4A98654190FC6C14FC3E5F42CDCCAE0DE05DEF5F6961D7D13DE15376F35142C5846013B7D4A8A6AB363EC7932415C556B83787C86491820AA29C2FE31E39A3D73D710C490D1AF863C4166C2301ECF6967506DCFF6F97CAE63245634153072FE27E9C4B5F90B3C42E4BDB4FB0E85A548CDE2D3B480ABFB1ED6F054017B120E41529909AC055A9F5A29E25D0E5D1A8E8550B9C85C300BBAAE030B22BB646B1FD3A90FA1C242A26071423B3E239EF65BE8B347663B6BF63436AFFD311D10FD24C8E8D05CA99A808C41E6C9C7B283FE5FE9E311642349D2799B6D0CACD5826CC6CC5DDA22FB8BBDD6C66BB722697E4558A75B6D24FDD55631C17FCB591CA3CBA180CEC241B0555A91DF4D47A648A7D901B02C1AB557C4E1CF33E277AFE008D586857203FD6CE695C8EDD446F74056B173D6A0B07A2A58B39366B58BB76AF96DF9C37A5A5E1F8419163CEAA304D451DC38B8F142C422FB475869667D55D88F7C2624FC0B29A958BB4A44C6B0439542AAB02319D46B7E482149DC9A7C7BEBE651C7E8404140601CDB3742F58B6EEDA137FA083BA9D297F91B41B34C3535230841F18B672ED0FD817B7E4E3CD1FC018CDA63C21C3C3ED68228DF85B8C26572D1B14EF10D5D0BAF6F3ED4B9A8C3DFEB4EDEA00CE2DB5903D510432BCBA791C1BBDD2770F2616AF855941E1BD710CEE4F17C4C7A9E283B12DE901A88D634E4ADE69ED529328D64F8069033A6B4DA5D8E0E1C0150DB862AAD54F2827B41CE1F21E3F890033FD46E438615DDC527D6D1260BDB79478D6A0BE2B58174648A2387E3AE"; data/softhsm2-2.6.1/src/lib/crypto/test/HashTests.cpp:169: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 testResult[512] = "3902802C215A5271439FE3E81AC7F21DA55545F71193A8DA8BEB0EAC8046A43B"; data/softhsm2-2.6.1/src/lib/crypto/test/HashTests.cpp:203: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 testData[4096] = "11FCD8770F582C2D9C860D1EB4FDBFE40C551C6F3AF41A2540A39BA3A121BFEF995F1727A8703C29D0A44EB85B339F27955E1C679796A72980BB1D1BEF4D51A73174A983D36CDAD56BC1EEBA5DDD642094996531EEC94DE2FB6E0ED4F23BCB2F1D0B25505EB16306473DA17F809BD994FD9A737D29819BCCF94CA225D2EBB9D89DDA6E03E80A9DE87E44B72EFD397F9F344122B6591CED9BFDE8C0C42D8C17223A93F33B7D569291F91B619297F233C1454A168AAE126E89B0ED32B0B69AB095A1BB24BB7F1AAF8EE0BDBB43025EF3339F96C9EA352E78BA0661DE896E8F4DFAA7EF623F2B5305AD338448C5FCBDD6CC1F1222ED1D8F4C634B82591F8906DA8DDA9A0FFB0F1499B5BD08239F7EB3A02ACEC60FB76754D0AC5077C3B733D346F0BDE654CD612F60E2284115297A1557679901A911C2AC7323DA2FF3CD57895D7D181AD43AB7068609CE046B96B445EA08CDF50C40DFAFBA9F7082707A813B9C8E4E9D7F0230D5AFE40174693512DE96E3FAB1C8F6548880823645A0AD811694B293F788D0D523EBD81851594733EF45FC763B956044E29B29C195BDB317FBF97F41C601A2873C25557C3149F648424380FE79E4DC407A9CECD8F14B843C642FD9921F12786C8A1C6F8514C99672038693C5CF1FBE91F903E4ABC9E55B967B2F72FDF1A2EC09C14C94C001BAC47A0C36E9E6F34431381069CFD64D85F11285391A4DC7419B2EE8062F344538413E757EC258192B90F2CCC1186AB9A4ED5CE1290644CDEDAF03A4BF3E94B9F9D132ED159CE03586C5A69EF0A471146378BCCE799A3CD8D627B688BB28C9288F44D1218BC34A05BEAA398371ADC60CA8A2557AB69BE7B737F84BFFA93A1E1115F498600F52144E0D61055A2FC0CD45E20962CB2FF475896D733C74C2E95986389ED74B1497A35E73FEE0F36270CC65D76C1FE27A35E8F1FA0C5CA7F2C6003E21BD6677502CE268EB55B16DA863FA291AA111F338F10592AF86DFC297718365C04839748195E20A64BF42020846A46C94F1728549B8310A7FBCBA2C1441B033639CE52B6DBDA69F6ACC57F2DE6BAC57755734AFE4B77869C4D9B0DC56B115476A86A82F816CB148CDFD2B1DCCBEFCD4559B59AA88C6429F4A9EBB43B641144752A5E6F8BE1B739AA69FEBCB8D7439E5D917CA759982146E627FF81E80CEBC37BE0CF2A6C12A3E84A389FFD25013C491AE90A395D4DBCA81340E86848217AC426603CCAC981B5ED701CE9AB2851DC5F2ED72484FE99767C0FDB6F122B0C67926A637B57EC4F047804BC3A9BD55CBD78B83154BC27B6F8A66085EF02A206F329F3B1531ED657C75E29DF4276070AE5054F484A12990A9DD13C112FB6D3D57AE42E6A048870FDAABA48F73E03344C0E13832BAFCA2AF81AF19E5C28983F7BAAA5135803E78FBDDF7FB53C9B9B709274F05C774C77F0B84"; data/softhsm2-2.6.1/src/lib/crypto/test/HashTests.cpp: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 testResult[512] = "753659D55E4198325A3FED0A35761EC45038E8963B7525BF00D5A6A5D904DD9FA3FC80AB020185E08B14992ECC36A744"; data/softhsm2-2.6.1/src/lib/crypto/test/HashTests.cpp:238: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 testData[4096] = "B9D5BD978E1B4A0268331AE4F0C4494EBA71125ED75B9B4244407271A29D93BF5BA0D6641EBF7A210A0905B5EBE675F7B900B89542D0DA6A3952DF9DC5430ECE31F4A5834CCF132724963A088DE43966DC9F46011F2AD458E8FCDBA18F6D183235687A6145401E9FA2EDF60F47F3835D953B5856B1F8308457D9CEC29246DC51F5B42BD5DE38BD89945667579C05756D1C47BB58C2C3D049C58C014C1F6D962BF5EBA1D273F5A7FD6D9291E293CD30B8D8B489E79E54A7A11953EAF4FB6AC7F99910ECE05B511E098B6AD33A599F5A8FA43692FDD9F2A26F316427A2ED1F231E328864CDF9BA2879E0A711F48038E653520C74B7EEA8858F17AC332B87EF4C70A838263C8B17B373161A5A15293D1A7991F0EEAAE0BB69C95DEC22A1CD6808122489703770B5E276735F9D149067A7F3E6A7D10A790253C81778BB79C06D1F98A2CA9C2E8C4BAC0A96F0F9736B85E7BB4F090C5BEB25F087AC037517A9599D94E072D03D9C48665DD17649E001E45966AB8F2C7D24E38AE4F0519F056B034E0ED2CA133F108105BE4823758543791225144AB0B9609F0F861B69EEA8707D6DB9046910F28C6F8E1D47F59DFE9B59F81242FCBE5A71669B90F7B4050E517CF6D3F2FB8759FB7300F12C786D36183FA64692F379D030D0EA90859D9D8E00F27500B41FD716E325E695E3D8EBB40A4E32AFA75F6F21013C8A3261E9C18291DC99142FFF91EAB6C2B55FF5DE03B1DCC88C79635B96F13B66CE6E26A1D5F6154F3C6E5F22AF4B0334FD4521AE57B6B13E2D3B777AF66742635740ED4FF5FC752B908A079A6BBE8499344096549E6FC6FEDBE57AAF2992E7CBB19931F43360415C39D65D2A92775C78DE97C712022460E48651EBDDB9E0527C7EE59F6C817499100C11E884633DC66EF85B176D7A529894CA8F364F559D97DC7CF1769813FB36F8F738E77354C14A560CB98DF92BB5BB16A5A3EDFB75CB78A718C070BE5D37A6F742F88B51BC633FA9E309311BCA908F4D5EE381FB593B7A53E4CE3A529160A2965D0C4CEDC6548D036A1A4FE4576DA9D35E0CDDE9567E792D5C77EFAC17E531F402E0BE99957A7D378E90C009F3231FEE6E3898B5D2C4291EAD396CA748AB0A39469B921BDC5F8066AB7F0D28EE0C502EBC95C2A39DB4241886736F17DE1F33BD384EFDEA951BF775A0D41A499E85D0488016D7A281A9F7C715EBB7CD6AFBA59C1A93A5AEA66D71C3058C5A293141EE4D2C3E65853EFBEFC55912F5C08B9990A66C313F3199C0769CDCA711E877766ECA773EF2FDBC0656B8427CA6442062D911B13F1C2E92D3F0C608B1D8F12914953720021D5648364F953F93CC49946E44FBAF154A2FE3A8055922F784FF9B56D5FAC35B65266A248794101C12750DB8C107D048E551E52EB3952CFA26345B4E21652F5F3B8F85DE04AF9731B75C79DDBD6FE1A5"; data/softhsm2-2.6.1/src/lib/crypto/test/HashTests.cpp:239:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char testResult[512] = "E1483A8525CE39705D14D60D8B19BD89087AED5FE6D8913AF8FC3F6F4EA2C1BB5957E205294B1EFAF20AE5EE39A9522F38B4514C3C15ED70BCBBD5821E385F95"; data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp:62: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 testData[4096] = "B64CCFF0DC038F4B4B6C77677B1E89774028CFB6F94EE920ABFABC8C389F7DE287D558664FD05836E854458940A486A367C9B771A7938BE7DFFF2C695BB99CB96F946707FB405A0FA94116FC4002FAD47F813C4DAF6F39B579A2C1E607AF0F80E55FC6742ABB46CF25EFBAEF820DACAE925532E0F2AAAD64D23D0E5682DC38FA47F230EAA299C4D87EB76D45D4B4A08BB47AC873A428708F9D236CF9B11831BC713DB5C8F58A4A4DD228B7A370154CCDB92420B01D0B4141B2CBF05E51D364F7A4D7EE20F1299A697AEAE7341EB6C2F5C458D8AA9A33CE6B2C87B42A9C8EABB3A3311E3828935B8743604895A37D0E9717266872B51CBAB50E9399A0E54457F88DB022CD1859D704FE07C2B530BE14A11072133A9D3A8CD94FCA2B22A320EA08D0292DEADAC4BF705B2CDF71CDC13EC72918F2BD8697BA42AA0AAD62E2D549AC639095EFD2EF606414207CD3770A14FA14AAD7EED197A1A61EBF1FCA89CFE2B69E709C98F4299CF6E1DCF34A98F3C89C6357B5DCDCB335C98EA8DBBA64700EFF9B79CCB875FA49C0C8FA8AA98D6B7B83C3818C4078A8433EEEC71423D9B476029C190ECF1552CF59E1BB2ACDB08663FA792D806E5FF5A6D3E4E09C3F6276663A09D5730A9AAB456D4863F2EDEFEF156A7809AA16D3202AA03C64359BAC628EA1D9ABE2D99999C2891ED49C6081DEA6907C93C5873B4D7880DE271D6016075AFF330FDF221790258A99564F1B51B979DE7997F5FD6676F679B4B14222753547C06960ADCC287EDC29E627FB88BD0E73EBC4E631A58DCA425FADFFEE9DBA177EC182CABA803EEE16636599A88C39A828A5FB206F6DDFD6023F560A421FF3D93B6C4A2A27B78283280C2FD5D249C35270EAE8F8947FA07189BB3A03184C1D8DDB12038184C467EE7DA6CD62F1775F316BE3C2FAB947D49DA19B480E8E4CB4C7818D7769351107386311E5EE411DAC5136869C147DA8E782FA60ED69B13C2DE18CF11FD75CE5F8F16993A026FC3441EE3B23DD6002B8F015E5CC336B5559A427864338C098F4857AA40399916614E061BB176AE4457CA72625A37F08F179A14C39B065CF3283E9425355B6504784C0F4FC1D7932F5C14B43A9CE3604935DE695CDB60B1ED58BD71AB540EEDDF9337B0743D8E624E1A932A69FB1FCA21CFE7F6D2FFDA78F2B8D5BCE01C59BC0A3981BB3BBECF345F43ACD571432B742F80491B490FD71F947480FF9D215EC21237F5AF28C31608DA7A6230CAD24EA799506C8C0B1298E9FD09DA496C6B63710920CC0DC14C00944A7D9B9B751D741A828AB35A5926D3653D45531A4D233DE198439D1946633FF6B91DF0744073CC6E3EC3B177414D8ED2AF30515D8688914667F507667776634A2A11BB68F65B363BD56E8CCF957EB4BB0147862D4C17268AFCE5685C8346E1917B8E8618D3888355CE401AAC5D2DF"; data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp:63: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 testResult[512] = "1026862877813E17E4371095271E1B56"; data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp:104: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 testData[4096] = "EA9E200DE69522895F516F1380536406D205D72B31ACB902CC582B12696579826B5AF47892C4831D8AEBBAE039D87F82096364782B49E2E896AB8077E773AB61E05A8223BF17CBF37AB1BDDA70C9B10D9943AF4109571ECFB029156889249B309EC45A34E2D701F1F4093610A7064B69E7FAE5FB39E39EEF3CAA9D64E50DA8822DF4C8DFA064B165ECA4C9CD2A6AF1A251A1F5D4004123B67A7CC3FAB7462AD43535018479BDFD24A2C4A1C4271F907E40E2057A6271BB2BC9740F753CA3692E7ACACE547E64B9FAE79A96DF3DDFCDA7FDCCC7612E41B0B9BBFA3BDE2102F322E8EC42DA2679531782920FD2E7385F6AC887D578B9D844F6A7288EDF613F3663EB538DBFF14EA29AC8D2F58C703303CD370F55BAF02532A0BCB2F80673F6D84B04A5C3EF9E05B640B4CFFD903272089B9960B54197CB5D10C23BAFEA72EFF79C65E0EABEC628EEB5850AC4A23DC80E857EBA5EC5EDB9DD0A5F391B7F8BD354EC976881C157BD5735AD894F020164A9DF214150C5788BC1CF73C15437DBF21D791C75074DF4B51B5C0ABDC79063AB7B7CEDEDC6412F9FB1F6CA171BE6814E033F32CF1F08236A3DD657DB96CCF7A35434C4D0ACFCA81546B4138A6EF6987A874111946010F78074E69BA83E3F395D1C239A122B259F48140E4B80157738A5D443E1762C55EBB67791D5297B3E900B0B53CA7433FB61D2D03C3B34772C5DF77711437003C6DFF4B03DC0B713491F526F9AE3260F903EF9A1BED641E1B262103D395ACAC3FE6F6F1436F0CB3A13AC69C60101EC394DAFFCAD8EED23893C4BC30485FC68854447A9930C0F4FB9AC5B72EF6512278F09F5A024C7CF5C5617461751CE193E54051AE93DF136725642E1DB98842BAA8B8F6231181F0BAA8393FC2EDB7CF0832BA1FDB76A46C8059732B7492711AD1A12BA584D49885E263789E27664B3893EF2DE5C010C093DE1A735D806E4D48C36A0995EADF011FB50D0CA97AFF26B4698524B9F75386897940434A0A38EAF513845BF0F024014001180C651F76B9E0ECA6499F177A1079395C1785B856D5762550EAD2B47B15AF0A6BFBB1B597E72B9E5E6F61769C27AFC29E4D8A523C89D1D2E5E59B57DE89BE04BDC1DCDA0476A157BCB4DA2F7AC0CAF9351772652E2E5B6261501BDF42C23EA9726CB6C258EE9511684CFEECA1C0598D372808002E250EDD4019F85630FD499C35016B8A99C6BF78E69053B4AE7BE6B84009B505594603B363037212DAFCC669F7482995C74A7CC225245DC2E7D4CACC8A59F67513E1D788F0218DA902F440CD2FEB6C2A90A653B0C2DBE45CC67B47863C1090F3F41AFEA9C53CE5C61A7E6B7212EE3BBE67ED91EB1BA006A931055512046779935F84D7CA306C7F9F3894F91F51EFF6005F5A8BD9DD8828BCEA1C4CC6E5F22CE7F14C0A942243C1205FD7697F09C333AE0B263"; data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp:105: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 testResult[512] = "C2FFE4BF83A6FE299CA4A187157F2442EC1527CE"; data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp:151: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 testData[4096] = "83E369A9F34D645B7E1F2F7BB676A4DFD36C411D5472A9AC6F3945EF5C9A561BB040C38F2F321C582882820C7F44D48CDC5BB84F41818F4AEB226F63078CE131481D26F26C61EE52BD1BFB60EDEDE1E03A8656E87D5662EE0C0AE085E56E488325512467DAC43E99484A16FA419D6704922C1ADE06F7D1188DBEC88384CDBFDCD2E74787AE247A8027EF60383B3B0A7D0D3ADA95BB3AA5F0821AF050A9709C75673F3926CF9AE029158D684F470DE3EE6B00BBC90F85CD6E634E86B67E4D8EB4251B472B02D167790C6E6C38BA9FE39880544EA66EB4C0BFF8AFEB9AFC40ADC24DF191744482F70793CB4A802CF1AB58562CC26D1CAA2E80375BA45507C3E9F7D99223E0E7FE93CAC58B7B0C69231162D2D7DA75EEFD59452642CDC5AA4A118B6D4AD00E8368A44988201C6286CAA8612BCFFF714855DE1E053AFD2EEED9737459540E45AEAB26999C0951228716AF02F0D35264E3411B03D222F331A4695D6DF4E9EE35D5B1015FF0BE46081D7CEC9137824217A711F015639BE76223845F1C2A25A10D29B637C5124CF50AB0CAA1E33D75843D00EAE69C3A189D463377731C3197BF44523936C4F84F143759E3D58891F7B3B51C858EE29BC1DF214AF09C93148172E842A7FC0078D4E106324AAF8862B845F290FE831037B2EFEF2528DF070DD7B1ACD67762CF1071B96FB95C5AA14F7AE13103AF45A1CF3C42C5D53CB5B954F97BA223E70E0098E224BEF8F5430D027B510DFBBC35EE5F9170E4A43BDDFCBAE8B82240DB870B6C7C7E21E21234EFA62F1582A9D150CCE1B8822BD77ED8288B20883AAEEB5BDF9D0EBB8D3FF47DD51B99E9BDB8B8A87D0536CC25D4939ECB13F7B4F7DF5F0BE8231CF3F53CE52D16A29825739B26BA4082975583967180F787ECF98AD956A9CE53759E20960752938C142DF80E57DDCA236A1F596031942016442002683865EDB210073797547D83CE77D3D6C39E2B9034E685BD28D365992E821BECAFC6DF2B60EAE9777FEE7879B176CC602501BA0B0BCB434DFA5517F8D6172647364F235B3C9BA0B1B90FE0FD67CF6650C2D8D2BC08D127DF0AB887F69CDD81D03B4CC7F44A4362C90BB38556D081E51EABD9CA3AA6C877C42FD1B001C030D0B281590696B5BB9C6A78CBE356F7AC72F525300FD13E24755294712DDF48D1AD19F844120306DC99D8CC18516A23BD022CF9DC9CACC168ADDE1C15337F15B3FBEDE4BFA498F2F963E14B7E66CD737A5485227BA1BAA7668D97C58DCE40EE7A843A5E6EB591FF91D6A6292C8A3E95A0B23C1F0B8815BE526EE7C49B5153264BC1207013EA85E9DA37F19BD50DDC9F0A5B9AB4FCFFAD2840B5A8856882E8DF95362DCA13C15328137A2A8318884FCF4D05236CEE9985DB1BA873A9AF5B33E317FA2C0CB94E7C18E46744A374C19D8C9B2788FE50C9E4D237D290555E1077"; data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp:152: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 testResult[512] = "4B089658FF932CA07BF7C42E6EC46BFF560BCAF295826D9D3C0BAE1C"; data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp:196: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 testData[4096] = "FF7E669D7764FABF6E3550E192E660DF1EE237B49F9473D757DEFA1400534F57C81E8B0E99458F74E6F57A5BB71A50D1EF61EDB3B3FB4BCA57896DFBA50C6C55B04D4C8C804DB8EB2A273E25F49AE2742D2AE430BE9A3A07715AF6816E818B63BB1FF8C876A921CF931F693E624CDAD4B54F3ABBEE4A09BF39E0FE3A313B20CD3A36B0EBD677D9D4D7C576B5EA244CF0436110D9D66110C95BE187D6EDA1E81A4456231BE32A1B5F4CDC02B2DA679322AEBAE0B795763888F07F0222ADBF824F31AEC7B80625DC36DA1F0C3DD20C6E8F79A7FA2D286119894E611EE550364428723E9C33A573F18D02F9DC90ED215EF08C95DB1CED68DA864732BC9A56B8B191815BCC12075641E3E87F46EFD3726BC1D6F47AF7BC573C554279C041C7FD5E924093241855507EE2A837E2CE62E7A9898712EDF593217B6425B3EB855D53D31F38E5A0736E34844AFCAD58A15B06D357697DC921C2FCA77091BFC207B0B4F1FA94F923B05817211462104287B43CA72986D9E6E393C9A075C267B2C1706CAD136E9F549A83E58315DE8D0B67852006EFE8B6E0773519FE6DB316EA596E1998B79C19152AADDDF8E025E7EDCB16B5CCBA2C9F990605A6969D3C667D6EDA1DA5AFF476661349712CD73F707BB0FD6F8BF0C13A90DE9C1C5CE9FB696C22849C1205C8435C818E2EE03F2235B502E0C24068B8687AF9ED065910535072DABB83F651FC60E005BEF909F6EE308B37E43DA01366C062168007D733D5EA4A610D1307BA087E8F883864140BBB02E523997A0D83E9BF289B8EC9F83F57FF553485409B0D82E77F32BD2D06A130103B9F3915730EE8BC3FB099B74AE8B32C478A83D0BAD2281C279D6B802F42A80E179F4ABB69AD485BBAE348C6F774285870F53699500CEC045B9521CF22826FAFFBC4EABE9D856B28DDBC6D2A0F318AE9475E82DE2CA6704B743397EFE45F825019B58D9E671181512D780B1BA34D059BFBF8B9B232E337335C1045682635CEF8D3CB1C744D3A7791F5DB323EF8DE768C63931266EAB0DFACAB0F99BC9C5DA234FE48ECDB23A5FDA2E92EC10AF7476B07C4BB85BDD0600B49F41585F9E0DB2B276BBE0FA7C5792B65012B6564561E4814E8D1EE706935A45F969C9AA110A630E354C7243E21436A180046605FE5D31008045A5C4AB4FF5C23585D77D6C839875CC2E960436A3D90F9664D5522EAB08867B95F9641DF0C81D59DCA8ECE8709A3F521532041BDCF7A7535F940BD3569FD2145A1B34E955E04F66E0CA809BA3FA6A347FD0CB69DADBA93DC03CDF547A96CD3159ACA61EFE20F9A566316BB9C746EB851CE51F04823667CDA0D898253BB10C1C5220B2C30461A49C5FF0DEC38264786C6125720B3768629ADABCF694E01795F618FBD0ADE5C91CB5A981BBA581A9664F51DF758D7300E081E57CE20C8A7210BC3558AD240B7"; data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp:197: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 testResult[512] = "90A49F8EB80D8ED405EFC8D658FCB9102314598939DCAA090756668056B0228A"; data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp:237: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 testData[4096] = "7D4C4274CFAFABE3605DE7E35B43F10251A441A6F4B03EE142B9EAE3DEC2E30E1A47FBE779D716427B108CCB2A2C2D7561B879B1C021E00E0498D91859BA3E7851EF3FC25A1BC6EADA8524EAEEDCC0E752AD90DFD0EA2F04B71B8ABF56DA85E4D070C91EC4B7723A02C3B52DAE31EEAF8E397CC3E92FA31E5F3292D8C9F45D459D8D1105E539D3979ADC01EB4E0C90BC33351295628BD0C2E1B4B13764EDD66BE9AD67AA7B4A7780264B0A3DBE099B190D25649B692401E0B758AB2A281B2E1AC9B4F7EE051C1B98BE92463F314A86A7FD40A4683A82457699F514563C70F1231C0B667C7B8CAD5910334CF894A9810D7C7C6DFC1E904D8512813A84911580C2AC56BB005A4FFB512A1290501AE795C832C0BF7DEBCD9B1D84CC0BB5B5F19D02FDBAB01F7B7CA47C99F3CB7D4F0D35622C267EBDADB2D089D0DA73FEA15A25C873C27EF72A84F99EC4E6980695BA6468B34B5AEC0746219468FEE88277739123FB51CEBF264140FFF27B94D6F751F26F0BC27387A2EFD038EEE43013AFC8FE94BE8E272B28ABFE2160BA81416113CBC2A1ADD96DD23F7107F4771CF2016501A8918A9A71C476CEDC10BB355BC144C818FD620301793CB16372A80881C5DFE387619ED651626CF44C8EDA8DA5BA8A6895148EE36037D4ADDBC13C5681935EDC5BD9B35F8E91B84C1F593B3E89614879CAE4DF4413E13655079F3CE21449CCA19E0963C925A75BC294F343016518D2F8FCB13ED38D574232602AD2416E94ED7735680439CE042145552F352156FCA722B31BFAA289C3711F170A845143ADFEF49CA53278358A7FECBD605AE9899192990D728CA37218B65DD9978EC4345100E174F3D04A0C8A5611263DABF7DA0BC6CE50BCD338830688B697FEB71909D1A2E09B62C5C4A8C1069C50C8DD6A432ED2B429F6BBFC304D0F0A35167BBDDCBC7F78959058393BC812820AF4917C56EA9233A1567608534F93857EA783B537CE294B4778E4B5D30D5836AE1F0D25B663A62512D2488E959D7FF000F8A70F31CC4CABB51D6F57A842AEABD707122935690F78F1F8BD7EC8544F1E70B9D6D53C50632F4DF5F0BC75630B427B28BAF2249C72F5864A3CE17627BA4F16F8FF13FA19DDF83736B171C024C95EFBC5D90615C495C2B02685C24C6E64E19C804B1DC138B5BC52A6969C4332F6113ED8C38F03A0107513C611A6FF013D2FC0B00859A6A5DFB8626002EA0126D477B5F9C7B5BEAB61A13AA8841A4C11E9DFB6A7164BBC2D40E940D9D10C56D58FBC76B92EA68425C2FF48BAE0CA2AF6F1CFBFFBBD855688C3960538E2D87088472CD73AB6D0FB86D9411310F5311EFCA3B89949A87D408B86B96C29C89A0180AF8957944E2A385A221081870CECC995FFDDD6994B0856ED0DC6303F7FDE5072F0B3D68BB132B0C5D3113939D614677720186052F4F90DD60A1CFD"; data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp:238: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 testResult[512] = "AC387A4BB1E4E078C43C69087C206F49F56EC63CE244A429DA56B8EC3CAFBC987090DA7A8F6470874CA6049D20AC5154"; data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp:286: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 testData[4096] = "A7A3B0B40CBAAB9B58F6946D9D15870B56E6832DECB708949EBF98DC4EC9C0AF477216C542A98A3646B6ABB72D89E6B3F18201CC75E93B37C2E8EADAD6827FBBFFD220642A92CABB587B27590ED204F8B2C926777C3DC9E5273CBB38582C103905C074002DAA2D8D16DD907BEFB4C51B49C464FF22B93269274291D1254889E3F677FBA6929AF472AECC02DECF822EABB2F05311E0BA8600B58075D4E49837F81C9565E37EAC96B9C2F3C08E3D818DD507D0CC8064C8CC7553D5A17204F4B92B74E5A441CF9142ED059DB1ADA76C799B10178FB3E76E4E3CAC6B1AD8648D522DCA6C93200E706D947E15422E1CC47742CCBF8E2C1E50492AFFA49BE22D5E34B0ACA62744626E2EF7014EAB17D8E538324D9A764501428A53593D23E3785831C1262F220883E2DEEFC66584A3AEC1F35998F842C5298A5E28653CF40F21C6E2383086C266E2902272198D45B38308904F5D2F614A6857E027D133C5455E75B16B9DB124755ADF06B16F04872D74D1A90F36709D8263B1190D625849F017930763AC1EA548DEC56BFD46D09F32D6ABAE96A778B39FBF22B1D6B3CA43F8E7ED32DB2254018FB1999ED0C4C3CDE710899CB20AB5E1CA706DA3E4E8E65253782379B49B7DEFE4E26DD498A935057E91B8FFB8B110336A554A6C61C26C2DDEEE8631926F8A706171B309B99E3B24030C17609340EBB82C4129B172B64CE6249FED00F05DCD624969BC1E4A29ED028C9821A812CDC310A974B959B29E30888887D9A8688E92F85E2A1683C5E993BCC584979F0B3F7DBE34295E2D852B6444EC4152A0C40F3113B402027E323231FC2EDD8078D6661F598588F68FB83DE9C2CA1491107E1F7B676BE16AA6C62B2FF86056905CFCE1FA57065B20A87B15BF1EADAC5FD94F5368451CE8CC2D363BC184A6E87D3D088CBCDE259845E4046D314660B1C1D4AFC7CCC37C7B1B8BBC7A54B63FE61FCD082966425AC3795F08BE7AFD6F9C66F2C3C50DD1EB6B8F8FC3C1A6A298A442EB6FC14AA906A7DA7854B53205E0A8F91C8D6CC3C41F4795FA70E14BA876548022733E61972F0351BC4187FFDE18E776BD68C5E947D2F0B19206D34770BA8ED63874639BBCEAA8D59771A02AEE654D20C69ACD8D16C42BAED6BD1AC51134F49C2A1D685B045527D4A86A7656439A2587F48F5AC43C5094DC680ECE19EBDD53B39F3B84F36D363D8CE464A20DE7ED50C6E32D5C7A9C3868D9823DF0E0A5FD824D239F67C41BC5AD3615AB51EA8B1A2C50B6D4C8F196F1278D9747B8C0B941509850052E63467950EBCE7B56D5E5C481D39E3958C51AE1267C075D8E62EC7F15400A5B4B91B15789015FBCCCC8186DC888CC0BC70326F1800FF56B01BC39DD1C2421BE6E142627B24822790DA36AD9CEA0661FAA03074FAA6F9EBC243DDCB249334B13D31DC19C0F03C6923CBFFEC6FAA29255"; data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp:287: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 testResult[512] = "93E3A4336693965FEEC902F3BDDB064DD63D83EA1E46AA13DA209F8F000C15F366D3F9BE4F8AF189EA96D191D0BDE4CF0FC6C462C214B55ABF78F33BD6DF3DD0"; data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp:322: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 pk[33] = "4cf15134a2850dd58a3d10ba80570d38"; data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp:323: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 testData[4][2][256] = { data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp:396: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 pk[49] = "8aa83bf8cbda10620bc1bf19fbb6cd58bc313d4a371ca8b5"; data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp:397: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 testData[4][2][256] = { data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp:470: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 pk[33] = "2b7e151628aed2a6abf7158809cf4f3c"; data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp:471: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 testData[4][2][256] = { data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp:544: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 pk[49] = "8e73b0f7da0e6452c810f32b809079e562f8ead2522c6b7b"; data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp:545: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 testData[4][2][256] = { data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp:618: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 pk[65] = "603deb1015ca71be2b73aef0857d77811f352c073b6108d72d9810a30914dff4"; data/softhsm2-2.6.1/src/lib/crypto/test/MacTests.cpp:619: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 testData[4][2][256] = { data/softhsm2-2.6.1/src/lib/crypto/test/iso8859.c:12:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char isoalpha[32] = { data/softhsm2-2.6.1/src/lib/crypto/test/iso8859.c:17:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char isoupper[32] = { data/softhsm2-2.6.1/src/lib/crypto/test/iso8859.c:22:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char isolower[32] = { data/softhsm2-2.6.1/src/lib/crypto/test/iso8859.h:10:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern unsigned char isoalpha[32], isoupper[32], isolower[32]; data/softhsm2-2.6.1/src/lib/data_mgr/ByteString.cpp:46:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char sentinel[1]; data/softhsm2-2.6.1/src/lib/data_mgr/ByteString.cpp:58: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(&byteString[0], bytes, bytesLen); data/softhsm2-2.6.1/src/lib/data_mgr/ByteString.cpp:97: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 byteStrIn[8]; data/softhsm2-2.6.1/src/lib/data_mgr/ByteString.cpp:106: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(&byteString[0], byteStrIn, 8); data/softhsm2-2.6.1/src/lib/data_mgr/ByteString.cpp:131: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(&byteString[curLen], &append.byteString[0], toAdd); data/softhsm2-2.6.1/src/lib/data_mgr/ByteString.cpp:226: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 hex[3]; data/softhsm2-2.6.1/src/lib/data_mgr/ByteString.cpp:230:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(hex, "%02X", byteString[i]); data/softhsm2-2.6.1/src/lib/object_store/DB.cpp:749: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 statement[128]; data/softhsm2-2.6.1/src/lib/object_store/DB.cpp:818: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). int fd = open(_dbpath.c_str(), O_CREAT, S_IRUSR | S_IWUSR); data/softhsm2-2.6.1/src/lib/object_store/DBObject.cpp:627: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(&value[0], binary + pos, len); data/softhsm2-2.6.1/src/lib/object_store/DBToken.cpp:69:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen(tokenPath.c_str(),"r"); data/softhsm2-2.6.1/src/lib/object_store/DBToken.cpp:176:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen(tokenPath.c_str(),"r"); data/softhsm2-2.6.1/src/lib/object_store/File.cpp:91:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(path.c_str(), flags, 0600); data/softhsm2-2.6.1/src/lib/object_store/OSAttribute.cpp:158: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(&value[0], &boolValue, value.size()); data/softhsm2-2.6.1/src/lib/object_store/OSAttribute.cpp:163: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(&value[0], &ulongValue, value.size()); data/softhsm2-2.6.1/src/lib/object_store/OSAttribute.cpp:168: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(&value[0], byteStrValue.const_byte_str(), value.size()); data/softhsm2-2.6.1/src/lib/object_store/OSAttribute.cpp:176: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(&value[0] + counter * sizeof(mech), &mech, sizeof(mech)); data/softhsm2-2.6.1/src/lib/object_store/UUID.cpp:57: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 uuidStr[37]; data/softhsm2-2.6.1/src/lib/object_store/UUID.cpp:59:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(uuidStr, "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x", data/softhsm2-2.6.1/src/lib/object_store/test/ObjectFileTests.cpp:709:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* stream = fopen("testdir/test.object", "w"); data/softhsm2-2.6.1/src/lib/object_store/test/ObjectFileTests.cpp:711:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* stream = fopen("testdir\\test.object", "wb"); data/softhsm2-2.6.1/src/lib/pkcs11/pkcs11.h:226:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char manufacturer_id[32]; data/softhsm2-2.6.1/src/lib/pkcs11/pkcs11.h:228:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char library_description[32]; data/softhsm2-2.6.1/src/lib/pkcs11/pkcs11.h:243:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char slot_description[64]; data/softhsm2-2.6.1/src/lib/pkcs11/pkcs11.h:244:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char manufacturer_id[32]; data/softhsm2-2.6.1/src/lib/pkcs11/pkcs11.h:259:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char label[32]; data/softhsm2-2.6.1/src/lib/pkcs11/pkcs11.h:260:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char manufacturer_id[32]; data/softhsm2-2.6.1/src/lib/pkcs11/pkcs11.h:261:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char model[16]; data/softhsm2-2.6.1/src/lib/pkcs11/pkcs11.h:262:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char serial_number[16]; data/softhsm2-2.6.1/src/lib/pkcs11/pkcs11.h:276:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char utc_time[16]; data/softhsm2-2.6.1/src/lib/pkcs11/pkcs11.h:539:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char year[4]; data/softhsm2-2.6.1/src/lib/pkcs11/pkcs11.h:540:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char month[2]; data/softhsm2-2.6.1/src/lib/pkcs11/pkcs11.h:541:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char day[2]; data/softhsm2-2.6.1/src/lib/pkcs11/pkcs11.h:979:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char cb[16]; data/softhsm2-2.6.1/src/lib/pkcs11/pkcs11.h:1021:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char iv[8]; data/softhsm2-2.6.1/src/lib/pkcs11/pkcs11.h:1027:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char iv[16]; data/softhsm2-2.6.1/src/lib/session_mgr/Session.cpp:358: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(param, inParam, inParamLen); data/softhsm2-2.6.1/src/lib/slot_mgr/Slot.cpp:88: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 mfgID[33]; data/softhsm2-2.6.1/src/lib/slot_mgr/Slot.cpp:93: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(info->slotDescription, sDescription.data(), sDescription.size()); data/softhsm2-2.6.1/src/lib/slot_mgr/Slot.cpp:94: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(info->manufacturerID, mfgID, strlen(mfgID)); data/softhsm2-2.6.1/src/lib/slot_mgr/Token.cpp:506: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 mfgID[33]; data/softhsm2-2.6.1/src/lib/slot_mgr/Token.cpp:507: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 model[17]; data/softhsm2-2.6.1/src/lib/slot_mgr/Token.cpp:514: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(info->manufacturerID, mfgID, strlen(mfgID)); data/softhsm2-2.6.1/src/lib/slot_mgr/Token.cpp:515: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(info->model, model, strlen(model)); data/softhsm2-2.6.1/src/lib/slot_mgr/Token.cpp:537: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 dateTime[17]; data/softhsm2-2.6.1/src/lib/slot_mgr/Token.cpp:539: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(info->utcTime, dateTime, 16); data/softhsm2-2.6.1/src/lib/test/DeriveTests.cpp:658: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(param2.iv, "12345678", 8); data/softhsm2-2.6.1/src/lib/test/DeriveTests.cpp:665: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(param3.iv, "1234567890ABCDEF", 16); data/softhsm2-2.6.1/src/lib/test/InfoTests.cpp:171: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(label, "token1", strlen("token1")); data/softhsm2-2.6.1/src/lib/test/ObjectTests.cpp:1362: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 pStoredLabel[64]; data/softhsm2-2.6.1/src/lib/test/TestsNoPINInitBase.cpp:117: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(label, "token1", strlen("token1")); data/softhsm2-2.6.1/src/lib/test/TokenTests.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(label, "token1", strlen("token1")); data/softhsm2-2.6.1/src/lib/test/TokenTests.cpp:73: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(serialNumber, tokenInfo.serialNumber, 16); data/softhsm2-2.6.1/src/lib/win32/syslog.cpp:36:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/softhsm2-2.6.1/src/bin/common/findslot.cpp:71:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t inSize = strlen(serial); data/softhsm2-2.6.1/src/bin/common/findslot.cpp:83:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t inSize = strlen(token); data/softhsm2-2.6.1/src/bin/common/findslot.cpp:213:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t inSize = strlen(serial); data/softhsm2-2.6.1/src/bin/common/findslot.cpp:225:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t inSize = strlen(token); data/softhsm2-2.6.1/src/bin/common/getpw.cpp:109:15: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((ch = getchar()) != '\n' && ch != EOF) data/softhsm2-2.6.1/src/bin/common/getpw.cpp:152:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(pin); data/softhsm2-2.6.1/src/bin/keyconv/softhsm2-keyconv-ossl.cpp:150:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). file_pin, strlen(file_pin), NULL, data/softhsm2-2.6.1/src/bin/keyconv/softhsm2-keyconv-ossl.cpp:243:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). file_pin, strlen(file_pin), NULL, data/softhsm2-2.6.1/src/bin/keyconv/softhsm2-keyconv.cpp:182:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncasecmp(line, file_tags[m], strlen(file_tags[m])) == 0) data/softhsm2-2.6.1/src/bin/keyconv/softhsm2-keyconv.cpp:197:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). value_pointer = line + strlen(file_tags[found]) + 1; data/softhsm2-2.6.1/src/bin/migrate/softhsm2-migrate.cpp:405: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). rv = p11->C_Login(*hSession, CKU_USER, (CK_UTF8CHAR_PTR)user_pin_copy, strlen(user_pin_copy)); data/softhsm2-2.6.1/src/bin/util/softhsm2-util-botan.cpp:93:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { CKA_LABEL, label, strlen(label) }, data/softhsm2-2.6.1/src/bin/util/softhsm2-util-botan.cpp:99:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { CKA_VALUE, &aesKeyValue, strlen(aesKeyValue) } data/softhsm2-2.6.1/src/bin/util/softhsm2-util-botan.cpp:273:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { CKA_LABEL, label, strlen(label) }, data/softhsm2-2.6.1/src/bin/util/softhsm2-util-botan.cpp:285: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). { CKA_LABEL, label, strlen(label) }, data/softhsm2-2.6.1/src/bin/util/softhsm2-util-botan.cpp:432:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { CKA_LABEL, label, strlen(label) }, data/softhsm2-2.6.1/src/bin/util/softhsm2-util-botan.cpp:446:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { CKA_LABEL, label, strlen(label) }, data/softhsm2-2.6.1/src/bin/util/softhsm2-util-botan.cpp:568: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). { CKA_LABEL, label, strlen(label) }, data/softhsm2-2.6.1/src/bin/util/softhsm2-util-botan.cpp:580: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). { CKA_LABEL, label, strlen(label) }, data/softhsm2-2.6.1/src/bin/util/softhsm2-util-botan.cpp:715: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). { CKA_LABEL, label, strlen(label) }, data/softhsm2-2.6.1/src/bin/util/softhsm2-util-botan.cpp:727: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). { CKA_LABEL, label, strlen(label) }, data/softhsm2-2.6.1/src/bin/util/softhsm2-util-ossl.cpp:106:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { CKA_LABEL, label, strlen(label) }, data/softhsm2-2.6.1/src/bin/util/softhsm2-util-ossl.cpp:112:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { CKA_VALUE, &aesKeyValue, strlen(aesKeyValue) } data/softhsm2-2.6.1/src/bin/util/softhsm2-util-ossl.cpp:246:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p8inf = PKCS8_decrypt(p8, filePIN, strlen(filePIN)); data/softhsm2-2.6.1/src/bin/util/softhsm2-util-ossl.cpp:309:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { CKA_LABEL, label, strlen(label) }, data/softhsm2-2.6.1/src/bin/util/softhsm2-util-ossl.cpp:321: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). { CKA_LABEL, label, strlen(label) }, data/softhsm2-2.6.1/src/bin/util/softhsm2-util-ossl.cpp:480:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { CKA_LABEL, label, strlen(label) }, data/softhsm2-2.6.1/src/bin/util/softhsm2-util-ossl.cpp:494:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { CKA_LABEL, label, strlen(label) }, data/softhsm2-2.6.1/src/bin/util/softhsm2-util-ossl.cpp:625: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). { CKA_LABEL, label, strlen(label) }, data/softhsm2-2.6.1/src/bin/util/softhsm2-util-ossl.cpp:637: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). { CKA_LABEL, label, strlen(label) }, data/softhsm2-2.6.1/src/bin/util/softhsm2-util-ossl.cpp:842: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). { CKA_LABEL, label, strlen(label) }, data/softhsm2-2.6.1/src/bin/util/softhsm2-util-ossl.cpp:854: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). { CKA_LABEL, label, strlen(label) }, data/softhsm2-2.6.1/src/bin/util/softhsm2-util.cpp:421:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(label) > 32) data/softhsm2-2.6.1/src/bin/util/softhsm2-util.cpp:443: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). memcpy(paddedLabel, label, strlen(label)); data/softhsm2-2.6.1/src/bin/util/softhsm2-util.cpp:445:68: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). CK_RV rv = p11->C_InitToken(slotID, (CK_UTF8CHAR_PTR)so_pin_copy, strlen(so_pin_copy), paddedLabel); data/softhsm2-2.6.1/src/bin/util/softhsm2-util.cpp:480:68: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rv = p11->C_Login(hSession, CKU_SO, (CK_UTF8CHAR_PTR)so_pin_copy, strlen(so_pin_copy)); data/softhsm2-2.6.1/src/bin/util/softhsm2-util.cpp:487:64: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rv = p11->C_InitPIN(hSession, (CK_UTF8CHAR_PTR)user_pin_copy, strlen(user_pin_copy)); data/softhsm2-2.6.1/src/bin/util/softhsm2-util.cpp:649:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t inSize = strlen(serial); data/softhsm2-2.6.1/src/bin/util/softhsm2-util.cpp:661:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t inSize = strlen(label); data/softhsm2-2.6.1/src/bin/util/softhsm2-util.cpp:706:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char*) paddedTokenLabel, (char*) tokenLabel.byte_str(), tokenLabel.size()); data/softhsm2-2.6.1/src/bin/util/softhsm2-util.cpp:710:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char*) paddedTokenSerial, (char*) tokenSerial.byte_str(), tokenSerial.size()); data/softhsm2-2.6.1/src/bin/util/softhsm2-util.cpp:1055:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* objID = hexStrToBin(objectID, strlen(objectID), &objIDLen); data/softhsm2-2.6.1/src/bin/util/softhsm2-util.cpp:1087:72: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rv = p11->C_Login(hSession, CKU_USER, (CK_UTF8CHAR_PTR)user_pin_copy, strlen(user_pin_copy)); data/softhsm2-2.6.1/src/bin/util/softhsm2-util.cpp:1139:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* objID = hexStrToBin(objectID, strlen(objectID), &objIDLen); data/softhsm2-2.6.1/src/bin/util/softhsm2-util.cpp:1169:72: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rv = p11->C_Login(hSession, CKU_USER, (CK_UTF8CHAR_PTR)user_pin_copy, strlen(user_pin_copy)); data/softhsm2-2.6.1/src/lib/common/SimpleConfigLoader.cpp:322:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int endPos = strlen(text) - 1; data/softhsm2-2.6.1/src/lib/crypto/BotanSymmetricAlgorithm.cpp:267:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytesRead = cryption->read(&encryptedData[0], outLen); data/softhsm2-2.6.1/src/lib/crypto/BotanSymmetricAlgorithm.cpp:307:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytesRead = cryption->read(&encryptedData[0], outLen); data/softhsm2-2.6.1/src/lib/crypto/BotanSymmetricAlgorithm.cpp:509:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytesRead = cryption->read(&data[0], outLen); data/softhsm2-2.6.1/src/lib/crypto/BotanSymmetricAlgorithm.cpp:571:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytesRead = cryption->read(&data[0], outLen); data/softhsm2-2.6.1/src/lib/crypto/test/RSATests.cpp:521: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). ByteString dataToSign1((const unsigned char*) testValue1, strlen(testValue1)); data/softhsm2-2.6.1/src/lib/crypto/test/RSATests.cpp:547: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). ByteString dataToSign2((const unsigned char*) testValue2, strlen(testValue2)); data/softhsm2-2.6.1/src/lib/data_mgr/test/RFC4880Tests.cpp:57:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ByteString pwd1(pwd1String, strlen("monkey")); data/softhsm2-2.6.1/src/lib/data_mgr/test/RFC4880Tests.cpp:58:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ByteString pwd2(pwd2String, strlen("bicycle")); data/softhsm2-2.6.1/src/lib/slot_mgr/Slot.cpp:94:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy(info->manufacturerID, mfgID, strlen(mfgID)); data/softhsm2-2.6.1/src/lib/slot_mgr/Token.cpp:488:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char*) info->label, (char*) label.byte_str(), label.size()); data/softhsm2-2.6.1/src/lib/slot_mgr/Token.cpp:493:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char*) info->serialNumber, (char*) serial.byte_str(), serial.size()); data/softhsm2-2.6.1/src/lib/slot_mgr/Token.cpp:514:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy(info->manufacturerID, mfgID, strlen(mfgID)); data/softhsm2-2.6.1/src/lib/slot_mgr/Token.cpp:515: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). memcpy(info->model, model, strlen(model)); data/softhsm2-2.6.1/src/lib/test/InfoTests.cpp:171:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy(label, "token1", strlen("token1")); data/softhsm2-2.6.1/src/lib/test/ObjectTests.cpp:627:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { CKA_SUBJECT, (CK_VOID_PTR)pSubject, strlen(pSubject) }, data/softhsm2-2.6.1/src/lib/test/ObjectTests.cpp:628:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { CKA_VALUE, (CK_VOID_PTR)pValue, strlen(pValue) } data/softhsm2-2.6.1/src/lib/test/ObjectTests.cpp:953:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { CKA_LABEL, (CK_UTF8CHAR_PTR)pLabel, strlen(pLabel) }, data/softhsm2-2.6.1/src/lib/test/ObjectTests.cpp:1339:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { CKA_LABEL, (CK_UTF8CHAR_PTR)pLabel, strlen(pLabel) } data/softhsm2-2.6.1/src/lib/test/ObjectTests.cpp:1360:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). CPPUNIT_ASSERT(attribs[0].ulValueLen == strlen(pLabel)); data/softhsm2-2.6.1/src/lib/test/ObjectTests.cpp:1367:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). CPPUNIT_ASSERT(attribs[0].ulValueLen == strlen(pLabel)); data/softhsm2-2.6.1/src/lib/test/ObjectTests.cpp:1368: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). CPPUNIT_ASSERT(memcmp(pLabel,pStoredLabel,strlen(pLabel)) == 0); data/softhsm2-2.6.1/src/lib/test/ObjectTests.cpp:1425:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { CKA_LABEL, (CK_UTF8CHAR_PTR)pLabel, strlen(pLabel) } data/softhsm2-2.6.1/src/lib/test/TestsNoPINInitBase.cpp:110:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). m_soPin1Length(strlen((char*)m_soPin1)), data/softhsm2-2.6.1/src/lib/test/TestsNoPINInitBase.cpp:112:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). m_userPin1Length(strlen((char*)m_userPin1)) {}; data/softhsm2-2.6.1/src/lib/test/TestsNoPINInitBase.cpp:117:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy(label, "token1", strlen("token1")); data/softhsm2-2.6.1/src/lib/test/TokenTests.cpp:49:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy(label, "token1", strlen("token1")); data/softhsm2-2.6.1/src/lib/test/UserTests.cpp:186:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const CK_ULONG pin2Length(strlen((char*)pin2)); data/softhsm2-2.6.1/src/lib/test/UserTests.cpp:188:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const CK_ULONG so2pinLength(strlen((char*)so2pin)); ANALYSIS SUMMARY: Hits = 424 Lines analyzed = 105542 in approximately 2.52 seconds (41834 lines/second) Physical Source Lines of Code (SLOC) = 67906 Hits@level = [0] 505 [1] 74 [2] 266 [3] 10 [4] 74 [5] 0 Hits@level+ = [0+] 929 [1+] 424 [2+] 350 [3+] 84 [4+] 74 [5+] 0 Hits/KSLOC@level+ = [0+] 13.6807 [1+] 6.24393 [2+] 5.15418 [3+] 1.237 [4+] 1.08974 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.