summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2017-01-19 00:12:54 +0100
committerTianjie Xu <xunchang@google.com>2017-01-19 00:15:17 +0100
commit97ea844aca4ca41cf9255adb60713ddda2589f0e (patch)
tree43bd99c37aade61d9bc79c247d32c606ffa87dd8
parentAdd a checker for signature boundary in verifier am: 54ea136fde am: 0a34b17c8b am: fb80b4f72d am: d3d5e54a45 am: 6ea9888d51 am: a055eb93c3 am: 15ca2a4763 am: ca50d7b66a am: 64f0de7a13 am: e4ec60e045 (diff)
downloadandroid_bootable_recovery-97ea844aca4ca41cf9255adb60713ddda2589f0e.tar
android_bootable_recovery-97ea844aca4ca41cf9255adb60713ddda2589f0e.tar.gz
android_bootable_recovery-97ea844aca4ca41cf9255adb60713ddda2589f0e.tar.bz2
android_bootable_recovery-97ea844aca4ca41cf9255adb60713ddda2589f0e.tar.lz
android_bootable_recovery-97ea844aca4ca41cf9255adb60713ddda2589f0e.tar.xz
android_bootable_recovery-97ea844aca4ca41cf9255adb60713ddda2589f0e.tar.zst
android_bootable_recovery-97ea844aca4ca41cf9255adb60713ddda2589f0e.zip
-rw-r--r--verifier.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/verifier.cpp b/verifier.cpp
index 22f15235b..82454867b 100644
--- a/verifier.cpp
+++ b/verifier.cpp
@@ -148,8 +148,8 @@ int verify_file(unsigned char* addr, size_t length,
<< " bytes from end";
if (signature_start > comment_size) {
- LOGE("signature start: %zu is larger than comment size: %zu\n", signature_start,
- comment_size);
+ LOG(ERROR) << "signature start: " << signature_start << " is larger than comment size: "
+ << comment_size;
return VERIFY_FAILURE;
}