aboutsummaryrefslogtreecommitdiff
path: root/debug/programs/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'debug/programs/debug.c')
-rw-r--r--debug/programs/debug.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/debug/programs/debug.c b/debug/programs/debug.c
index 2010eaa..20b1cdc 100644
--- a/debug/programs/debug.c
+++ b/debug/programs/debug.c
@@ -1,11 +1,10 @@
#include <stdio.h>
#include <string.h>
#include <stdint.h>
+#include <stdlib.h>
unsigned int crc32a(uint8_t *message, unsigned int size);
-char __malloc_start[512];
-
void rot13(char *buf)
{
while (*buf) {
@@ -28,8 +27,12 @@ size_t strlen(const char *buf)
return len;
}
+extern void *__malloc_freelist;
+
int main()
{
+ __malloc_freelist = 0;
+
volatile int i = 0;
int j = 0;
char *fox = "The quick brown fox jumps of the lazy dog.";