From 0d5f3ca53047313b96aa620a14f8401a2392a220 Mon Sep 17 00:00:00 2001 From: Jakub Czapiga Date: Wed, 16 Nov 2022 18:24:14 +0000 Subject: host/lib/cbfstool: Fix cbfs verification validity check cbfstool uses tab instead of space, and because of that current code does not work correctly with metadata hash images. Changing space to tab in pattern fixes the issue. BRANCH=none BUG=b:259153966,b:197114807 TEST=build bootimage for volteer/voxel Signed-off-by: Jakub Czapiga Change-Id: Iab6ab56927a6bea9275eda4a5bad1ad73b779a69 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4030402 Commit-Queue: Jakub Czapiga Tested-by: Jakub Czapiga Reviewed-by: Yu-Ping Wu --- host/lib/cbfstool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/lib/cbfstool.c b/host/lib/cbfstool.c index 0f6ed16f..8e5414d5 100644 --- a/host/lib/cbfstool.c +++ b/host/lib/cbfstool.c @@ -102,7 +102,7 @@ static vb2_error_t extract_metadata_hash(const char *buf, struct vb2_hash *hash) !parse_hash(&hash->raw[0], vb2_digest_size(algo), hash_str)) goto done; - if (!strstr(buf, "] fully valid")) + if (!strstr(buf, "]\tfully valid")) goto done; rv = VB2_SUCCESS; -- cgit v1.2.1