
* Mostly addressing changing the `uninlined_format_args` lint which was changed to warn-by-default in rust clippy 1.67 * Bump dependencies: bindgen: 0.61 -> 0.63 cc: 1.0 -> 1.0.42 (Exclue versions w/incompat rayon dependency) clap: 3.x -> 4.0 rangemap: 0.1 -> 1 xz -> xz2: move to updated version * Add fallthrough default return to `LLVMFuzzerTestOneInput` in **/fuzz.c to prevent Clang's -Wreturn-type * libafl_atheris: Improve POSIX compatibility and reduce warnings * Check for .dylib and .so libraries * `source` -> `.` for POSIX shells * install wheel into the venv to support newer Python packaging standards * `LDPRELOAD` -> `LD_PRELOAD`
15 lines
314 B
C
15 lines
314 B
C
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
|
|
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
|
|
// printf("Got %ld bytes.\n", Size);
|
|
if (Size >= 4 && *(uint32_t *)Data == 0xaabbccdd) { abort(); }
|
|
return 0;
|
|
}
|
|
|
|
int main() {
|
|
char buf[10] = {0};
|
|
LLVMFuzzerTestOneInput(buf, 10);
|
|
}
|