summaryrefslogtreecommitdiff
path: root/fastboot/fastboot.cpp
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2021-02-18 15:15:46 -0800
committerYifan Hong <elsk@google.com>2021-03-17 15:38:06 -0700
commit17d469bd579a83f5cad372dd8b1db47d3e874830 (patch)
tree8b081174d97ba4b0a8fb12e7fa187d7c499a7e00 /fastboot/fastboot.cpp
parentbbf374dbd7a9d1e8090d8a9cabcdaf181dee615c (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
Diffstat (limited to 'fastboot/fastboot.cpp')
0 files changed, 0 insertions, 0 deletions