summaryrefslogtreecommitdiff
path: root/host
diff options
context:
space:
mode:
authorJakub Czapiga <czapiga@google.com>2022-11-16 18:24:14 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-11-17 19:39:21 +0000
commit0d5f3ca53047313b96aa620a14f8401a2392a220 (patch)
tree30450c9ab0df3504084d9c9fe40112e7aaf9ac22 /host
parentdb1b34f559fdbf5584b57007da43e4dddda43c6a (diff)
downloadvboot-0d5f3ca53047313b96aa620a14f8401a2392a220.tar.gz
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 <jacz@semihalf.com> Change-Id: Iab6ab56927a6bea9275eda4a5bad1ad73b779a69 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4030402 Commit-Queue: Jakub Czapiga <czapiga@google.com> Tested-by: Jakub Czapiga <czapiga@google.com> Reviewed-by: Yu-Ping Wu <yupingso@chromium.org>
Diffstat (limited to 'host')
-rw-r--r--host/lib/cbfstool.c2
1 files changed, 1 insertions, 1 deletions
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;