1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-04-10 05:00:00 +02:00
Files
u-boot-megous/tools
Pali Rohár bb949e1da0 tools: kwboot: Fix sending very small images
Sending of very small images (smaller than 128 bytes = xmodem block size)
cause out-of-bound memory read access. Fix this issue by ensuring that
hdrsz when sending image is not larger than total size of the image.
Issue was introduced in commit f8017c3779 ("tools: kwboot: Fix sending
Kirkwood v0 images"). Special case when total image is smaller than header
size aligned to multiply of xmodem size is already handled since that
commit.

Fixes: f8017c3779 ("tools: kwboot: Fix sending Kirkwood v0 images")
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
2023-03-24 13:13:47 +01:00
..
2023-02-04 18:19:00 +01:00
2023-03-08 13:15:14 -08:00
2023-03-14 16:08:52 -06:00
2019-07-29 00:20:31 +02:00
2021-01-13 02:38:00 +01:00
2023-03-14 16:08:52 -06:00
2022-12-08 09:29:02 -05:00
2022-01-19 18:11:34 +01:00
2023-01-27 12:51:26 -05:00
2022-01-28 17:58:41 -05:00
2023-03-14 16:08:52 -06:00
2023-02-07 14:33:48 -05:00
2022-01-19 18:11:34 +01:00
2019-11-04 18:15:32 -07:00