randombit / botan

Cryptography Toolkit
https://botan.randombit.net
BSD 2-Clause "Simplified" License
2.55k stars 561 forks source link

Segfault in util #1259

Closed Exaeta closed 6 years ago

Exaeta commented 6 years ago

Configured on termux:

$ python ./configure.py --disable-modules=newhope --cpu=armv$ python ./configure.py --disable-modules=newhope --cpu=armv7a --cc=clang

After make ran ./botan-test and got segfault in util test.

HMAC_DRBG(SHA-1) ran 240 tests in 28.27 msec all ok                             HMAC_DRBG(SHA-224) ran 240 tests in 45.28 msec all ok                           HMAC_DRBG(SHA-256) ran 240 tests in 46.22 msec all ok                           HMAC_DRBG(SHA-384) ran 240 tests in 230.16 msec all ok                          HMAC_DRBG(SHA-512) ran 240 tests in 232.63 msec all ok
HMAC_DRBG(SHA-512-256) ran 240 tests in 227.04 msec all ok                      x931_rng:                                                                       util:                                                                           Segmentation fault                                                              $
Exaeta commented 6 years ago

OpenPGP-S2K(SHA-384) ran 8 tests in 144.70 msec all ok PBKDF1(SHA-160) ran 10 tests in 17.70 msec all ok PBKDF2(CMAC(Blowfish)) ran 2 tests in 0.15 msec all ok PBKDF2(HMAC(SHA-160)) ran 20 tests in 87.00 msec all ok PBKDF2(HMAC(SHA-256)) ran 2 tests in 86.65 msec all ok PBKDF2(HMAC(SHA-384)) ran 2 tests in 309.52 msec all ok PBKDF2(HMAC(SHA-512)) ran 2 tests in 312.39 msec all ok hmac_drbg: HMAC_DRBG(SHA-1) ran 240 tests in 28.27 msec all ok HMAC_DRBG(SHA-224) ran 240 tests in 45.28 msec all ok HMAC_DRBG(SHA-256) ran 240 tests in 46.22 msec all ok HMAC_DRBG(SHA-384) ran 240 tests in 230.16 msec all ok HMAC_DRBG(SHA-512) ran 240 tests in 232.63 msec all ok HMAC_DRBG(SHA-512-256) ran 240 tests in 227.04 msec all ok x931_rng: util: Segmentation fault $ ./botan-test

Exaeta commented 6 years ago

Not sure why the formatting doesn't work.

Exaeta commented 6 years ago

Formatting is fucked up and it's eating my pastes. ..

Exaeta commented 6 years ago

Formatting is fucked up and it's eating my pastes. ..