We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
LLVMFuzzerTestOneInput
unsafe
1 parent b3f9e4f commit f267b63Copy full SHA for f267b63
src/lib.rs
@@ -53,10 +53,11 @@ extern "C" {
53
fn LLVMFuzzerMutate(data: *mut u8, size: usize, max_size: usize) -> usize;
54
}
55
56
+/// Do not use; only for LibFuzzer's consumption.
57
#[doc(hidden)]
58
#[export_name = "LLVMFuzzerTestOneInput"]
-pub fn test_input_wrap(data: *const u8, size: usize) -> i32 {
59
- let test_input = ::std::panic::catch_unwind(|| unsafe {
+pub unsafe fn test_input_wrap(data: *const u8, size: usize) -> i32 {
60
+ let test_input = ::std::panic::catch_unwind(|| {
61
let data_slice = ::std::slice::from_raw_parts(data, size);
62
rust_fuzzer_test_input(data_slice)
63
});
0 commit comments