guidovranken / cryptofuzz

Fuzzing cryptographic libraries. Magic bug printer go brrrr.

Home Page:https://guidovranken.com/2019/05/14/differential-fuzzing-of-cryptographic-libraries/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cryptofuzz is failing to build on OSS-Fuzz

Navidem opened this issue · comments

The error message says:

Step #3 - "compile-afl-address-x86_64": /src/aflplusplus/afl-clang-fast++ -O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=address -fsanitize-address-use-after-scope  -stdlib=libc++ -D_GLIBCXX_DEBUG -I /src/cryptofuzz/fuzzing-headers/include -DCRYPTOFUZZ_BN_JS -DCRYPTOFUZZ_BIGNUMBER_JS -DCRYPTOFUZZ_CRYPTO_JS -DCRYPTOFUZZ_NSS -DCRYPTOFUZZ_MONOCYPHER -DCRYPTOFUZZ_TREZOR_FIRMWARE -DCRYPTOFUZZ_LIBTOMCRYPT -DCRYPTOFUZZ_SECP256K1 -DCRYPTOFUZZ_SYMCRYPT -DCRYPTOFUZZ_LIBGMP -DCRYPTOFUZZ_MPDECIMAL -I/src/cityhash/src -DCRYPTOFUZZ_CRYPTOPP -DCRYPTOFUZZ_MBEDTLS -DCRYPTOFUZZ_BOTAN -Wall -Wextra -std=c++17 -I ../../include -I ../../fuzzing-headers/include -DFUZZING_HEADERS_NO_IMPL -I /src/botan/build/include -fPIC -c module.cpp -o module.o
Step #3 - "compile-afl-address-x86_64": /src/aflplusplus/afl-clang-fast++ -O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=address -fsanitize-address-use-after-scope  -stdlib=libc++ -D_GLIBCXX_DEBUG -I /src/cryptofuzz/fuzzing-headers/include -DCRYPTOFUZZ_BN_JS -DCRYPTOFUZZ_BIGNUMBER_JS -DCRYPTOFUZZ_CRYPTO_JS -DCRYPTOFUZZ_NSS -DCRYPTOFUZZ_MONOCYPHER -DCRYPTOFUZZ_TREZOR_FIRMWARE -DCRYPTOFUZZ_LIBTOMCRYPT -DCRYPTOFUZZ_SECP256K1 -DCRYPTOFUZZ_SYMCRYPT -DCRYPTOFUZZ_LIBGMP -DCRYPTOFUZZ_MPDECIMAL -I/src/cityhash/src -DCRYPTOFUZZ_CRYPTOPP -DCRYPTOFUZZ_MBEDTLS -DCRYPTOFUZZ_BOTAN -Wall -Wextra -std=c++17 -I ../../include -I ../../fuzzing-headers/include -DFUZZING_HEADERS_NO_IMPL -I /src/botan/build/include -fPIC -c bn_ops.cpp -o bn_ops.o
Step #3 - "compile-afl-address-x86_64": bn_ops.cpp:1044:33: error: no member named 'ressol' in namespace 'Botan'
Step #3 - "compile-afl-address-x86_64":         const auto r = ::Botan::ressol(bn[0].Ref(), mod.Ref());
Step #3 - "compile-afl-address-x86_64":                        ~~~~~~~~~^
Step #3 - "compile-afl-address-x86_64": 1 error generated.
Step #3 - "compile-afl-address-x86_64": make: *** [Makefile:16: bn_ops.o] Error 1

Here is the link to full log:
https://oss-fuzz-build-logs.storage.googleapis.com/log-eb112847-a67a-43d1-870d-6b08964c8d1f.txt

Thanks! Should be fixed now.