From 31b5b7851bb3832c775b132b1ea403fe7b66904f Mon Sep 17 00:00:00 2001 From: Victor MASIAK Date: Sat, 26 Jun 2021 00:19:52 +0200 Subject: [PATCH] corrected mistake (wrong if) --- antiDebug/test_nearheap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/antiDebug/test_nearheap.c b/antiDebug/test_nearheap.c index 2a07a8b..c26b69f 100644 --- a/antiDebug/test_nearheap.c +++ b/antiDebug/test_nearheap.c @@ -11,11 +11,11 @@ int test_nearheap_detect(char* resultDescriptionBuffer) unsigned char *probe = malloc(0x10); if (probe - &bss > 0x20000) { + return RESULT_SUCCESS; + } else { char txt[100]; snprintf(txt, 99, "--> dist = %ld.\n", probe - &bss); strcat(resultDescriptionBuffer, txt); - return RESULT_SUCCESS; - } else { return RESULT_FAILURE; } }