Fix so libFuzzer works on macOS

This commit is contained in:
Alex Groce
2018-12-09 20:59:43 -07:00
parent 19b606be8e
commit 66ef2abc1b
3 changed files with 15 additions and 6 deletions

View File

@@ -694,6 +694,7 @@ void __stack_chk_fail(void) {
__builtin_unreachable();
}
#ifndef LIBFUZZER
__attribute__((weak))
int main(int argc, char *argv[]) {
int ret = 0;
@@ -703,5 +704,6 @@ int main(int argc, char *argv[]) {
DeepState_Teardown();
return ret;
}
#endif
DEEPSTATE_END_EXTERN_C