Displaying 2 results from an estimated 2 matches for "arena_size_mask".
2006 Jan 14
0
com32's realloc function
...b/realloc.c
--- /tmp/syslinux-3.11/com32/lib/realloc.c 2004-11-10 22:31:50.000000000 +0000
+++ syslinux-3.11/com32/lib/realloc.c 2006-01-14 23:37:52.000000000 +0000
@@ -24,7 +24,7 @@
}
/* Add the obligatory arena header, and round up */
- size = (size+2*sizeof(struct arena_header)-1) & ARENA_SIZE_MASK;
+ size = (size+2*sizeof(struct arena_header)-1) & ~ARENA_SIZE_MASK;
ah = (struct free_arena_header *)
((struct arena_header *)ptr - 1);
2018 Feb 06
0
[PATCH] syslinux/core: Remove discrepancy between code comments and compiled code in malloc.h
...--- syslinux/core/mem/malloc.h.orig
+++ syslinux/core/mem/malloc.h
@@ -69,7 +69,7 @@ struct arena_header {
struct free_arena_header {
struct arena_header a;
struct free_arena_header *next_free, *prev_free;
- size_t _pad[ARENA_PADDING];
+ uint8_t _pad[ARENA_PADDING];
};
#define ARENA_SIZE_MASK (~(uintptr_t)(sizeof(struct arena_header)-1))