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
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
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