diff options
author | Yifan Hong <elsk@google.com> | 2020-05-01 11:41:56 -0700 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2020-05-01 11:52:01 -0700 |
commit | c2a048e2ed223b3a9c5e171aa5712a52ed1c45ee (patch) | |
tree | 2c6e6ca3e166d9e4db6b6bacf97f5a35ad62fed0 /fastboot/socket.cpp | |
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
Diffstat (limited to 'fastboot/socket.cpp')
0 files changed, 0 insertions, 0 deletions