
* linux kernel (x509_cert) and process fuzzing example * rework filters * update to latest qemu * working for process and kernel fuzzing * new i2s mutator for binary only fuzzers * refactoring modules with new filtering interface * add state as parameter of harness * hide unused global in usermode * Script for stub bindings generation * do not try to check whether it is worth generating the bindings, always generate when the env variable is on. * add taplo to fmt_all.sh * Moved fuzzers (again) in a target-centric way. * fix rust 2024 warnings. * new libafl_qemu harness structure. * rename qemu_systemmode into qemu_baremetal * fix qemu baremetal makefile * fix formatter --------- Co-authored-by: Toka <tokazerkje@outlook.com>
17 lines
321 B
C++
17 lines
321 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();
|
|
if (size == 10) { asan_crash(); }
|
|
return 0;
|
|
}
|