pull/797/head
Brad House 5 months ago
parent 54808a5190
commit 853244bc58
  1. 4
      test/ares-fuzz.c
  2. 2
      test/ares-test-fuzz.c

4
test/ares-fuzz.c vendored

@ -27,10 +27,10 @@
* General driver to allow command-line fuzzer (i.e. afl) to
* exercise the libFuzzer entrypoint.
*/
#include <stdio.h>
#include <sys/types.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef WIN32
@ -75,7 +75,7 @@ int main(int argc, char *argv[])
if (argc == 1) {
int count = 0;
while (KEEP_FUZZING(count)) {
ProcessFile(fileno(stdin));
ProcessFile(STDIN_FILENO);
count++;
}
} else {

@ -24,7 +24,7 @@
* SPDX-License-Identifier: MIT
*/
#include <stddef.h>
#include <stdio.h>
#include "ares.h"
int LLVMFuzzerTestOneInput(const unsigned char *data, unsigned long size);

Loading…
Cancel
Save