diff options
author | van Hauser <vh@thc.org> | 2024-07-14 11:23:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-14 11:23:51 +0200 |
commit | 19ca7b3761f5abff8b72770d6bbfbde80ef5b985 (patch) | |
tree | 62e6316d91ea348228fe3471bfa59ee01e0e393e /frida_mode/test/dynamic/testinstrlib.c | |
parent | 53409530b369e560c7f6f37ead5a5db9e116efd0 (diff) | |
parent | 55a2362348cd467b65d6aea33e93ec44c6de1a38 (diff) | |
download | afl++-19ca7b3761f5abff8b72770d6bbfbde80ef5b985.tar.gz |
Merge pull request #2158 from AFLplusplus/dev
push to stable
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"); + } + |