mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-11 18:42:01 +00:00
[libFuzzer] add a dummy LLVMFuzzerMutate to afl/afl_driver.cpp (https://github.com/google/oss-fuzz/issues/460)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297919 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e6224abb77
commit
e79427160e
@ -238,6 +238,13 @@ static void maybe_duplicate_stderr() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Define LLVMFuzzerMutate to avoid link failures for targets that use it
|
||||||
|
// with libFuzzer's LLVMFuzzerCustomMutator.
|
||||||
|
extern "C" size_t LLVMFuzzerMutate(uint8_t *Data, size_t Size, size_t MaxSize) {
|
||||||
|
assert(false && "LLVMFuzzerMutate should not be called from afl_driver");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
fprintf(stderr, "======================= INFO =========================\n"
|
fprintf(stderr, "======================= INFO =========================\n"
|
||||||
"This binary is built for AFL-fuzz.\n"
|
"This binary is built for AFL-fuzz.\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user