
* prep for publishing libafl_libfuzzer * learn to use linkers * document-features * special handling for fuzzbench builds * Update cmplog.c * drop dep for llvm-tools; add testcase for memcmp sanity --------- Co-authored-by: Dongjia "toka" Zhang <tokazerkje@outlook.com>
22 lines
377 B
C
22 lines
377 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);
|
|
|
|
}*/
|