
* Add libfuzzer example for window with ASAN * Fix formatting * Add link * Fix cpp format * Skip windows fuzzers * Fix format * Fix testing fuzzer * Fix taks name Co-authored-by: Dongjia "toka" Zhang <tokazerkje@outlook.com> Co-authored-by: Andrea Fioraldi <andreafioraldi@gmail.com> Co-authored-by: Dominik Maier <domenukk@gmail.com>
17 lines
301 B
C++
17 lines
301 B
C++
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
#include <string>
|
|
|
|
void asan_crash() {
|
|
int *array = new int[100];
|
|
delete[] array;
|
|
array[5] += 1;
|
|
fprintf(stdout, "%d\n", array[5]);
|
|
}
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
|
// abort();
|
|
asan_crash();
|
|
return 0;
|
|
}
|