commit | aae84e813cce90d5d0b4567498587b87d0dc0a30 | [log] [tgz] |
---|---|---|
author | Hridya Valsaraju <hridya@google.com> | Mon Oct 08 13:10:25 2018 -0700 |
committer | Hridya Valsaraju <hridya@google.com> | Mon Oct 08 14:07:56 2018 -0700 |
tree | 4c737b5967a0fa7160b2bbdc1c8de36876889490 | |
parent | f3186de123c742166ec5e61b27b61af3ef929dfb [diff] [blame] |
Check maximum allowed download size for download command. Bug: 117272937 Test: fastboot flashall Change-Id: Ied34a89129813a7f9fce6d4f48d8b65967558731
diff --git a/fastboot/device/commands.h b/fastboot/device/commands.h index 9df43a9..bb1f988 100644 --- a/fastboot/device/commands.h +++ b/fastboot/device/commands.h
@@ -19,6 +19,8 @@ #include <string> #include <vector> +constexpr unsigned int kMaxDownloadSizeDefault = 0x20000000; + class FastbootDevice; enum class FastbootResult {