test: copy data in fuzz regression driver

Oops.
pull/107/merge
David Drysdale 8 years ago
parent 3d4ad155fb
commit ccbb8ffa7b
  1. 1
      test/ares-fuzz.c

@ -35,6 +35,7 @@ static void ProcessFile(int fd) {
* buffer (where buffer overflows would go unnoticed).
*/
unsigned char *copied_data = (unsigned char *)malloc(count);
memcpy(copied_data, afl_buffer, count);
LLVMFuzzerTestOneInput(copied_data, count);
free(copied_data);
}

Loading…
Cancel
Save