[PATCH] Documentation: boards: sandbox: describe --image flags

2021-01-11 Thread Ahmad Fatoum
barebox partition table parsing can be tested in sandbox using the recently added ,blkdev flag. Extend the documentation to cover this. Cc: Juergen Borleis Reported-by: Lucas Stach Signed-off-by: Ahmad Fatoum --- Documentation/boards/sandbox.rst | 14 ++ 1 file changed, 14

[PATCH 2/2] image-sparse: change chunk_data_sz to u64

2021-01-11 Thread Steffen Trumtrar
chunk_data_sz is set to the result of a __le32 * __le32 multiplication: chunk_data_sz = si->sparse.blk_sz * si->chunk.chunk_sz; This will overflow. Signed-off-by: Steffen Trumtrar --- lib/image-sparse.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH 1/2] image-sparse: change retlen to size_t

2021-01-11 Thread Steffen Trumtrar
retlen can potentially overflow. Also, write_full() in fastboot_handle_sparse() expects size_t anyway. Signed-off-by: Steffen Trumtrar --- common/fastboot.c | 2 +- include/image-sparse.h | 2 +- lib/image-sparse.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git