coreboot/include
Carl-Daniel Hailfinger b9c8454adf Fix a corner case access to uninitialized memory (NULL pointer
dereference or worse) in case the archive length is exactly
sizeof(struct lar_header). Such an archive is invalid because the
filename directly after the LAR header is always dereferenced and has to
be at least 1 byte in the "empty filename" case (only terminating \0).
Improve LAR code documentation and reorder variables in one assignment
to make the code more obvious and readable. This will help people
understand what the code does when they look at it half a year from now.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@506 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-10-16 18:59:36 +00:00
..
arch/x86 Various code cleanups: 2007-07-23 23:18:41 +00:00
device Correct typo, fix stage2 code documentation, add dtsname printing to 2007-09-26 14:24:52 +00:00
console.h Create shared symbols for stage0 functions. 2007-10-11 16:13:12 +00:00
elf.h * start using arch/foo.h again instead of archfoo.h (trivial) 2007-06-29 16:57:23 +00:00
elf_boot.h Use the same naming convention and placement for "include guards" in 2007-05-21 06:48:47 +00:00
ip_checksum.h Update compute_ip_checksum.c and ip_checksum.h to the versions from 2007-03-06 14:46:57 +00:00
isa-dma.h Use the same naming convention and placement for "include guards" in 2007-05-21 06:48:47 +00:00
keyboard.h Use the same naming convention and placement for "include guards" in 2007-05-21 06:48:47 +00:00
lar.h Fix a corner case access to uninitialized memory (NULL pointer 2007-10-16 18:59:36 +00:00
lib.h Add an ARRAY_SIZE() macro which returns the size of an array, regardless 2007-06-29 14:36:03 +00:00
mc146818rtc.h Stage0 and Stage1 improvements. Gets Geode LX into initram. Use LAR XIP. Add disable_CAR(). 2007-07-19 15:15:57 +00:00
post_code.h Create shared symbols for stage0 functions. 2007-10-11 16:13:12 +00:00
shared.h Create shared symbols for stage0 functions. 2007-10-11 16:13:12 +00:00
spd.h we need spd.h 2007-06-14 17:50:58 +00:00
spinlock.h Document origin of include/arch/x86/arch/spinlock.h and use proper 2007-07-03 16:58:16 +00:00
string.h Add a simple strncmp() implementation in include/string.h. 2007-09-08 19:36:35 +00:00
tables.h Add a pointer to the root device to the LinuxBIOS table. Used for 2007-09-25 00:22:18 +00:00
uart8250.h Use the same naming convention and placement for "include guards" in 2007-05-21 06:48:47 +00:00