Jakub Czapiga aa41563483 util/cbfstool: Fix truncate command error handling and cbfs_image_from_buffer()
Check return value of cbfs_truncate_space() in cbfs_truncate().
Remove return from cbfs_image_from_buffer() to inform about invalid
image region when incorrect offset header was provided.
Also change header offset provided to mentioned function in
cbfs_expand_to_region() and cbfs_truncate_space() from zero
to HEADER_OFFSET_UNKNOWN, as they do not support images with cbfs master
header.

Signed-off-by: Jakub Czapiga <jacz@semihalf.com>
Change-Id: Ib009212692fb3594a826436df765860f54837154
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66334
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
2022-08-03 23:24:49 +00:00
..
2022-05-30 04:25:07 +00:00
2021-10-25 08:08:41 +00:00
2021-10-19 16:08:45 +00:00
2021-10-19 16:08:45 +00:00
2021-10-19 16:08:45 +00:00
2021-10-19 16:08:45 +00:00
2021-09-10 22:53:05 +00:00
2013-02-04 11:12:15 +01:00
2022-07-04 14:02:26 +00:00
2022-07-04 14:02:26 +00:00
2020-05-11 19:38:40 +00:00