summaryrefslogtreecommitdiff
path: root/action_processor.h
diff options
context:
space:
mode:
authorDarin Petkov <petkov@chromium.org>2010-09-24 11:44:47 -0700
committerDarin Petkov <petkov@chromium.org>2010-09-24 11:44:47 -0700
commit50332f19224d34f1e949c1deefd246079c2277e2 (patch)
tree122502fdc844a6d0da4ab561f057e888a071714f /action_processor.h
parentc6c57a5f2f72e04d4f29dd1f539be12a2605e8bc (diff)
AU: Verify that the actual download size matches the size reported by Omaha.
This patch makes sure that the size of the payload received from the server matches the size reported by Omaha. We could also verify that the HTTP header size field matches the Omaha size but that seems redundant -- ultimately, it's important that the number of bytes that AU actually downloads (and calculates the hash on) matches the Omaha size. BUG=6579 TEST=unit tests, gmerged on device and tested with a regular as well as a modified dev server to send incorrect size. Change-Id: I2f38e2df53e713c0b4f417533028fcb623e2df16 Review URL: http://codereview.chromium.org/3499004
Diffstat (limited to 'action_processor.h')
-rw-r--r--action_processor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/action_processor.h b/action_processor.h
index a395b3d5..98fc8539 100644
--- a/action_processor.h
+++ b/action_processor.h
@@ -34,6 +34,7 @@ enum ActionExitCode {
kActionCodeKernelDeviceOpenError = 8,
kActionCodeDownloadTransferError = 9,
kActionCodeDownloadHashMismatchError = 10,
+ kActionCodeDownloadSizeMismatchError = 11,
};
class AbstractAction;