coreboot/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
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.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
elf.h
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
EXAMPLE
fit.c cbfstool: add eflparsing.h 2014-03-13 05:28:44 +01:00
fit.h
fv.h
linux.h
linux_trampoline.c
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
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