blob: ff66a166d6f6972efd6123fcbc5cd3b7c5a343a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "driver.h"
#include <unistd.h>
// The number of afl iterations before terminating the process and starting a
// new one.
// See https://github.com/mcarpenter/afl/blob/master/llvm_mode/README.llvm.
#define ITERATIONS 1000
#ifdef __GLASGOW_HASKELL__
#define main fuzz_main
#endif
int main(int argc, char **argv)
{
struct settings cfg = {false, false};
#ifdef __AFL_LOOP
while (__AFL_LOOP(ITERATIONS))
#endif
communicate(cfg, STDIN_FILENO, STDOUT_FILENO);
return 0;
}
|