1
0
mirror of https://github.com/bitdefender/bddisasm.git synced 2025-01-05 04:40:54 +00:00

fuzzing: Check that Intbuf was successfully allocated

Fixes #105.
This commit is contained in:
Anichitei Ionel-Cristinel 2024-09-23 13:58:59 +03:00 committed by GitHub
parent 7bc007069d
commit 34a0880784
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();