11#! /bin/sh -eux
22
3- # Copyright (c) 2020-2022 Yubico AB. All rights reserved.
3+ # Copyright (c) 2020-2024 Yubico AB. All rights reserved.
44# Use of this source code is governed by a BSD-style
55# license that can be found in the LICENSE file.
66# SPDX-License-Identifier: BSD-2-Clause
77
88LIBCBOR_URL=" https://github.com/pjk/libcbor"
9- LIBCBOR_TAG=" v0.10.2 "
9+ LIBCBOR_TAG=" v0.11.0 "
1010LIBCBOR_ASAN=" address alignment bounds"
1111LIBCBOR_MSAN=" memory"
1212OPENSSL_URL=" https://github.com/openssl/openssl"
13- OPENSSL_TAG=" openssl-3.0.12 "
13+ OPENSSL_TAG=" openssl-3.0.14 "
1414ZLIB_URL=" https://github.com/madler/zlib"
15- ZLIB_TAG=" v1.3"
15+ ZLIB_TAG=" v1.3.1 "
1616ZLIB_ASAN=" address alignment bounds undefined"
1717ZLIB_MSAN=" memory"
1818FIDO2_ASAN=" address bounds fuzzer-no-link implicit-conversion leak"
@@ -63,6 +63,7 @@ git clone --depth=1 "${OPENSSL_URL}" -b "${OPENSSL_TAG}"
6363cd openssl
6464./Configure linux-x86_64-clang " enable-$1 " --prefix=" ${FAKEROOT} " \
6565 --openssldir=" ${FAKEROOT} /openssl" --libdir=lib
66+ make -j" $( nproc) " build_sw
6667make install_sw
6768cd -
6869
@@ -71,7 +72,7 @@ git clone --depth=1 "${ZLIB_URL}" -b "${ZLIB_TAG}"
7172cd zlib
7273CFLAGS=" ${ZLIB_CFLAGS} " LDFLAGS=" ${ZLIB_CFLAGS} " ./configure \
7374 --prefix=" ${FAKEROOT} "
74- make install
75+ make -j " $( nproc ) " install
7576cd -
7677
7778# libfido2
@@ -87,7 +88,7 @@ mkdir corpus
8788curl -s https://storage.googleapis.com/yubico-libfido2/corpus.tgz |
8889 tar -C corpus -zxf -
8990export UBSAN_OPTIONS ASAN_OPTIONS MSAN_OPTIONS
90- for f in assert bio cred credman hid largeblob mgmt netlink pcsc; do
91+ for f in assert attobj bio cred credman hid largeblob mgmt netlink pcsc; do
9192 build/fuzz/fuzz_${f} -use_value_profile=1 -reload=30 -print_pcs=1 \
9293 -print_funcs=30 -timeout=10 -runs=1 corpus/fuzz_${f}
9394done
0 commit comments