diff options
author | Tao Bao <tbao@google.com> | 2018-04-24 10:54:21 -0700 |
---|---|---|
committer | Tao Bao <tbao@google.com> | 2018-04-24 18:10:42 -0700 |
commit | 41cf35f8b2795276280572cf4d06c58954d45ca4 (patch) | |
tree | 0eb3a9bc91e7fae881af8c662832f53ac95df472 /debuggerd/debuggerd_test.cpp | |
parent | a3721db3338c051c7f31fc6e70ca08c740e28761 (diff) |
fastboot: sparse_file_len() returns int64_t.
Check that the value fits in uint32_t that's supported by the current
protocol.
Also fix and sanity check the max_size before passing it to
sparse_file_resparse(), which accepts `unsigned int`. This shouldn't
happen in practice because of RESPARSE_LIMIT (1 GiB).
Test: `fastboot flash` with small and large images.
Change-Id: I0a8279fc14c54c40a70ddce65c3b25173c0d0a40
Diffstat (limited to 'debuggerd/debuggerd_test.cpp')
0 files changed, 0 insertions, 0 deletions