Re: [PATCH u-boot-mvebu 4/5] tools: kwboot: Fix sending very small images

2023-03-24 Thread Stefan Roese
On 3/23/23 20:57, Pali Rohár wrote: 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 f8017c37799c

[PATCH u-boot-mvebu 4/5] tools: kwboot: Fix sending very small images

2023-03-23 Thread Pali Rohár
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 f8017c37799c ("tools: kwboot: Fix sending Kirkwood v0