coreboot/util
Carl-Daniel Hailfinger 5de785e23b Alvar Kusma found a bug in util/lar: If you try to add a file to a full
LAR archive, the LAR utility will segfault. This is reproduced easily by
zerofilling the LAR, then adding anything to it.

Looking at the code, the reason is obvious:
lar_empty_offset() can return an error code (-1). None of the callers
check for an error code, they simply assume the return value is valid.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Peter Stuge <peter@stuge.se>


git-svn-id: svn://coreboot.org/repository/coreboot-v3@647 f3766cd6-281f-0410-b1cd-43a5c92072e9
2008-03-27 23:56:36 +00:00
..
doxygen Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
dtc This started out as a trivial change and turned into a big change. This 2008-02-16 04:13:44 +00:00
kconfig This patch adds support for make defconfig in v3. Those that port v3 2008-02-07 16:50:44 +00:00
lar Alvar Kusma found a bug in util/lar: If you try to add a file to a full 2008-03-27 23:56:36 +00:00
lzma Make util/lzma compile under gcc-4.3.0. 2008-03-25 19:52:13 +00:00
nrv2b This patch adds dst_len for the lar uncompress functions, enabling 2008-02-13 22:15:59 +00:00
options Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
x86emu This discussion is too useful to lose. 2008-02-21 05:20:14 +00:00
xcompile Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
Makefile Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00