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
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
2 matches
Mail list logo