From 55a2362348cd467b65d6aea33e93ec44c6de1a38 Mon Sep 17 00:00:00 2001 From: vanhauser-thc Date: Sun, 14 Jul 2024 10:33:12 +0200 Subject: code format --- frida_mode/test/dynamic/testinstrlib.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'frida_mode/test/dynamic/testinstrlib.c') 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 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"); + } + -- cgit 1.4.1