Created
April 13, 2023 22:13
-
-
Save personnumber3377/9b3d69d7a6522287ddca047175ea6cc1 to your computer and use it in GitHub Desktop.
path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/tool_main.c b/src/tool_main.c | |
index 2b7743a7e..8a8ae07a3 100644 | |
--- a/src/tool_main.c | |
+++ b/src/tool_main.c | |
@@ -54,7 +54,7 @@ | |
#include "tool_main.h" | |
#include "tool_libinfo.h" | |
#include "tool_stderr.h" | |
- | |
+#include "../../AFLplusplus/utils/argv_fuzzing/argv-fuzz-inl.h" | |
/* | |
* This is low-level hard-hacking memory leak tracking and similar. Using | |
* the library level code from this client-side is ugly, but we do this | |
@@ -245,7 +245,7 @@ int main(int argc, char *argv[]) | |
CURLcode result = CURLE_OK; | |
struct GlobalConfig global; | |
memset(&global, 0, sizeof(global)); | |
- | |
+ AFL_INIT_ARGV(); | |
tool_init_stderr(); | |
#ifdef WIN32 | |
@@ -297,7 +297,10 @@ int main(int argc, char *argv[]) | |
#ifdef __VMS | |
vms_special_exit(result, vms_show); | |
#else | |
- return (int)result; | |
+ // MODIFIED: | |
+ // always return zero because otherwise it is a false positive crash | |
+ return 0; | |
+ //return (int)result; | |
#endif | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment