diff options
author | Jonathan Wilson <gogs@fake.local> | 2021-07-27 08:19:06 +0100 |
---|---|---|
committer | Jonathan Wilson <gogs@fake.local> | 2021-07-27 08:29:20 +0100 |
commit | d02483e40d9ba0529c978dc4cfbcfc1429f8eeba (patch) | |
tree | 93dde6109029df8c1f5f8e299e015e72582b12d1 /frida_mode/test/osx-lib/lib.c | |
parent | 30679edc1a3c04f386bfb96af33c65c0b818e9b8 (diff) | |
download | afl++-d02483e40d9ba0529c978dc4cfbcfc1429f8eeba.tar.gz |
Added test for fuzzing a lib on OSX
Diffstat (limited to 'frida_mode/test/osx-lib/lib.c')
-rw-r--r-- | frida_mode/test/osx-lib/lib.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/frida_mode/test/osx-lib/lib.c b/frida_mode/test/osx-lib/lib.c new file mode 100644 index 00000000..b2dad098 --- /dev/null +++ b/frida_mode/test/osx-lib/lib.c @@ -0,0 +1,17 @@ +#include <stdio.h> +#include <stdlib.h> +#include <stdint.h> + + +void __attribute__((noinline)) crashme(const uint8_t *Data, size_t Size) { + + if (Size < 5) return; + + if (Data[0] == 'F') + if (Data[1] == 'A') + if (Data[2] == '$') + if (Data[3] == '$') + if (Data[4] == '$') abort(); + + +} |