search for: fa1d26a

Displaying 2 results from an estimated 2 matches for "fa1d26a".

Did you mean: 0a1d76a
2012 Nov 05
2
New Memory Allocation
In Syslinux-5.00, is the goal that the core and .c32 modules alike will use the same heap? There is a bug I am thinking about: - QEmu with 1024 MiB RAM - Syslinux 4.06 - .c32 can realloc() up to 1013 MiB - QEmu with 1024 MiB RAM - Syslinux 5.00-pre9 - .c32 can realloc() up to 45 MiB I am wondering if there's a maximum-allocation-size being hit, or if it's actually a bug I should look
2012 Apr 17
2
[GIT PULL] elflink warning fixes and auto extension support
...@@ void local_boot(int16_t ax) kaboom(); cli(); /* Abandon hope, ye who enter here */ - memcpy(0x07C00, trackbuf, 512); + memcpy((void *)0x07C00, trackbuf, 512); ireg.esi.w[0] = OFFS(trackbuf); ireg.edi.w[0] = 0x07C00; diff --git a/core/mem/malloc.c b/core/mem/malloc.c index d27fc27..fa1d26a 100644 --- a/core/mem/malloc.c +++ b/core/mem/malloc.c @@ -93,7 +93,12 @@ void *malloc(size_t size) void *lmalloc(size_t size) { - return _malloc(size, HEAP_LOWMEM, MALLOC_CORE); + void *p; + + p = _malloc(size, HEAP_LOWMEM, MALLOC_CORE); + if (!p) + errno = ENOMEM; + return p;...