diff options
author | van Hauser <vh@thc.org> | 2021-12-16 12:40:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-16 12:40:35 +0100 |
commit | 74a8f145e09d0361d8f576eb3f2e8881b6116f18 (patch) | |
tree | 42a51b12f3a018e729cca0826feccd49f5536e2e /src/afl-analyze.c | |
parent | 02fba1cc7e8709c8e0961454136a64f373e4f9ff (diff) | |
parent | 3cb7319ccdb98dcc6b023dbead603a4450ac4541 (diff) | |
download | afl++-74a8f145e09d0361d8f576eb3f2e8881b6116f18.tar.gz |
Merge pull request #1219 from AFLplusplus/dev
push to stable
Diffstat (limited to 'src/afl-analyze.c')
-rw-r--r-- | src/afl-analyze.c | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/src/afl-analyze.c b/src/afl-analyze.c index ac5a324c..86278c31 100644 --- a/src/afl-analyze.c +++ b/src/afl-analyze.c @@ -96,31 +96,20 @@ static afl_forkserver_t fsrv = {0}; /* The forkserver */ /* Classify tuple counts. This is a slow & naive version, but good enough here. */ -#define TIMES4(x) x, x, x, x -#define TIMES8(x) TIMES4(x), TIMES4(x) -#define TIMES16(x) TIMES8(x), TIMES8(x) -#define TIMES32(x) TIMES16(x), TIMES16(x) -#define TIMES64(x) TIMES32(x), TIMES32(x) static u8 count_class_lookup[256] = { [0] = 0, [1] = 1, [2] = 2, [3] = 4, - [4] = TIMES4(8), - [8] = TIMES8(16), - [16] = TIMES16(32), - [32] = TIMES32(64), - [128] = TIMES64(128) + [4 ... 7] = 8, + [8 ... 15] = 16, + [16 ... 31] = 32, + [32 ... 127] = 64, + [128 ... 255] = 128 }; -#undef TIMES64 -#undef TIMES32 -#undef TIMES16 -#undef TIMES8 -#undef TIMES4 - static void kill_child() { if (fsrv.child_pid > 0) { |