The fuzzing harnesses from #19143 don’t compile on macOS. i.e building at 476436b2dec254bb988f8c7a6cbec1d7bb7cecfd:
0In file included from test/fuzz/addition_overflow.cpp:7:
1./test/fuzz/util.h:335:13: error: no matching function for call to 'AdditionOverflow'
2 if (AdditionOverflow((uint64_t)fuzzed_file->m_offset, random_bytes.size())) {
3 ^~~~~~~~~~~~~~~~
4./test/fuzz/util.h:201:16: note: candidate template ignored: deduced conflicting types for parameter 'T' ('unsigned long long' vs. 'unsigned long')
5NODISCARD bool AdditionOverflow(const T i, const T j) noexcept
6 ^
7./test/fuzz/util.h:346:13: error: no matching function for call to 'AdditionOverflow'
8 if (AdditionOverflow(fuzzed_file->m_offset, n)) {
9 ^~~~~~~~~~~~~~~~
10./test/fuzz/util.h:201:16: note: candidate template ignored: deduced conflicting types for parameter 'T' ('long long' vs. 'long')
11NODISCARD bool AdditionOverflow(const T i, const T j) noexcept
12 ^
132 errors generated.
14
15In file included from test/fuzz/buffered_file.cpp:9:
16./test/fuzz/util.h:335:13: error: no matching function for call to 'AdditionOverflow'
17 if (AdditionOverflow((uint64_t)fuzzed_file->m_offset, random_bytes.size())) {
18 ^~~~~~~~~~~~~~~~
19./test/fuzz/util.h:201:16: note: candidate template ignored: deduced conflicting types for parameter 'T' ('unsigned long long' vs. 'unsigned long')
20NODISCARD bool AdditionOverflow(const T i, const T j) noexcept
21 ^
22./test/fuzz/util.h:346:13: error: no matching function for call to 'AdditionOverflow'
23 if (AdditionOverflow(fuzzed_file->m_offset, n)) {
24 ^~~~~~~~~~~~~~~~
25./test/fuzz/util.h:201:16: note: candidate template ignored: deduced conflicting types for parameter 'T' ('long long' vs. 'long')
26NODISCARD bool AdditionOverflow(const T i, const T j) noexcept
27 ^
282 errors generated.