Skip to content

Commit bb7e686

Browse files
committed
fuzz: add cstdlib to FuzzedDataProvider
Same as llvm/llvm-project#113951. Avoids compile failures under clang-20 & `D_LIBCPP_REMOVE_TRANSITIVE_INCLUDES`: ```bash In file included from /bitcoin/src/test/fuzz/addition_overflow.cpp:5: /bitcoin/src/test/fuzz/FuzzedDataProvider.h:209:5: error: use of undeclared identifier 'abort' 209 | abort(); | ^ /bitcoin/src/test/fuzz/FuzzedDataProvider.h:250:5: error: use of undeclared identifier 'abort' 250 | abort(); ```
1 parent 35000e3 commit bb7e686

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/fuzz/FuzzedDataProvider.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <climits>
1919
#include <cstddef>
2020
#include <cstdint>
21+
#include <cstdlib>
2122
#include <cstring>
2223
#include <initializer_list>
2324
#include <limits>

0 commit comments

Comments
 (0)