[compiler-rt] r353596 - [Fuzzer] Fix function prototype in fuzzer::ExternalFunctions. [NFC]
David L. Jones via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 8 17:45:30 PST 2019
Author: dlj
Date: Fri Feb 8 17:45:29 2019
New Revision: 353596
URL: http://llvm.org/viewvc/llvm-project?rev=353596&view=rev
Log:
[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)
Modified:
compiler-rt/trunk/lib/fuzzer/FuzzerExtFunctions.def
Modified: compiler-rt/trunk/lib/fuzzer/FuzzerExtFunctions.def
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/FuzzerExtFunctions.def?rev=353596&r1=353595&r2=353596&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/FuzzerExtFunctions.def (original)
+++ compiler-rt/trunk/lib/fuzzer/FuzzerExtFunctions.def Fri Feb 8 17:45:29 2019
@@ -28,7 +28,7 @@ EXT_FUNC(LLVMFuzzerCustomCrossOver, size
EXT_FUNC(__lsan_enable, void, (), false);
EXT_FUNC(__lsan_disable, void, (), false);
EXT_FUNC(__lsan_do_recoverable_leak_check, int, (), false);
-EXT_FUNC(__sanitizer_acquire_crash_state, bool, (), true);
+EXT_FUNC(__sanitizer_acquire_crash_state, int, (), true);
EXT_FUNC(__sanitizer_install_malloc_and_free_hooks, int,
(void (*malloc_hook)(const volatile void *, size_t),
void (*free_hook)(const volatile void *)),
More information about the llvm-commits
mailing list