diff options
author | David Anderson <dvander@google.com> | 2019-03-01 16:14:48 -0800 |
---|---|---|
committer | David Anderson <dvander@google.com> | 2019-03-01 16:17:27 -0800 |
commit | 88e36c1514619caa28cad9d718eb88c917f2ceae (patch) | |
tree | 749560b488c7373d45f26cf80f84335d533fa70b /libsparse/sparse.cpp | |
parent | 33f344cb36846c33a7efcc80e9de1024cb698d3a (diff) |
Fix double-accounting bug in liblp.
When flashing in fastbootd, we create a new MetadataBuilder using the
given super_empty.img and attempt to import the existing partition
table. This will fail if there is some incompatibility in the partition
layout or partition quotas.
This import code was accidentally double-accounting partitions when
determining if they could fit within the group quota, preventing
"fastboot flashall" once partitions reached a certain size.
Bug: 126930319
Test: liblp_test gtest
Change-Id: I89a69cba110b62719197c9a4885cfc5bcf8f009f
Diffstat (limited to 'libsparse/sparse.cpp')
0 files changed, 0 insertions, 0 deletions