1
1
#! /bin/sh -eux
2
2
3
- # Copyright (c) 2020-2022 Yubico AB. All rights reserved.
3
+ # Copyright (c) 2020-2024 Yubico AB. All rights reserved.
4
4
# Use of this source code is governed by a BSD-style
5
5
# license that can be found in the LICENSE file.
6
6
# SPDX-License-Identifier: BSD-2-Clause
7
7
8
8
LIBCBOR_URL=" https://github.com/pjk/libcbor"
9
- LIBCBOR_TAG=" v0.10.2 "
9
+ LIBCBOR_TAG=" v0.11.0 "
10
10
LIBCBOR_ASAN=" address alignment bounds"
11
11
LIBCBOR_MSAN=" memory"
12
12
OPENSSL_URL=" https://github.com/openssl/openssl"
13
- OPENSSL_TAG=" openssl-3.0.12 "
13
+ OPENSSL_TAG=" openssl-3.0.14 "
14
14
ZLIB_URL=" https://github.com/madler/zlib"
15
- ZLIB_TAG=" v1.3"
15
+ ZLIB_TAG=" v1.3.1 "
16
16
ZLIB_ASAN=" address alignment bounds undefined"
17
17
ZLIB_MSAN=" memory"
18
18
FIDO2_ASAN=" address bounds fuzzer-no-link implicit-conversion leak"
@@ -63,6 +63,7 @@ git clone --depth=1 "${OPENSSL_URL}" -b "${OPENSSL_TAG}"
63
63
cd openssl
64
64
./Configure linux-x86_64-clang " enable-$1 " --prefix=" ${FAKEROOT} " \
65
65
--openssldir=" ${FAKEROOT} /openssl" --libdir=lib
66
+ make -j" $( nproc) " build_sw
66
67
make install_sw
67
68
cd -
68
69
@@ -71,7 +72,7 @@ git clone --depth=1 "${ZLIB_URL}" -b "${ZLIB_TAG}"
71
72
cd zlib
72
73
CFLAGS=" ${ZLIB_CFLAGS} " LDFLAGS=" ${ZLIB_CFLAGS} " ./configure \
73
74
--prefix=" ${FAKEROOT} "
74
- make install
75
+ make -j " $( nproc ) " install
75
76
cd -
76
77
77
78
# libfido2
@@ -87,7 +88,7 @@ mkdir corpus
87
88
curl -s https://storage.googleapis.com/yubico-libfido2/corpus.tgz |
88
89
tar -C corpus -zxf -
89
90
export 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
91
92
build/fuzz/fuzz_${f} -use_value_profile=1 -reload=30 -print_pcs=1 \
92
93
-print_funcs=30 -timeout=10 -runs=1 corpus/fuzz_${f}
93
94
done
0 commit comments