commit | 17d469bd579a83f5cad372dd8b1db47d3e874830 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Thu Feb 18 15:15:46 2021 -0800 |
committer | Yifan Hong <elsk@google.com> | Wed Mar 17 15:38:06 2021 -0700 |
tree | 8b081174d97ba4b0a8fb12e7fa187d7c499a7e00 | |
parent | bbf374dbd7a9d1e8090d8a9cabcdaf181dee615c [diff] |
fastboot driver: RunAndReadBuffer don't allocate too much mem Instead of allocating the buffer for the whole upload (which can be arbitrary number of bytes as the device determines), read 1 MiB at a time. Test: pass Bug: 173654501 Change-Id: Ib601b0341b10b7dccbb429cd21aad86a2d3bfda8