File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ macro_rules! fuzz_target {
221
221
return 0 ;
222
222
}
223
223
224
- run ( bytes) ;
224
+ __libfuzzer_sys_run ( bytes) ;
225
225
0
226
226
}
227
227
@@ -234,11 +234,11 @@ macro_rules! fuzz_target {
234
234
// panics in separate fuzzers can accidentally appear the same
235
235
// because each fuzzer will have a function called
236
236
// `rust_fuzzer_test_input`. By using a normal Rust function here
237
- // it's named something like `the_fuzzer_name::_::run ` which should
237
+ // it's named something like `the_fuzzer_name::_::__libfuzzer_sys_run ` which should
238
238
// ideally help prevent oss-fuzz from deduplicate fuzz bugs across
239
239
// distinct targets accidentally.
240
240
#[ inline( never) ]
241
- fn run ( $bytes: & [ u8 ] ) {
241
+ fn __libfuzzer_sys_run ( $bytes: & [ u8 ] ) {
242
242
$body
243
243
}
244
244
} ;
@@ -294,13 +294,13 @@ macro_rules! fuzz_target {
294
294
Err ( _) => return -1 ,
295
295
} ;
296
296
297
- let result = :: libfuzzer_sys:: Corpus :: from( run ( data) ) ;
297
+ let result = :: libfuzzer_sys:: Corpus :: from( __libfuzzer_sys_run ( data) ) ;
298
298
result. to_libfuzzer_code( )
299
299
}
300
300
301
301
// See above for why this is split to a separate function.
302
302
#[ inline( never) ]
303
- fn run ( $data: $dty) -> $rty {
303
+ fn __libfuzzer_sys_run ( $data: $dty) -> $rty {
304
304
$body
305
305
}
306
306
} ;
You can’t perform that action at this time.
0 commit comments