Re: [PATCH 3/4] tools: kwbimage: Verify size of image data

2021-09-01 Thread Stefan Roese
On 11.08.21 10:14, Pali Rohár wrote: Part of image data is 4 byte checksum, so every image must contain at least 4 bytes. Verify it to prevent memory corruptions. Signed-off-by: Pali Rohár Applied to u-boot-marvell/master Thanks, Stefan --- tools/kwbimage.c | 2 +- 1 file changed, 1

Re: [PATCH 3/4] tools: kwbimage: Verify size of image data

2021-08-11 Thread Stefan Roese
On 11.08.21 10:14, Pali Rohár wrote: Part of image data is 4 byte checksum, so every image must contain at least 4 bytes. Verify it to prevent memory corruptions. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- tools/kwbimage.c | 2 +- 1 file changed, 1

[PATCH 3/4] tools: kwbimage: Verify size of image data

2021-08-11 Thread Pali Rohár
Part of image data is 4 byte checksum, so every image must contain at least 4 bytes. Verify it to prevent memory corruptions. Signed-off-by: Pali Rohár --- tools/kwbimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kwbimage.c b/tools/kwbimage.c index