a0f9ece19c
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> |
||
---|---|---|
.. | ||
abuild | ||
acpi | ||
amdtools | ||
arm_boot_tools/mksunxiboot | ||
board_status | ||
cbfstool | ||
cbmem | ||
crossgcc | ||
dtd_parser | ||
dumpmmcr | ||
ectool | ||
genprof | ||
getpir | ||
gitconfig | ||
i915tool | ||
ifdfake | ||
ifdtool | ||
inteltool | ||
k8resdump | ||
kconfig | ||
lbtdump | ||
lint | ||
mkelfImage | ||
mptable | ||
msrtool | ||
nvramtool | ||
optionlist | ||
resetcf | ||
romcc | ||
runfw | ||
sconfig | ||
showdevicetree | ||
spkmodem_recv | ||
superiotool | ||
vgabios | ||
viatool | ||
xcompile |