summaryrefslogtreecommitdiff
path: root/fastboot/device/flashing.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2018-09-04 17:57:36 -0700
committerDavid Anderson <dvander@google.com>2018-09-05 12:52:15 -0700
commit56843eec457cc06ccf7d39db56ebcd3dba25df8b (patch)
treedf281c17b45e816d27061b0759d8b09b7008ddd6 /fastboot/device/flashing.cpp
parent28b81cdc91e9cbc69697d122ee4d8ab8b5b1a685 (diff)
fastbootd: Perform CRC check when flashing sparse images.
Bug: 78793464 Test: fuzzy_fastboot Conformance.SparseCRCCheck passes Change-Id: I717fbec42599a43bafafa1f73837e115a9f9109a
Diffstat (limited to 'fastboot/device/flashing.cpp')
-rw-r--r--fastboot/device/flashing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fastboot/device/flashing.cpp b/fastboot/device/flashing.cpp
index e3efbcba2..a383c54b2 100644
--- a/fastboot/device/flashing.cpp
+++ b/fastboot/device/flashing.cpp
@@ -72,7 +72,7 @@ int WriteCallback(void* priv, const void* data, size_t len) {
}
int FlashSparseData(int fd, std::vector<char>& downloaded_data) {
- struct sparse_file* file = sparse_file_import_buf(downloaded_data.data(), true, false);
+ struct sparse_file* file = sparse_file_import_buf(downloaded_data.data(), true, true);
if (!file) {
return -ENOENT;
}