Skip to content

Commit 178c287

Browse files
committed
Fuzzing entrypoint is extern "C"
1 parent cc3d533 commit 178c287

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $ cat src/main.rs
1919
extern crate fuzzer_sys;
2020
2121
#[export_name="LLVMFuzzerTestOneInput"]
22-
pub fn go(data: *const u8, size: isize) -> i32 {
22+
pub extern fn go(data: *const u8, size: isize) -> i32 {
2323
// fuzzed code goes here
2424
0
2525
}

0 commit comments

Comments
 (0)