diff options
author | van Hauser <vh@thc.org> | 2020-09-10 15:26:46 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-09-10 15:26:46 +0200 |
commit | 380051868a7531830d94d312f0f11b0e19e3284f (patch) | |
tree | a06cd1b2e2127b2ce2c7de4714fcdccab4a9502e /custom_mutators/symcc/symcc.c | |
parent | fdb0452245672db94be0832288f1335e905a2fc8 (diff) | |
download | afl++-380051868a7531830d94d312f0f11b0e19e3284f.tar.gz |
add libfuzzer custom mutator, minor enhancements and fixes
Diffstat (limited to 'custom_mutators/symcc/symcc.c')
-rw-r--r-- | custom_mutators/symcc/symcc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/custom_mutators/symcc/symcc.c b/custom_mutators/symcc/symcc.c index d0572f4e..6f14052f 100644 --- a/custom_mutators/symcc/symcc.c +++ b/custom_mutators/symcc/symcc.c @@ -12,7 +12,8 @@ afl_state_t *afl_struct; #ifdef DEBUG #define DBG(x...) fprintf(stderr, x) #else - #define DBG(x...) {} + #define DBG(x...) \ + {} #endif typedef struct my_mutator { @@ -177,8 +178,8 @@ size_t afl_custom_fuzz(my_mutator_t *data, uint8_t *buf, size_t buf_size, size_t max_size) { struct dirent **nl; - int32_t i, done = 0, items = scandir(data->out_dir, &nl, NULL, NULL); - size_t size = 0; + int32_t i, done = 0, items = scandir(data->out_dir, &nl, NULL, NULL); + size_t size = 0; if (items <= 0) return 0; |