From 34a0880784f83862d6613b6aee2e4017be7ff525 Mon Sep 17 00:00:00 2001 From: Anichitei Ionel-Cristinel <49393881+ianichitei@users.noreply.github.com> Date: Mon, 23 Sep 2024 13:58:59 +0300 Subject: [PATCH] fuzzing: Check that `Intbuf` was successfully allocated Fixes #105. --- bdshemu_fuzz/bdshemu_fuzzer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bdshemu_fuzz/bdshemu_fuzzer.c b/bdshemu_fuzz/bdshemu_fuzzer.c index 1208e68..ecb8ca2 100644 --- a/bdshemu_fuzz/bdshemu_fuzzer.c +++ b/bdshemu_fuzz/bdshemu_fuzzer.c @@ -88,7 +88,7 @@ void run_shemu(uint8_t *Data, size_t Size) } ctx.Intbuf = calloc(1, Size + 0x2000); - if (ctx.Stack == NULL) + if (ctx.Intbuf == NULL) { LOG("[-] Failed to allocate Intbuf!\n"); abort();