Skip to content

Commit 9e8035d

Browse files
author
dlj
committed
[Fuzzer] Fix function prototype in fuzzer::ExternalFunctions. [NFC]
The __sanitizer_acquire_crash_state function has int return type, but the fuzzer's external function definitions give it bool. Places where __sanitizer_acquire_crash_state is declared: include/sanitizer_common/sanitizer_interface_defs.h lib/sanitizer_common/sanitizer_interface_internal.h lib/sanitizer_common/sanitizer_common.cc lib/fuzzer/FuzzerExtFunctions.def (this is the only bool) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/fuzzer@353596 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 4b5aa12 commit 9e8035d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FuzzerExtFunctions.def

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ EXT_FUNC(LLVMFuzzerCustomCrossOver, size_t,
2828
EXT_FUNC(__lsan_enable, void, (), false);
2929
EXT_FUNC(__lsan_disable, void, (), false);
3030
EXT_FUNC(__lsan_do_recoverable_leak_check, int, (), false);
31-
EXT_FUNC(__sanitizer_acquire_crash_state, bool, (), true);
31+
EXT_FUNC(__sanitizer_acquire_crash_state, int, (), true);
3232
EXT_FUNC(__sanitizer_install_malloc_and_free_hooks, int,
3333
(void (*malloc_hook)(const volatile void *, size_t),
3434
void (*free_hook)(const volatile void *)),

0 commit comments

Comments
 (0)