summaryrefslogtreecommitdiff
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>2023-03-29 08:18:01 +0000
commitd94af71cdca47fe8cb5f8b1bc10850dea3786f42 (patch)
tree30450c9ab0df3504084d9c9fe40112e7aaf9ac22
parent5d53e92aa2afd86e79f74edf104e83fe236e7343 (diff)
downloadvboot-d94af71cdca47fe8cb5f8b1bc10850dea3786f42.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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4380919 Tested-by: Phoebe Wang <phoebewang@chromium.org> Reviewed-by: Cheng Yueh <cyueh@chromium.org> Auto-Submit: Phoebe Wang <phoebewang@chromium.org> Commit-Queue: Cheng Yueh <cyueh@chromium.org>
-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;