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
..
2014-03-13 05:28:44 +01:00
2014-03-13 05:28:44 +01:00
2014-03-13 05:28:44 +01:00
2014-03-13 05:28:44 +01:00
2013-11-18 16:58:58 +01:00
2014-03-18 18:59:25 +01:00
2014-03-18 18:59:25 +01:00
2013-02-04 11:12:15 +01:00
2014-03-13 05:28:44 +01:00
2013-03-27 01:25:12 +01:00
2013-08-31 08:58:34 +02:00
2011-10-24 20:29:29 +02:00