-
-
Notifications
You must be signed in to change notification settings - Fork 755
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* New CI tests for small, large and unsorted heap bins Co-authored-by: Grazfather <[email protected]>
- Loading branch information
1 parent
08f4b28
commit 2975d5f
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
||
#include "utils.h" | ||
|
||
int main(){ | ||
void *small = malloc(0x10); // small chunk | ||
malloc(0x20); // avoid consolidation of chunks | ||
void *large = malloc(0x410); // large chunk | ||
malloc(0x20); // avoid consolidation of chunks | ||
free(small); | ||
free(large); | ||
void *unsorted = malloc(0x420); // make sure the unsorted chunk is bigger than large chunk | ||
malloc(0x420); // sort the freed chunks from unsorted to their corresponding bins | ||
free(unsorted); | ||
DebugBreak(); | ||
return EXIT_SUCCESS; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters