update_engine: uint64_t of partition size
On 32-bit device(mainly Android Go device), the size_t type is uint32. Overflow occurs when the total size of all partitions > 2^32 bytes, causing the partitionw_eight_.back() value to be smaller than the true size, and the progress of the FilesystemVerifierAction exceeds 100%
Change-Id: Idfb35c96c7f9cefb7fe4ebd1e369123dfac98f85
diff --git a/payload_consumer/filesystem_verifier_action.cc b/payload_consumer/filesystem_verifier_action.cc
index 2e2f6b9..4990358 100644
--- a/payload_consumer/filesystem_verifier_action.cc
+++ b/payload_consumer/filesystem_verifier_action.cc
@@ -112,7 +112,7 @@
std::partial_sum(partition_weight_.begin(),
partition_weight_.end(),
partition_weight_.begin(),
- std::plus<size_t>());
+ std::plus<uint64_t>());
install_plan_.Dump();
// If we are not writing verity, just map all partitions once at the