Advanced Fuzzing Library - Slot your Fuzzer together in Rust! Scales across cores and machines. For Windows, Android, MacOS, Linux, no_std, ...
2.03k
stars
319
forks
source link
Weak linking is not working on MacOS #720
Closed
tokatoka closed 2 years ago
This line does not work on MacOS: https://github.com/AFLplusplus/LibAFL/blob/7d7601204f501959cefa3654e5e2ef82b44a3584/libafl_targets/src/common.h#L125 As a result,
libafl_main
in the lib is not marked as a weak symbols. https://github.com/AFLplusplus/LibAFL/blob/54ac57b6f736d6302a2c4399ffc8af563100dff1/libafl_targets/src/libfuzzer.c#L21 and user'slibafl_main
implementation is sometimes not picked up when compiling