commit | fc7c10cfe6975658f566c6834c9701faf16b3aa7 | [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 | 9286d011702d880c4fbf9e80d328b9d19994d0a1 [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