switch-coreboot/util
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
..
doxygen Some modifications of the Doxygen config file to improve the output (trivial). 2007-05-02 13:05:14 +00:00
dtc * move post_code() to a seperate file 2007-07-23 16:49:00 +00:00
kconfig * move post_code() to a seperate file 2007-07-23 16:49:00 +00:00
lar Fix a corner case access to uninitialized memory (NULL pointer 2007-10-16 18:59:36 +00:00
lzma - Extend lar format to support compression (incompatible format change!) 2007-06-26 11:55:06 +00:00
nrv2b Always compile in all compression algorithms. This is required for 2007-08-19 22:58:42 +00:00
options Fix various license headers. 2007-05-20 20:35:59 +00:00
x86emu this patch changes vm86.c:do_bios to run_bios(dev, addr). 2007-09-05 01:41:52 +00:00
xcompile * move post_code() to a seperate file 2007-07-23 16:49:00 +00:00
Makefile in order to integrate compression into lar, it needs some makefile splits to 2007-06-16 17:07:24 +00:00