fix aflpp custom mutator + standalone tool

This commit is contained in:
vanhauser-thc
2024-04-05 14:52:53 +02:00
parent 2bf92848ff
commit f7ea0f569f
5 changed files with 8 additions and 10 deletions

View File

@ -1,3 +1,4 @@
#include "afl-fuzz.h"
#include "afl-mutations.h" #include "afl-mutations.h"
typedef struct my_mutator { typedef struct my_mutator {

View File

@ -1,9 +1,6 @@
#include "afl-fuzz.h"
#include "afl-mutations.h" #include "afl-mutations.h"
s8 interesting_8[] = {INTERESTING_8};
s16 interesting_16[] = {INTERESTING_8, INTERESTING_16};
s32 interesting_32[] = {INTERESTING_8, INTERESTING_16, INTERESTING_32};
typedef struct my_mutator { typedef struct my_mutator {
afl_state_t *afl; afl_state_t *afl;
@ -155,7 +152,7 @@ int main(int argc, char *argv[]) {
return -1; return -1;
} }
if (verbose) fprintf(stderr, "Mutation output length: %zu\n", outlen); if (verbose) fprintf(stderr, "Mutation output length: %u\n", outlen);
if (fwrite(outbuf, 1, outlen, out) != outlen) { if (fwrite(outbuf, 1, outlen, out) != outlen) {
fprintf(stderr, "Warning: incomplete write.\n"); fprintf(stderr, "Warning: incomplete write.\n");

View File

@ -33,6 +33,7 @@
- afl-whatsup: - afl-whatsup:
- now also displays current average speed - now also displays current average speed
- small bugfixes - small bugfixes
- Fixes for aflpp custom mutator and standalone tool
- Minor edits to afl-persistent-config - Minor edits to afl-persistent-config
- Prevent temporary files being left behind on aborted afl-whatsup - Prevent temporary files being left behind on aborted afl-whatsup
- More CPU benchmarks added to benchmark/ - More CPU benchmarks added to benchmark/

View File

@ -30,10 +30,13 @@
#include <stdbool.h> #include <stdbool.h>
#include <inttypes.h> #include <inttypes.h>
#include "afl-fuzz.h"
#define MUT_STRATEGY_ARRAY_SIZE 256 #define MUT_STRATEGY_ARRAY_SIZE 256
s8 interesting_8[] = {INTERESTING_8};
s16 interesting_16[] = {INTERESTING_8, INTERESTING_16};
s32 interesting_32[] = {INTERESTING_8, INTERESTING_16, INTERESTING_32};
enum { enum {
/* 00 */ MUT_FLIPBIT, /* 00 */ MUT_FLIPBIT,

View File

@ -28,10 +28,6 @@
#include "afl-fuzz.h" #include "afl-fuzz.h"
#include "envs.h" #include "envs.h"
s8 interesting_8[] = {INTERESTING_8};
s16 interesting_16[] = {INTERESTING_8, INTERESTING_16};
s32 interesting_32[] = {INTERESTING_8, INTERESTING_16, INTERESTING_32};
char *power_names[POWER_SCHEDULES_NUM] = {"explore", "mmopt", "exploit", char *power_names[POWER_SCHEDULES_NUM] = {"explore", "mmopt", "exploit",
"fast", "coe", "lin", "fast", "coe", "lin",
"quad", "rare", "seek"}; "quad", "rare", "seek"};