Fix arena_tail_realloc memory bug

`arena_realloc_tail` exceeding PAGE_SIZE would create a big page,
preceeding calls to `arena_realloc_tail` would then cause memory bugs.
This commit is contained in:
Ole Morud
2023-06-04 19:34:53 +02:00
parent 0cde95de64
commit 1fd96ff1ce
2 changed files with 25 additions and 15 deletions

View File

@@ -16,7 +16,7 @@ dynamic : $(BIN_DIR)/libarena.so
tests : test/test_arena
$(TEST_DIR)/test_arena : src/test_arena.c $(BIN_DIR)/libarena.a | $(TEST_DIR)
$(CC) -o $@ -O0 -ggdb $^
$(CC) -o $@ -O0 -Iinclude -ggdb $^
$(BIN_DIR)/libarena.a : $(OBJS) | $(BIN_DIR)
ar cr $@ $^