switch-coreboot/lib
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
..
clog2.c Coding style fixes, from running 'indent' (trivial). 2007-03-09 02:32:40 +00:00
compute_ip_checksum.c Massive file rename and moving orgy: 2007-05-05 21:36:52 +00:00
console.c Merge hlt() into cpu.h where it belongs. Add some documentation. 2007-07-12 13:01:42 +00:00
delay.c Fix various license headers. 2007-05-20 20:35:59 +00:00
elfboot.c properzero.diff changes the memset to only clean up the area which is 2007-09-05 01:54:28 +00:00
Kconfig Various Kconfig file fixes (trivial). 2007-06-29 13:28:33 +00:00
lar.c Fix a corner case access to uninitialized memory (NULL pointer 2007-10-16 18:59:36 +00:00
lzma.c - fix build of ulzma 2007-07-12 20:03:02 +00:00
lzmadecode.c * This patch renames remainders the arch i386 to x86. 2007-01-04 20:12:02 +00:00
lzmadecode.h Use the same naming convention and placement for "include guards" in 2007-05-21 06:48:47 +00:00
Makefile * move post_code() to a seperate file 2007-07-23 16:49:00 +00:00
mem.c Massive file rename and moving orgy: 2007-05-05 21:36:52 +00:00
nrv2b.c - fix build of ulzma 2007-07-12 20:03:02 +00:00
ram.c Merge hlt() into cpu.h where it belongs. Add some documentation. 2007-07-12 13:01:42 +00:00
stage2.c Correct typo, fix stage2 code documentation, add dtsname printing to 2007-09-26 14:24:52 +00:00
tables.c Fix various license headers. 2007-05-20 20:35:59 +00:00
uart8250.c Massive file rename and moving orgy: 2007-05-05 21:36:52 +00:00
vsprintf.c Fix various license headers. 2007-05-20 20:35:59 +00:00
vtxprintf.c fix somw printk calls and print warnings for those that still need to be fixed. 2007-07-21 19:22:40 +00:00