commit | 74c7807af1fffdf81b93144389a10abfa5c969c1 | [log] [tgz] |
---|---|---|
author | David Anderson <dvander@google.com> | Thu Mar 16 21:21:28 2023 -0700 |
committer | David Anderson <dvander@google.com> | Mon Mar 20 15:55:57 2023 -0700 |
tree | 826d1f7d21575e5de32b6cfe7fcbc8e854b92362 | |
parent | f06debcf24509a2bd33ebae51aaeffdc675fc2be [diff] |
fastboot: Handle libsparse failures better. sparse_file_len is not actually infallible; on Windows it's pretty easy to make it fail by embedding large files in the stream. fastboot didn't handle this anywhere, leading to bad sparse images when libsparse runs out of address space. Bug: 273933042 Bug: 268872725 Test: fastboot flashall on Windows Change-Id: Ie68aed2f1970e820350d9f97aa89a6c0242229b8