]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: kwbimage: Verify size of image data
authorPali Rohár <pali@kernel.org>
Wed, 11 Aug 2021 08:14:16 +0000 (10:14 +0200)
committerStefan Roese <sr@denx.de>
Wed, 1 Sep 2021 06:07:04 +0000 (08:07 +0200)
commita008dbaa8ce2d4142e17780177faa381fd59bb4e
treec6ac3f7d4aac983b91183eb39021b98c33e6e4f7
parent33a0af2d8041b027cfbf6ab23c93026339aff142
tools: kwbimage: Verify size of image data

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 <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwbimage.c