rust-fuzz / libfuzzer

Rust bindings and utilities for LLVM’s libFuzzer
Apache License 2.0
206 stars 44 forks source link

Rename run to __libfuzzer_sys_run #100

Closed stormshield-guillaumed closed 1 year ago

stormshield-guillaumed commented 1 year ago

This reduces chances of function collision. When using the fuzz_target macro, calling run inside the block will call the run function declared inside the macro definition instead of calling the run function defined in the module using fuzz_target. Using the run function of the macro is probably not the intended goal because it leads to a recursive call. Renaming makes it less likely to call __libfuzzer_sys_run by accident.

Closes #99