switch-coreboot/arch/x86
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
..
geodelx small trivial patch to fix return types, printk warnings 2007-08-18 23:31:09 +00:00
archelfboot.c Move include/console/console.h to include/console.h in order to 2007-05-05 20:18:28 +00:00
archtables.c Massive file rename and moving orgy: 2007-05-05 21:36:52 +00:00
i8259.c Massive file rename and moving orgy: 2007-05-05 21:36:52 +00:00
isa-dma.c Ron's arch code., slightly changed. Another one will follow 2007-06-27 21:01:01 +00:00
Kconfig * start using arch/foo.h again instead of archfoo.h (trivial) 2007-06-29 16:57:23 +00:00
keyboard.c Massive file rename and moving orgy: 2007-05-05 21:36:52 +00:00
ldscript.ld Add x86emu support. This adds initial x86emu/vm86 support to LinuxBIOSv3 2007-03-12 23:47:26 +00:00
linuxbios_table.c minor changes to remove a warning here. (trivial) 2007-10-10 16:55:03 +00:00
macros.h Use the same naming convention and placement for "include guards" in 2007-05-21 06:48:47 +00:00
Makefile Create shared symbols for stage0 functions. 2007-10-11 16:13:12 +00:00
mc146818rtc.c Stage0 and Stage1 improvements. Gets Geode LX into initram. Use LAR XIP. Add disable_CAR(). 2007-07-19 15:15:57 +00:00
mtrr.h Use the same naming convention and placement for "include guards" in 2007-05-21 06:48:47 +00:00
pci_ops_auto.c Massive file rename and moving orgy: 2007-05-05 21:36:52 +00:00
pci_ops_conf1.c Massive file rename and moving orgy: 2007-05-05 21:36:52 +00:00
pci_ops_conf2.c Create shared symbols for stage0 functions. 2007-10-11 16:13:12 +00:00
pci_ops_mmconf.c This switches the only remaining non-userspace code from uint*_t to u*. 2007-08-30 10:25:43 +00:00
post_code.c * move post_code() to a seperate file 2007-07-23 16:49:00 +00:00
serial.c Fix various license headers. 2007-05-20 20:35:59 +00:00
speaker.c Moved some generic 8254 PIT #defines out of the speaker code to legacy.h. 2007-07-05 16:58:10 +00:00
stage0_i586.S Fix various license headers. 2007-05-20 20:35:59 +00:00
stage1.c Fix a corner case access to uninitialized memory (NULL pointer 2007-10-16 18:59:36 +00:00
udelay_io.c Fix various license headers. 2007-05-20 20:35:59 +00:00