Testing Botan 3.0.0-alpha0 (unreleased, revision git:8ee0c78c3f7561a2353bc69ac6b6baf27dbaa60e, distribution unspecified) CPU flags: sse2 ssse3 sse41 sse42 avx2 avx512f avx512dq avx512bw rdtsc bmi1 bmi2 adx aes_ni clmul rdrand rdseed Starting tests pkcs11 library:/opt/local/lib/softhsm/libsofthsm2.so drbg_seed:00008E9066184047 block: AES-128 ran 51705 tests in 277.27 msec all ok AES-192 ran 60750 tests in 324.54 msec all ok AES-256 ran 69390 tests in 384.44 msec all ok ARIA-128 ran 30 tests in 0.39 msec all ok ARIA-192 ran 30 tests in 0.29 msec all ok ARIA-256 ran 30 tests in 0.31 msec all ok Blowfish ran 2790 tests in 96.16 msec all ok CAST-128 ran 2160 tests in 12.21 msec all ok Camellia-128 ran 180 tests in 1.08 msec all ok Camellia-192 ran 90 tests in 0.55 msec all ok Camellia-256 ran 150 tests in 0.96 msec all ok Cascade(Serpent,AES-256) ran 30 tests in 0.64 msec all ok Cascade(Serpent,CAST-128) ran 15 tests in 0.26 msec all ok Cascade(Serpent,Twofish) ran 45 tests in 1.35 msec all ok DES ran 14445 tests in 86.75 msec all ok GOST-28147-89(R3411_94_TestParam) ran 270 tests in 2.93 msec all ok GOST-28147-89(R3411_CryptoPro) ran 150 tests in 1.79 msec all ok IDEA ran 16260 tests in 96.23 msec all ok Lion(SHA-160,RC4,64) ran 15 tests in 0.34 msec all ok Noekeon ran 15450 tests in 88.77 msec all ok SEED ran 120 tests in 0.73 msec all ok SHACAL2 ran 45945 tests in 296.09 msec all ok SM4 ran 45 tests in 0.38 msec all ok Serpent ran 47070 tests in 317.65 msec all ok Threefish-512 ran 150 tests in 1.13 msec all ok TripleDES ran 2520 tests in 21.77 msec all ok Twofish ran 16545 tests in 183.58 msec all ok stream: CTR-BE(AES-128) ran 648 tests in 8.10 msec all ok CTR-BE(AES-128,4) ran 12 tests in 0.17 msec all ok CTR-BE(AES-128,5) ran 12 tests in 0.12 msec all ok CTR-BE(AES-128,6) ran 12 tests in 0.12 msec all ok CTR-BE(AES-128,8) ran 12 tests in 0.17 msec all ok CTR-BE(AES-192) ran 768 tests in 7.40 msec all ok CTR-BE(AES-256) ran 804 tests in 7.90 msec all ok CTR-BE(Blowfish) ran 12 tests in 0.34 msec all ok CTR-BE(DES) ran 588 tests in 6.78 msec all ok CTR-BE(Noekeon) ran 2304 tests in 45.21 msec all ok CTR-BE(Serpent) ran 2100 tests in 43.90 msec all ok CTR-BE(TripleDES) ran 2556 tests in 53.17 msec all ok ChaCha(12) ran 72 tests in 0.66 msec all ok ChaCha(20) ran 3096 tests in 33.78 msec all ok ChaCha(8) ran 717 tests in 7.44 msec all ok MARK-4 ran 120 tests in 0.95 msec all ok OFB(AES-128) ran 132 tests in 1.19 msec all ok OFB(AES-192) ran 12 tests in 0.11 msec all ok OFB(AES-256) ran 12 tests in 0.10 msec all ok OFB(DES) ran 48 tests in 0.64 msec all ok RC4 ran 1656 tests in 17.68 msec all ok RC4(3) ran 24 tests in 0.20 msec all ok SHAKE-128 ran 13740 tests in 106.52 msec all ok Salsa20 ran 143 tests in 1.31 msec all ok hash: Adler32 ran 266 tests in 0.73 msec all ok BLAKE2b(224) ran 2547 tests in 14.42 msec all ok BLAKE2b(256) ran 2547 tests in 14.28 msec all ok BLAKE2b(384) ran 2547 tests in 14.76 msec all ok BLAKE2b(512) ran 2675 tests in 17.87 msec all ok CRC24 ran 284 tests in 0.79 msec all ok CRC32 ran 266 tests in 0.72 msec all ok Comb4P(MD4,MD5) ran 10 tests in 0.23 msec all ok Comb4P(SHA-160,RIPEMD-160) ran 10 tests in 0.13 msec all ok GOST-R-34.11-94 ran 95 tests in 3.23 msec all ok Keccak-1600(224) ran 2667 tests in 19.61 msec all ok Keccak-1600(256) ran 2667 tests in 19.06 msec all ok Keccak-1600(384) ran 2667 tests in 21.68 msec all ok Keccak-1600(512) ran 2667 tests in 25.40 msec all ok MD4 ran 1500 tests in 4.17 msec all ok MD5 ran 1520 tests in 4.59 msec all ok Parallel(MD5,SHA-160) ran 13 tests in 0.22 msec all ok Parallel(SHA-256,SHA-512) ran 15 tests in 0.14 msec all ok RIPEMD-160 ran 1486 tests in 5.08 msec all ok SHA-160 ran 4590 tests in 16.49 msec all ok SHA-224 ran 150 tests in 0.47 msec all ok SHA-256 ran 23358 tests in 62.85 msec all ok SHA-3(224) ran 1994 tests in 14.30 msec all ok SHA-3(256) ran 1994 tests in 14.10 msec all ok SHA-3(384) ran 1994 tests in 13.70 msec all ok SHA-3(512) ran 1994 tests in 26.31 msec all ok SHA-384 ran 378 tests in 1.22 msec all ok SHA-512 ran 8178 tests in 28.22 msec all ok SHA-512-256 ran 34 tests in 0.15 msec all ok SHAKE-128(1120) ran 10 tests in 0.06 msec all ok SHAKE-128(128) ran 2107 tests in 12.32 msec all ok SHAKE-256(2000) ran 10 tests in 0.10 msec all ok SHAKE-256(256) ran 27 tests in 0.35 msec all ok SM3 ran 1375 tests in 5.97 msec all ok Skein-512(224) ran 2547 tests in 31.19 msec all ok Skein-512(256) ran 2547 tests in 30.22 msec all ok Skein-512(384) ran 2547 tests in 29.69 msec all ok Skein-512(512) ran 2667 tests in 35.96 msec all ok Skein-512(512,Test) ran 8 tests in 0.11 msec all ok Streebog-256 ran 1307 tests in 15.45 msec all ok Streebog-512 ran 1317 tests in 15.80 msec all ok Whirlpool ran 146 tests in 0.68 msec all ok mac: BLAKE2b(224) ran 36 tests in 0.30 msec all ok BLAKE2b(256) ran 142 tests in 1.10 msec all ok BLAKE2b(384) ran 142 tests in 1.10 msec all ok BLAKE2b(512) ran 5620 tests in 46.42 msec all ok BLAKE2b(8) ran 22 tests in 0.35 msec all ok CMAC(AES-128) ran 245 tests in 2.52 msec all ok CMAC(AES-192) ran 64 tests in 0.70 msec all ok CMAC(AES-256) ran 75 tests in 0.74 msec all ok CMAC(Blowfish) ran 11 tests in 0.73 msec all ok CMAC(Threefish-512) ran 11 tests in 0.16 msec all ok GMAC(AES-128) ran 300 tests in 4.76 msec all ok GMAC(AES-192) ran 168 tests in 2.99 msec all ok GMAC(AES-256) ran 168 tests in 2.89 msec all ok HMAC(MD5) ran 44 tests in 0.43 msec all ok HMAC(RIPEMD-160) ran 44 tests in 0.37 msec all ok HMAC(SHA-160) ran 66 tests in 0.60 msec all ok HMAC(SHA-224) ran 55 tests in 0.47 msec all ok HMAC(SHA-256) ran 77 tests in 0.69 msec all ok HMAC(SHA-3(224)) ran 88 tests in 1.44 msec all ok HMAC(SHA-3(256)) ran 88 tests in 1.29 msec all ok HMAC(SHA-3(384)) ran 88 tests in 1.50 msec all ok HMAC(SHA-3(512)) ran 88 tests in 1.45 msec all ok HMAC(SHA-384) ran 66 tests in 0.67 msec all ok HMAC(SHA-512) ran 66 tests in 0.73 msec all ok HMAC(SHA-512-256) ran 33 tests in 0.42 msec all ok Poly1305 ran 852 tests in 5.82 msec all ok SipHash(2,4) ran 641 tests in 4.77 msec all ok X9.19-MAC ran 66 tests in 1.46 msec all ok aead: AES-128/CCM(10,2) ran 52 tests in 0.66 msec all ok AES-128/CCM(12,2) ran 26 tests in 0.33 msec all ok AES-128/CCM(14,2) ran 26 tests in 0.31 msec all ok AES-128/CCM(16,2) ran 364 tests in 4.62 msec all ok AES-128/CCM(16,3) ran 52 tests in 0.74 msec all ok AES-128/CCM(16,4) ran 26 tests in 0.30 msec all ok AES-128/CCM(16,5) ran 26 tests in 0.30 msec all ok AES-128/CCM(16,6) ran 26 tests in 0.31 msec all ok AES-128/CCM(16,7) ran 26 tests in 0.32 msec all ok AES-128/CCM(16,8) ran 26 tests in 0.32 msec all ok AES-128/CCM(4,2) ran 26 tests in 0.31 msec all ok AES-128/CCM(4,8) ran 26 tests in 0.33 msec all ok AES-128/CCM(6,2) ran 26 tests in 0.32 msec all ok AES-128/CCM(6,7) ran 26 tests in 0.33 msec all ok AES-128/CCM(8,2) ran 104 tests in 1.72 msec all ok AES-128/CCM(8,3) ran 26 tests in 0.33 msec all ok AES-128/EAX ran 2824 tests in 50.34 msec all ok AES-128/EAX(8) ran 60 tests in 1.32 msec all ok AES-128/GCM ran 2088 tests in 25.18 msec all ok AES-128/GCM(12) ran 368 tests in 4.52 msec all ok AES-128/GCM(8) ran 120 tests in 1.39 msec all ok AES-128/OCB ran 1242 tests in 15.81 msec all ok AES-128/OCB(12) ran 30 tests in 0.37 msec all ok AES-128/SIV ran 7487 tests in 102.61 msec all ok AES-192/EAX ran 150 tests in 2.07 msec all ok AES-192/GCM ran 736 tests in 8.89 msec all ok AES-192/GCM(12) ran 248 tests in 3.46 msec all ok AES-256/EAX ran 180 tests in 2.63 msec all ok AES-256/GCM ran 736 tests in 8.98 msec all ok AES-256/GCM(12) ran 248 tests in 3.06 msec all ok AES-256/GCM(13) ran 248 tests in 3.10 msec all ok AES-256/GCM(14) ran 248 tests in 3.10 msec all ok AES-256/GCM(15) ran 248 tests in 3.01 msec all ok ARIA-128/GCM ran 144 tests in 2.36 msec all ok ARIA-256/GCM ran 144 tests in 2.42 msec all ok Blowfish/EAX ran 509 tests in 15.09 msec all ok ChaCha20Poly1305 ran 41587 tests in 507.70 msec all ok DES/EAX ran 509 tests in 7.67 msec all ok SHACAL2/OCB(32) ran 90 tests in 1.86 msec all ok Threefish-512/EAX ran 30 tests in 0.72 msec all ok Threefish-512/OCB(32) ran 30 tests in 0.50 msec all ok TripleDES/EAX ran 509 tests in 9.79 msec all ok Twofish/EAX ran 989 tests in 23.15 msec all ok modes: AES-128/CBC/CTS ran 174 tests in 2.81 msec all ok AES-128/CBC/NoPadding ran 1202 tests in 12.73 msec all ok AES-128/CBC/PKCS7 ran 1885 tests in 28.82 msec all ok AES-128/CFB ran 366 tests in 3.50 msec all ok AES-128/CFB(8) ran 405 tests in 4.28 msec all ok AES-128/XTS ran 5036 tests in 69.76 msec all ok AES-192/CBC/NoPadding ran 100 tests in 1.03 msec all ok AES-192/CFB ran 37 tests in 0.36 msec all ok AES-192/CFB(8) ran 37 tests in 0.40 msec all ok AES-256/CBC/NoPadding ran 100 tests in 1.04 msec all ok AES-256/CFB ran 37 tests in 0.37 msec all ok AES-256/CFB(8) ran 37 tests in 0.41 msec all ok AES-256/XTS ran 1486 tests in 20.76 msec all ok ARIA-256/CBC/NoPadding ran 37 tests in 0.73 msec all ok Blowfish/CBC/NoPadding ran 74 tests in 1.98 msec all ok CAST-128/CBC/PKCS7 ran 29 tests in 0.51 msec all ok CTR-BE(AES-128) ran 33 tests in 0.30 msec all ok CTR-BE(DES) ran 33 tests in 0.45 msec all ok DES/CBC/CTS ran 1278 tests in 16.89 msec all ok DES/CBC/NoPadding ran 60 tests in 1.51 msec all ok DES/CBC/OneAndZeros ran 1015 tests in 13.69 msec all ok DES/CBC/PKCS7 ran 957 tests in 13.21 msec all ok DES/CFB ran 668 tests in 7.00 msec all ok DES/CFB(16) ran 222 tests in 2.26 msec all ok DES/CFB(32) ran 259 tests in 2.74 msec all ok DES/CFB(8) ran 370 tests in 4.21 msec all ok Noekeon/CBC/PKCS7 ran 3712 tests in 79.23 msec all ok SHACAL2/XTS ran 29 tests in 0.74 msec all ok Serpent/XTS ran 7034 tests in 150.72 msec all ok Threefish-512/XTS ran 29 tests in 0.55 msec all ok TripleDES/CBC/NoPadding ran 76 tests in 0.97 msec all ok TripleDES/CBC/PKCS7 ran 37 tests in 0.51 msec all ok TripleDES/CFB ran 37 tests in 0.45 msec all ok TripleDES/CFB(8) ran 368 tests in 12.63 msec all ok TripleDES/XTS ran 4424 tests in 65.34 msec all ok Twofish/XTS ran 8248 tests in 177.07 msec all ok kdf: HKDF(HMAC(SHA-160)) ran 16 tests in 0.43 msec all ok HKDF(HMAC(SHA-256)) ran 12 tests in 0.19 msec all ok HKDF(HMAC(SHA-512)) ran 20 tests in 0.35 msec all ok HKDF-Expand(HMAC(SHA-160)) ran 16 tests in 0.23 msec all ok HKDF-Expand(HMAC(SHA-256)) ran 12 tests in 0.16 msec all ok HKDF-Expand(HMAC(SHA-512)) ran 20 tests in 0.29 msec all ok HKDF-Extract(HMAC(SHA-160)) ran 16 tests in 0.24 msec all ok HKDF-Extract(HMAC(SHA-256)) ran 12 tests in 0.15 msec all ok HKDF-Extract(HMAC(SHA-512)) ran 20 tests in 0.26 msec all ok KDF1(SHA-160) ran 24 tests in 0.19 msec all ok KDF1-18033(SHA-160) ran 8 tests in 0.10 msec all ok KDF1-18033(SHA-256) ran 8 tests in 0.05 msec all ok KDF2(SHA-160) ran 316 tests in 1.97 msec all ok KDF2(SHA-256) ran 4 tests in 0.03 msec all ok SP800-108-Counter(CMAC(AES-128)) ran 120 tests in 1.75 msec all ok SP800-108-Counter(CMAC(AES-192)) ran 120 tests in 1.77 msec all ok SP800-108-Counter(CMAC(AES-256)) ran 120 tests in 1.80 msec all ok SP800-108-Counter(CMAC(TripleDES)) ran 120 tests in 3.48 msec all ok SP800-108-Counter(HMAC(SHA-160)) ran 120 tests in 1.59 msec all ok SP800-108-Counter(HMAC(SHA-256)) ran 120 tests in 1.52 msec all ok SP800-108-Counter(HMAC(SHA-384)) ran 120 tests in 1.73 msec all ok SP800-108-Counter(HMAC(SHA-512)) ran 120 tests in 1.75 msec all ok SP800-108-Feedback(CMAC(AES-128)) ran 120 tests in 1.70 msec all ok SP800-108-Feedback(CMAC(AES-192)) ran 120 tests in 1.80 msec all ok SP800-108-Feedback(CMAC(AES-256)) ran 120 tests in 1.77 msec all ok SP800-108-Feedback(CMAC(TripleDES)) ran 120 tests in 3.83 msec all ok SP800-108-Feedback(HMAC(SHA-160)) ran 120 tests in 1.74 msec all ok SP800-108-Feedback(HMAC(SHA-256)) ran 120 tests in 1.56 msec all ok SP800-108-Feedback(HMAC(SHA-384)) ran 120 tests in 1.73 msec all ok SP800-108-Feedback(HMAC(SHA-512)) ran 120 tests in 1.76 msec all ok SP800-108-Pipeline(CMAC(AES-128)) ran 120 tests in 1.97 msec all ok SP800-108-Pipeline(CMAC(AES-192)) ran 120 tests in 1.89 msec all ok SP800-108-Pipeline(CMAC(AES-256)) ran 120 tests in 1.97 msec all ok SP800-108-Pipeline(CMAC(TripleDES)) ran 120 tests in 3.78 msec all ok SP800-108-Pipeline(HMAC(SHA-160)) ran 120 tests in 1.97 msec all ok SP800-108-Pipeline(HMAC(SHA-256)) ran 120 tests in 1.74 msec all ok SP800-108-Pipeline(HMAC(SHA-384)) ran 120 tests in 1.86 msec all ok SP800-108-Pipeline(HMAC(SHA-512)) ran 120 tests in 1.93 msec all ok SP800-56A(HMAC(SHA-160)) ran 200 tests in 3.07 msec all ok SP800-56A(HMAC(SHA-224)) ran 196 tests in 2.86 msec all ok SP800-56A(HMAC(SHA-256)) ran 196 tests in 2.75 msec all ok SP800-56A(HMAC(SHA-384)) ran 196 tests in 2.88 msec all ok SP800-56A(HMAC(SHA-512)) ran 192 tests in 2.92 msec all ok SP800-56A(SHA-160) ran 188 tests in 1.69 msec all ok SP800-56A(SHA-224) ran 188 tests in 1.74 msec all ok SP800-56A(SHA-256) ran 188 tests in 1.59 msec all ok SP800-56A(SHA-384) ran 188 tests in 1.56 msec all ok SP800-56A(SHA-512) ran 188 tests in 1.55 msec all ok SP800-56C(HMAC(SHA-160)) ran 40 tests in 0.75 msec all ok SP800-56C(HMAC(SHA-256)) ran 40 tests in 0.73 msec all ok SP800-56C(HMAC(SHA-384)) ran 40 tests in 0.76 msec all ok SP800-56C(HMAC(SHA-512)) ran 40 tests in 0.72 msec all ok TLS-12-PRF(HMAC(SHA-224)) ran 4 tests in 0.11 msec all ok TLS-12-PRF(HMAC(SHA-256)) ran 4 tests in 0.07 msec all ok TLS-12-PRF(HMAC(SHA-384)) ran 4 tests in 0.08 msec all ok TLS-12-PRF(HMAC(SHA-512)) ran 4 tests in 0.08 msec all ok X9.42-PRF(1.2.840.113549.1.9.16.3.7) ran 4 tests in 0.10 msec all ok X9.42-PRF(KeyWrap.TripleDES) ran 4 tests in 0.18 msec all ok pbkdf: src/tests/test_dl_group.cpp:46:61: runtime error: load of value 9, which is not a valid value for type 'Botan::DL_Group::PrimeType' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/tests/test_dl_group.cpp:46:61 in src/lib/pubkey/dl_group/dl_group.cpp:320:4: runtime error: load of value 9, which is not a valid value for type 'Botan::DL_Group::PrimeType' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/lib/pubkey/dl_group/dl_group.cpp:320:4 in src/lib/pubkey/dl_group/dl_group.cpp:262:7: runtime error: load of value 9, which is not a valid value for type 'Botan::DL_Group::PrimeType' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/lib/pubkey/dl_group/dl_group.cpp:262:7 in src/lib/pubkey/dl_group/dl_group.cpp:288:12: runtime error: load of value 9, which is not a valid value for type 'Botan::DL_Group::PrimeType' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/lib/pubkey/dl_group/dl_group.cpp:288:12 in src/lib/pubkey/dl_group/dl_group.cpp:306:12: runtime error: load of value 9, which is not a valid value for type 'Botan::DL_Group::PrimeType' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/lib/pubkey/dl_group/dl_group.cpp:306:12 in OpenPGP-S2K(SHA-160) ran 27 tests in 1.15 sec all ok OpenPGP-S2K(SHA-384) ran 12 tests in 26.73 msec all ok PBKDF2(CMAC(Blowfish)) ran 3 tests in 0.53 msec all ok PBKDF2(HMAC(SHA-160)) ran 33 tests in 229.21 msec all ok PBKDF2(HMAC(SHA-256)) ran 3 tests in 82.30 msec all ok PBKDF2(HMAC(SHA-384)) ran 3 tests in 53.76 msec all ok PBKDF2(HMAC(SHA-512)) ran 3 tests in 49.56 msec all ok hmac_drbg: HMAC_DRBG(SHA-1) ran 240 tests in 23.13 msec all ok HMAC_DRBG(SHA-224) ran 240 tests in 20.02 msec all ok HMAC_DRBG(SHA-256) ran 240 tests in 20.16 msec all ok HMAC_DRBG(SHA-384) ran 240 tests in 26.59 msec all ok HMAC_DRBG(SHA-512) ran 240 tests in 30.07 msec all ok HMAC_DRBG(SHA-512-256) ran 240 tests in 30.98 msec all ok util: Util load/store ran 229 tests all ok Util round_down ran 6 tests in 0.03 msec all ok Util round_up ran 11 tests in 0.39 msec all ok argon2: Argon2d ran 12 tests in 470.01 msec all ok Argon2i ran 15 tests in 1.31 sec all ok Argon2id ran 330 tests in 1.22 sec all ok argon2_pass: Argon2 password hash ran 9 tests in 529.74 msec all ok asn1: ASN.1 ASCII encoding ran 2 tests all ok ASN.1 ASCII parsing ran 1 tests all ok ASN.1 BMP string (UCS-2) parsing ran 1 tests all ok ASN.1 UTF-8 encoding ran 2 tests all ok ASN.1 UTF-8 parsing ran 1 tests all ok ASN.1 class and type underlying type ran 1 tests all ok ASN.1 universal string (UCS-4) parsing ran 1 tests all ok BER nested indefinite length ran 1 tests all ok BER stack recursion ran 1 tests all ok asn1_printer: ASN1_Pretty_Printer ran 6 tests all ok asn1_time: ASN.1 date parsing ran 25 tests in 0.39 msec all ok auto_rng_unit: AutoSeeded_RNG ran 13 tests all ok base32: Base32 ran 84 tests in 0.30 msec all ok base58: Base58 ran 32 tests in 0.73 msec all ok base58c: Base58 Check ran 8 tests in 0.72 msec all ok base64: Base64 ran 64 tests in 0.27 msec all ok bc_pad: ESP ran 32 tests in 0.14 msec all ok NoPadding ran 10 tests in 0.07 msec all ok OneAndZeros ran 20 tests in 0.11 msec all ok PKCS7 ran 18 tests in 0.09 msec all ok X9.23 ran 24 tests in 0.09 msec all ok bcrypt: bcrypt ran 380 tests in 15.53 sec all ok bcrypt_pbkdf: src/tests/unit_ecdsa.cpp:307:52: runtime error: load of value 99, which is not a valid value for type 'Botan::PointGFp::Compression_Type' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/tests/unit_ecdsa.cpp:307:52 in src/lib/pubkey/ecc_key/ecc_key.cpp:82:7: runtime error: load of value 99, which is not a valid value for type 'PointGFp::Compression_Type' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/lib/pubkey/ecc_key/ecc_key.cpp:82:7 in src/lib/pubkey/ecc_key/ecc_key.cpp:83:7: runtime error: load of value 99, which is not a valid value for type 'PointGFp::Compression_Type' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/lib/pubkey/ecc_key/ecc_key.cpp:83:7 in src/lib/pubkey/ecc_key/ecc_key.cpp:84:7: runtime error: load of value 99, which is not a valid value for type 'PointGFp::Compression_Type' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/lib/pubkey/ecc_key/ecc_key.cpp:84:7 in /opt/local/libexec/llvm-11/bin/../include/c++/v1/functional:1884:16: runtime error: member call on address 0x0001032f5ba0 which does not point to an object of type 'std::__1::__function::__base' 0x0001032f5ba0: note: object has invalid vptr 00 00 00 00 75 73 65 72 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^~~~~~~~~~~~~~~~~~~~~~~ invalid vptr SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/local/libexec/llvm-11/bin/../include/c++/v1/functional:1884:16 in ================================================================= ==48807==ERROR: AddressSanitizer: global-buffer-overflow on address 0x0001032f5ba0 at pc 0x0001051a0291 bp 0x700001b49230 sp 0x700001b49228 READ of size 8 at 0x0001032f5ba0 thread T12 #0 0x1051a0290 in std::__1::__function::__value_func::operator()() const functional:1884 #1 0x10519d62c in Botan_FFI::ffi_guard_thunk(char const*, std::__1::function) ffi.cpp:99 #2 0x10534da40 in botan_rng_init ffi_rng.cpp:26 #3 0x1022593e1 in Botan_Tests::(anonymous namespace)::FFI_Unit_Tests::run() test_ffi.cpp:46 #4 0x1025ef0cc in Botan_Tests::(anonymous namespace)::run_a_test(std::__1::basic_string, std::__1::allocator > const&) test_runner.cpp:310 #5 0x102608d54 in decltype(std::__1::forward, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > > const&, unsigned long, unsigned long, unsigned long)::$_1&>(fp)(std::__1::forward, std::__1::allocator >&>(fp0))) std::__1::__invoke, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > > const&, unsigned long, unsigned long, unsigned long)::$_1&, std::__1::basic_string, std::__1::allocator >&>(Botan_Tests::Test_Runner::run_tests(std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > > const&, unsigned long, unsigned long, unsigned long)::$_1&, std::__1::basic_string, std::__1::allocator >&) type_traits:3899 #6 0x102608cf5 in std::__1::__bind_return, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > > const&, unsigned long, unsigned long, unsigned long)::$_1, std::__1::tuple, std::__1::allocator > >, std::__1::tuple<>, __is_valid_bind_return, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > > const&, unsigned long, unsigned long, unsigned long)::$_1, std::__1::tuple, std::__1::allocator > >, std::__1::tuple<> >::value>::type std::__1::__apply_functor, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > > const&, unsigned long, unsigned long, unsigned long)::$_1, std::__1::tuple, std::__1::allocator > >, 0ul, std::__1::tuple<> >(Botan_Tests::Test_Runner::run_tests(std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > > const&, unsigned long, unsigned long, unsigned long)::$_1&, std::__1::tuple, std::__1::allocator > >&, std::__1::__tuple_indices<0ul>, std::__1::tuple<>&&) functional:2853 #7 0x102608c63 in decltype(std::__1::forward, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > > const&, unsigned long, unsigned long, unsigned long)::$_1&, std::__1::basic_string, std::__1::allocator > const&>&>(fp)()) std::__1::__invoke, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > > const&, unsigned long, unsigned long, unsigned long)::$_1&, std::__1::basic_string, std::__1::allocator > const&>&>(std::__1::__bind, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > > const&, unsigned long, unsigned long, unsigned long)::$_1&, std::__1::basic_string, std::__1::allocator > const&>&) type_traits:3899 #8 0x102608a16 in std::__1::__packaged_task_func, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > > const&, unsigned long, unsigned long, unsigned long)::$_1&, std::__1::basic_string, std::__1::allocator > const&>, std::__1::allocator, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > > const&, unsigned long, unsigned long, unsigned long)::$_1&, std::__1::basic_string, std::__1::allocator > const&> >, std::__1::vector > ()>::operator()() future:1817 #9 0x102603ced in std::__1::__packaged_task_function > ()>::operator()() const future:1994 #10 0x102603866 in std::__1::packaged_task > ()>::operator()() future:2085 #11 0x105e1cfaf in Botan::Thread_Pool::worker_thread() thread_pool.cpp:133 #12 0x105e21ed9 in void* std::__1::__thread_proxy >, void (Botan::Thread_Pool::*)(), Botan::Thread_Pool*> >(void*) thread:291 #13 0x7fff204238fb in _pthread_start+0xdf (libsystem_pthread.dylib:x86_64+0x68fb) #14 0x7fff2041f442 in thread_start+0xe (libsystem_pthread.dylib:x86_64+0x2442) 0x0001032f5ba5 is located 0 bytes to the right of global variable '' defined in 'src/tests/test_ffi.cpp:46:14' (0x1032f5ba0) of size 5 '' is ascii string 'user' SUMMARY: AddressSanitizer: global-buffer-overflow functional:1884 in std::__1::__function::__value_func::operator()() const Shadow bytes around the buggy address: 0x10002065eb20: 00 00 04 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 0x10002065eb30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10002065eb40: 00 00 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 0x10002065eb50: 00 00 00 00 f9 f9 f9 f9 00 00 00 00 00 06 f9 f9 0x10002065eb60: f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9 00 07 f9 f9 =>0x10002065eb70: f9 f9 f9 f9[05]f9 f9 f9 f9 f9 f9 f9 00 00 02 f9 0x10002065eb80: f9 f9 f9 f9 02 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 0x10002065eb90: 06 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 0x10002065eba0: 00 00 01 f9 f9 f9 f9 f9 00 05 f9 f9 f9 f9 f9 f9 0x10002065ebb0: 07 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 02 f9 f9 f9 0x10002065ebc0: f9 f9 f9 f9 05 f9 f9 f9 f9 f9 f9 f9 06 f9 f9 f9 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb Shadow gap: cc Thread T12 created by T0 here: #0 0x108759c9a in wrap_pthread_create+0x5a (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x41c9a) #1 0x105e21b66 in std::__1::thread::thread(void (Botan::Thread_Pool::*&&)(), Botan::Thread_Pool*&&) thread:307 #2 0x105e1c431 in Botan::Thread_Pool::Thread_Pool(std::__1::optional) thread_pool.cpp:71 #3 0x1025eb600 in Botan_Tests::Test_Runner::run_tests(std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > > const&, unsigned long, unsigned long, unsigned long) test_runner.cpp:358 #4 0x1025e8f35 in Botan_Tests::Test_Runner::run(Botan_Tests::Test_Options const&) test_runner.cpp:188 #5 0x102026789 in main main.cpp:112 #6 0x7fff2043ef3c in start+0x0 (libdyld.dylib:x86_64+0x15f3c) ==48807==ABORTING