[U-Boot] [PATCH] Prevent malloc with size 0

2010-10-21 Thread Kostaras Nikolaos
In case malloc is invoked with requested size 0, this patch will prevent the execution of the allocation algorithm (because it corrupts the data structures) and will return 0 to the caller. Signed-off-by: Nikolaos Kostaras --- common/dlmalloc.c |2 +- 1 files changed, 1 insertions(+), 1 de

[U-Boot] Notification in Malloc

2010-10-20 Thread Kostaras Nikolaos
Hi, During some tests with the u-boot-2010.09 source release, I discovered that when invoking malloc with size 0, the code proceeds and corrupts the malloc structures, thus totally breaking the malloc invocations from then on (malloc will always fail after that). The cause of my problem was a bur