summaryrefslogtreecommitdiff
path: root/HeapLAB/.src/demo_unsortedbin.c
diff options
context:
space:
mode:
Diffstat (limited to 'HeapLAB/.src/demo_unsortedbin.c')
-rw-r--r--HeapLAB/.src/demo_unsortedbin.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/HeapLAB/.src/demo_unsortedbin.c b/HeapLAB/.src/demo_unsortedbin.c
new file mode 100644
index 0000000..1bfcc9e
--- /dev/null
+++ b/HeapLAB/.src/demo_unsortedbin.c
@@ -0,0 +1,16 @@
+#include <stdlib.h>
+
+int main(int argc, char* argv[]) {
+ void* a = malloc(0x88);
+ void* b = malloc(0x88);
+
+ free(b);
+
+ b = malloc(0x88);
+ malloc(0x18);
+
+ free(a);
+ free(b);
+
+ return 0;
+}