coreboot-kgpe-d16/payloads/libpayload/libc
Nico Huber 7a32e88f12 libpayload: Fix memalign() for fragmented alignment regions
Found a bug in the memory allocator ;-)

If the total free space in an alignment region is large enough for an
allocation but fragmented, such that there is no contiguous, sufficient
large, free space in the region, memalign() was looking at the same
region again and again in an endless loop. The advancing to the next
region was just missing.

Change-Id: I3fad833804675ee495577ca2749b007f46b5ff69
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: http://review.coreboot.org/1906
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Tested-by: build bot (Jenkins)
2012-11-23 18:17:08 +01:00
..
Makefile.inc libpayload: Add liblzma, libcbfs 2011-08-04 08:11:21 +02:00
args.c Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
console.c libpayload: Add support for the CBMEM in memory console. 2012-11-09 19:01:15 +01:00
ctype.c fix typo in ctype.c 2008-08-19 16:53:47 +00:00
exec.c [PATCH] libpayload: rename config.h to libpayload-config.h 2008-11-24 17:54:46 +00:00
getopt_long.c Reduce warnings/errors in libpayload when using picky compiler options 2011-06-30 20:41:23 +02:00
ipchecksum.c trivial fix: ipchksum takes an unspecified input blob, not explicitly a number of shorts. 2008-08-16 15:16:36 +00:00
lar.c Refactor the endianness conversion functions and header files. 2012-11-08 19:49:51 +01:00
lib.c libpayload: Provide dummy getenv() 2011-07-20 10:02:19 +02:00
malloc.c libpayload: Fix memalign() for fragmented alignment regions 2012-11-23 18:17:08 +01:00
memory.c libpayload: Make the symbols in memory.c weak so they can be overridden. 2012-11-07 18:30:56 +01:00
printf.c libpayload: avoid excessive casts in printf.c 2012-04-04 00:41:57 +02:00
qsort.c libpayload: remove trailing whitespace and run dos2unix 2011-11-01 19:08:23 +01:00
rand.c Add rand/rand_r/srand functions for generating pseudo-random bytes. 2008-04-07 23:33:50 +00:00
readline.c Catch various cases in libpayload where malloc() or memalign() return NULL 2009-07-31 11:39:55 +00:00
string.c libpayload: Some more compatibility (for flashrom) 2011-08-17 16:26:20 +02:00
strings.c Reduce warnings/errors in libpayload when using picky compiler options 2011-06-30 20:41:23 +02:00
strlcpy.c libpayload: Implement strlcpy 2011-07-07 22:29:35 +02:00
sysinfo.c Reduce warnings/errors in libpayload when using picky compiler options 2011-06-30 20:41:23 +02:00
time.c This change adds PPC support to libpayload, and hooks it up in the build 2009-05-21 10:02:52 +00:00