diff options
author | vanhauser-thc <vh@thc.org> | 2024-07-14 10:33:12 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2024-07-14 10:33:12 +0200 |
commit | 55a2362348cd467b65d6aea33e93ec44c6de1a38 (patch) | |
tree | 62e6316d91ea348228fe3471bfa59ee01e0e393e /frida_mode/test/dynamic/testinstrlib.c | |
parent | 8afb60d2f902794f7b98c8c0c67473760d2baacc (diff) | |
download | afl++-55a2362348cd467b65d6aea33e93ec44c6de1a38.tar.gz |
code format
Diffstat (limited to 'frida_mode/test/dynamic/testinstrlib.c')
-rw-r--r-- | frida_mode/test/dynamic/testinstrlib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/frida_mode/test/dynamic/testinstrlib.c b/frida_mode/test/dynamic/testinstrlib.c index 987cbf91..85e2c837 100644 --- a/frida_mode/test/dynamic/testinstrlib.c +++ b/frida_mode/test/dynamic/testinstrlib.c @@ -1,6 +1,7 @@ #include <stdio.h> void testinstrlib(char *buf, int len) { + if (len < 1) return; buf[len] = 0; @@ -11,4 +12,6 @@ void testinstrlib(char *buf, int len) { printf("Pretty sure that is a one!\n"); else printf("Neither one or zero? How quaint!\n"); + } + |