summaryrefslogtreecommitdiff
path: root/libsparse/include/sparse/sparse.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-04-24 10:54:21 -0700
committerTao Bao <tbao@google.com>2018-04-24 18:10:42 -0700
commit41cf35f8b2795276280572cf4d06c58954d45ca4 (patch)
tree0eb3a9bc91e7fae881af8c662832f53ac95df472 /libsparse/include/sparse/sparse.h
parenta3721db3338c051c7f31fc6e70ca08c740e28761 (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 'libsparse/include/sparse/sparse.h')
0 files changed, 0 insertions, 0 deletions