Skip to content

Commit

Permalink
corrected mistake (wrong if)
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor MASIAK committed Jun 25, 2021
1 parent 4e15f75 commit 31b5b78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions antiDebug/test_nearheap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 31b5b78

Please sign in to comment.