[PATCH v2] cmd: abootimg: Prevent use of unintialised variable
Tom Rini
trini at konsulko.com
Wed Jun 25 17:57:37 CEST 2025
On Wed, Jun 25, 2025 at 04:52:41PM +0100, Andrew Goodbody wrote:
> vhdr can be used when not initialised so detect this condition
> and exit early to prevent the problem.
>
> This issue was found with Smatch.
>
> Fixes: 636da2039aea (android: boot: support boot image header version 3 and 4)
> Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>
Reviewed-by: Tom Rini <trini at konsulko.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250625/5d6357cb/attachment.sig>
More information about the U-Boot
mailing list