diff options
author | Steffen Trumtrar <s.trumtrar@pengutronix.de> | 2021-01-11 11:32:04 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-01-13 10:03:37 +0100 |
commit | 131bac34d2ce9997fe30eeb3bbd361248befc7d1 (patch) | |
tree | 0fc511c20ae4757125c00dbaafd133cdcd205b04 /common | |
parent | e90d4646fccd388e8611aff44997c34b55eadbc3 (diff) | |
download | barebox-131bac34d2ce9997fe30eeb3bbd361248befc7d1.tar.gz barebox-131bac34d2ce9997fe30eeb3bbd361248befc7d1.tar.xz |
image-sparse: change retlen to size_t
retlen can potentially overflow. Also, write_full() in
fastboot_handle_sparse() expects size_t anyway.
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/fastboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/fastboot.c b/common/fastboot.c index 27d3f1eddc..a394d07e28 100644 --- a/common/fastboot.c +++ b/common/fastboot.c @@ -565,7 +565,7 @@ static int fastboot_handle_sparse(struct fastboot *fb, } while (1) { - int retlen; + size_t retlen; loff_t pos; ret = sparse_image_read(sparse, buf, &pos, bufsiz, &retlen); |