commit | c2a048e2ed223b3a9c5e171aa5712a52ed1c45ee | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Fri May 01 11:41:56 2020 -0700 |
committer | Yifan Hong <elsk@google.com> | Fri May 01 11:52:01 2020 -0700 |
tree | 2c6e6ca3e166d9e4db6b6bacf97f5a35ad62fed0 | |
parent | af9240abc962e24dff3e81477afb94a5b0b4d977 [diff] |
Handle zero snapshot size appropriately. This won't happen in practice because device size is never zero. Hypothetically, if it is, PartitionCowCreator still suggests that a CoW size of 8192 bytes needs to be created. In reality, it is not necessary. Test: libsnapshot_fuzzer Bug: 155484992 Change-Id: I6c69f54820522d50c699384eec90c474ca3a9402 (cherry picked from commit bc84824e21acfdc83590d6d0d4827bd9854fc0f5) Merged-In: I6c69f54820522d50c699384eec90c474ca3a9402