From c6b130f7812b968df36eb0dfa1d2afa6c4ae1cff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Wed, 7 Apr 2021 00:17:40 +0200 Subject: [PATCH] firmware-utils: bcm4908img: fix extracting cferom MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix offset to extract proper data when image contains vendor header. Signed-off-by: Rafał Miłecki --- src/bcm4908img.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bcm4908img.c b/src/bcm4908img.c index 51c0604..b82303b 100644 --- a/src/bcm4908img.c +++ b/src/bcm4908img.c @@ -580,7 +580,7 @@ static int bcm4908img_extract(int argc, char **argv) { } if (!strcmp(type, "cferom")) { - offset = 0; + offset = info.cferom_offset; length = info.bootfs_offset - offset; if (!length) { err = -ENOENT; -- 2.30.2