aboutsummaryrefslogtreecommitdiff
path: root/projects/libchewing/chewing_default_fuzzer.c
blob: dd6fc7a847533a43e76dbe61c4204c0bbaa8546f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>

#include "chewing_fuzzer_common.h"

int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
  fuzz_input = fuzz_ptr = data;
  fuzz_size = size;

  const char* stress_argv[] = {
      "./chewing_fuzzer", "-loop", "1", NULL,
  };
  stress_main(sizeof(stress_argv) / sizeof(stress_argv[0]) - 1,
              (char**)stress_argv);
  return 0;
}