Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Unified Diff: third_party/afl/src/afl-gcc.c

Issue 2238013002: Roll src/third_party/afl/src/ 2.14b..2.30b (16 versions). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Note in "Local Modifications" that we have removed dictionaries/. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/afl/src/afl-fuzz.c ('k') | third_party/afl/src/afl-showmap.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/afl/src/afl-gcc.c
diff --git a/third_party/afl/src/afl-gcc.c b/third_party/afl/src/afl-gcc.c
index b6cbc05c801fdda24e0cc66508c602d100b68806..1a588da978e5e5eca9ea801d463c587081c3135b 100644
--- a/third_party/afl/src/afl-gcc.c
+++ b/third_party/afl/src/afl-gcc.c
@@ -116,7 +116,7 @@ static void edit_params(u32 argc, char** argv) {
u8 m32_set = 0;
#endif
- cc_params = ck_alloc((argc + 64) * sizeof(u8*));
+ cc_params = ck_alloc((argc + 128) * sizeof(u8*));
name = strrchr(argv[0], '/');
if (!name) name = argv[0]; else name++;
@@ -271,6 +271,16 @@ static void edit_params(u32 argc, char** argv) {
}
+ if (getenv("AFL_NO_BUILTIN")) {
+
+ cc_params[cc_par_cnt++] = "-fno-builtin-strcmp";
+ cc_params[cc_par_cnt++] = "-fno-builtin-strncmp";
+ cc_params[cc_par_cnt++] = "-fno-builtin-strcasecmp";
+ cc_params[cc_par_cnt++] = "-fno-builtin-strncasecmp";
+ cc_params[cc_par_cnt++] = "-fno-builtin-memcmp";
+
+ }
+
cc_params[cc_par_cnt] = NULL;
}
« no previous file with comments | « third_party/afl/src/afl-fuzz.c ('k') | third_party/afl/src/afl-showmap.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698