Lines Matching +full:rust +full:- +full:src
1 #!/bin/bash -eu
8 # http://www.apache.org/licenses/LICENSE-2.0
18 # Install Rust nightly
19 #curl https://sh.rustup.rs -sSf | sh -s -- -y
23 tar zxf mpdecimal-2.5.0.tar.gz
24 cd mpdecimal-2.5.0
25 ./configure && make -j$(nproc)
27 cd $SRC/openssl
30 CFLAGS+=" -DOPENSSL_NO_ASM=1"
32 ./config --debug no-fips no-shared no-tests
33 make -j$(nproc)
36 cd $SRC/libgmp
37 autoreconf -ivf
38 ./configure --enable-maintainer-mode
39 make -j$(nproc)
42 cd $SRC/bignum-fuzzer/modules/openssl
43 OPENSSL_INCLUDE_PATH=$SRC/openssl/include OPENSSL_LIBCRYPTO_A_PATH=$SRC/openssl/libcrypto.a make
46 cd $SRC/bignum-fuzzer/modules/go
49 # Build Rust module
50 #cd $SRC/bignum-fuzzer/modules/rust
53 # Build C++-Boost module
54 cd $SRC/bignum-fuzzer/modules/cpp_boost
58 cd $SRC/bignum-fuzzer/modules/libgmp
59 LIBGMP_INCLUDE_PATH=$SRC/libgmp LIBGMP_A_PATH=$SRC/libgmp/.libs/libgmp.a make
62 cd $SRC/bignum-fuzzer/modules/libmpdec
63 LIBMPDEC_A_PATH=$SRC/mpdecimal-2.5.0/libmpdec/libmpdec.a LIBMPDEC_INCLUDE_PATH=$SRC/mpdecimal-2.5.0…
68 cd $SRC/bignum-fuzzer
69 ./config-modules.sh openssl go
70 CXXFLAGS="$BASE_CXXFLAGS -DBNFUZZ_FLAG_NO_NEGATIVE=1 -DBNFUZZ_FLAG_NUM_LEN=1200 -DBNFUZZ_FLAG_ALL_O…
74 cp $SRC/bignum-fuzzer/fuzzer $OUT/fuzzer_openssl_go_no_negative_num_len_1200_all_operations
76 # Build OpenSSL/Rust fuzzer
77 #cd $SRC/bignum-fuzzer
79 #./config-modules.sh openssl rust
80 #CXXFLAGS="$BASE_CXXFLAGS -DBNFUZZ_FLAG_NUM_LEN=1200 -DBNFUZZ_FLAG_ALL_OPERATIONS=1 -DBNFUZZ_FLAG_N…
83 # Copy OpenSSL/Rust fuzzer to the designated location
84 #cp $SRC/bignum-fuzzer/fuzzer $OUT/fuzzer_openssl_rust_num_len_1200_all_operations_num_loops_1
86 # Build OpenSSL/C++-Boost fuzzer
87 cd $SRC/bignum-fuzzer
89 ./config-modules.sh openssl cpp_boost
90 CXXFLAGS="$BASE_CXXFLAGS -DBNFUZZ_FLAG_NUM_LEN=1200 -DBNFUZZ_FLAG_ALL_OPERATIONS=1 -DBNFUZZ_FLAG_NU…
93 # Copy OpenSSL/C++-Boost fuzzer to the designated location
94 cp $SRC/bignum-fuzzer/fuzzer $OUT/fuzzer_openssl_cpp_boost_num_len_1200_all_operations_num_loops_1
97 cd $SRC/bignum-fuzzer
99 ./config-modules.sh openssl libgmp
100 CXXFLAGS="$BASE_CXXFLAGS -DBNFUZZ_FLAG_NUM_LEN=1200 -DBNFUZZ_FLAG_ALL_OPERATIONS=1 -DBNFUZZ_FLAG_NU…
104 cp $SRC/bignum-fuzzer/fuzzer $OUT/fuzzer_openssl_libgmp_num_len_1200_all_operations_num_loops_1
107 cd $SRC/mbedtls
108 make lib -j$(nproc)
111 cd $SRC/boringssl
114 cmake -DCMAKE_CXX_FLAGS="$CXXFLAGS" -DCMAKE_C_FLAGS="$CFLAGS" -DBORINGSSL_ALLOW_CXX_RUNTIME=1 ..
115 make -j$(nproc)
118 cd $SRC/bignum-fuzzer/modules/openssl
120 CFLAGS="$CFLAGS -DBIGNUM_FUZZER_BORINGSSL" OPENSSL_INCLUDE_PATH=$SRC/boringssl/include OPENSSL_LIBC…
123 cd $SRC/bignum-fuzzer/modules/mbedtls
124 MBEDTLS_LIBMBEDCRYPTO_A_PATH=$SRC/mbedtls/library/libmbedcrypto.a MBEDTLS_INCLUDE_PATH=$SRC/mbedtls…
127 cd $SRC/bignum-fuzzer
129 ./config-modules.sh boringssl mbedtls
130 CXXFLAGS="$BASE_CXXFLAGS -DBNFUZZ_FLAG_NUM_LEN=100 -DBNFUZZ_FLAG_ALL_OPERATIONS=1 -DBNFUZZ_FLAG_NUM…
134 cp $SRC/bignum-fuzzer/fuzzer $OUT/fuzzer_boringssl_mbedtls_num_len_100_all_operations_num_loops_1
137 cd $SRC/bignum-fuzzer
139 ./config-modules.sh boringssl libmpdec
140 CXXFLAGS="$BASE_CXXFLAGS -DBNFUZZ_FLAG_NUM_LEN=100 -DBNFUZZ_FLAG_ALL_OPERATIONS=1 -DBNFUZZ_FLAG_NUM…
144 cp $SRC/bignum-fuzzer/fuzzer $OUT/fuzzer_boringssl_libmpdec_num_len_100_all_operations_num_loops_1
147 cp $SRC/bignum-fuzzer/corpora/fuzzer_openssl_go_no_negative_num_len_1200_all_operations_seed_corpus…
148 #cp $SRC/bignum-fuzzer/corpora/fuzzer_openssl_rust_num_len_1200_all_operations_num_loops_1_seed_cor…
149 cp $SRC/bignum-fuzzer/corpora/fuzzer_openssl_cpp_boost_num_len_1200_all_operations_num_loops_1_seed…
150 cp $SRC/bignum-fuzzer/corpora/fuzzer_openssl_libgmp_num_len_1200_all_operations_num_loops_1_seed_co…
151 cp $SRC/bignum-fuzzer/corpora/fuzzer_boringssl_mbedtls_num_len_100_all_operations_num_loops_1_seed_…
152 cp $SRC/bignum-fuzzer/corpora/fuzzer_boringssl_mbedtls_num_len_100_all_operations_num_loops_1_seed_…