
* 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>
20 lines
369 B
C
20 lines
369 B
C
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
|
|
if (Size >= 8 && *(uint32_t *)Data == 0xaabbccdd) { abort(); }
|
|
char buf[8] = {'a', 'b', 'c', 'd'};
|
|
|
|
if (memcmp(Data, buf, 4) == 0) { abort(); }
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
int main() {
|
|
|
|
char buf [10] = {0};
|
|
LLVMFuzzerTestOneInput(buf, 10);
|
|
|
|
}*/
|