coreboot-kgpe-d16/util/cbfstool
Edward O'Callaghan a0f9ece19c util/cbfstool: Make cbfs_image_delete() NULL-tolerant.
This fixes a double free crash that occurs when a call to
cbfs_image_from_file() fails in cbfs_extract() and falls though to
cbfs_image_delete() with a NULL-pointer.

To reproduce the crash pass the following arguments where the files
passed, in fact, do not exist. As follows:
./cbfstool build/coreboot.rom extract -n config -f /tmp/config.txt

Change-Id: I2213ff175d0703705a0ec10271b30bb26b6f8d0a
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/5353
Tested-by: build bot (Jenkins)
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2014-04-07 18:34:33 +02:00
..
lzma cbfstool/lzma: Remove dead code under #ifdefs 2014-03-02 05:14:30 +01:00
EXAMPLE
Makefile util: add rmodtool for parsing ELF files to rmodules 2014-03-20 21:34:39 +01:00
Makefile.inc util: add rmodtool for parsing ELF files to rmodules 2014-03-20 21:34:39 +01:00
cbfs-mkpayload.c cbfstool: add eflparsing.h 2014-03-13 05:28:44 +01:00
cbfs-mkstage.c cbfstool: add eflparsing.h 2014-03-13 05:28:44 +01:00
cbfs-payload-linux.c cbfstool: provide structure to linux payload builder 2014-03-28 14:40:53 +01:00
cbfs.h cbfstool: add eflparsing.h 2014-03-13 05:28:44 +01:00
cbfs_image.c util/cbfstool: Make cbfs_image_delete() NULL-tolerant. 2014-04-07 18:34:33 +02:00
cbfs_image.h cbfstool: Deserialize CBFS master header when reading image 2014-02-11 20:14:39 +01:00
cbfstool.c cbfstool: add eflparsing.h 2014-03-13 05:28:44 +01:00
coff.h
common.c cbfstool: move iself() to eflheaders.c 2014-03-13 05:28:07 +01:00
common.h cbfstool: provide structure to linux payload builder 2014-03-28 14:40:53 +01:00
compress.c cbfs: fix issues with word size and endianness. 2014-01-29 20:03:44 +01:00
elf.h cbfstool: add a constant for the aarch64 2013-11-18 16:58:58 +01:00
elfheaders.c cbfstool: add ELF writing support 2014-03-18 18:59:25 +01:00
elfparsing.h cbfstool: add ELF writing support 2014-03-18 18:59:25 +01:00
fit.c cbfstool: add eflparsing.h 2014-03-13 05:28:44 +01:00
fit.h cbfstool: Add update-fit command 2013-03-27 01:25:12 +01:00
fv.h
linux.h Add a (b)zImage parser to cbfstool 2013-08-31 08:58:34 +02:00
linux_trampoline.c cbfstool: Fix build errors when building with clang 2014-02-10 05:43:56 +01:00
rmodtool.c util: add rmodtool for parsing ELF files to rmodules 2014-03-20 21:34:39 +01:00
rmodule.c util: add rmodtool for parsing ELF files to rmodules 2014-03-20 21:34:39 +01:00
rmodule.h util: add rmodtool for parsing ELF files to rmodules 2014-03-20 21:34:39 +01:00
swab.h
xdr.c cbfstool: add bputs() to store a byte stream to a buffer 2014-03-11 19:43:17 +01:00