Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Unified Diff: download_action.cc

Issue 3599025: AU: Verify that the applied delta update matches the server-sent hashes. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « delta_performer_unittest.cc ('k') | update_attempter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: download_action.cc
diff --git a/download_action.cc b/download_action.cc
index b88e44825a3644d4b593838c387d128947a40d8a..2920d16fd055503097f7d8695be389a44bd55c79 100644
--- a/download_action.cc
+++ b/download_action.cc
@@ -147,6 +147,11 @@ void DownloadAction::TransferComplete(HttpFetcher *fetcher, bool successful) {
LOG(ERROR) << "Download of " << install_plan_.download_url
<< " failed due to payload verification error.";
code = kActionCodeDownloadPayloadVerificationError;
+ } else if (!delta_performer_->VerifyAppliedUpdate(
+ install_plan_.install_path, install_plan_.kernel_install_path)) {
+ LOG(ERROR) << "Download of " << install_plan_.download_url
+ << " failed due to applied update verification error.";
+ code = kActionCodeDownloadAppliedUpdateVerificationError;
}
} else {
// Makes sure the hash and size are correct for an old-style full update.
« no previous file with comments | « delta_performer_unittest.cc ('k') | update_attempter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698