[PATCH] tools/imagetool: Fix segfault when tparams->verify_header is NULL

Tom Rini trini at konsulko.com
Fri May 6 01:37:59 CEST 2022


On Wed, Apr 20, 2022 at 11:58:39PM +0200, Nicolas Heemeryck wrote:

> On some image types like i.MX8 and i.MX8M, the verify_header function
> is not implemented.
> 
> Before this commit, no check on tparams->verify_header was done causing
> a segfault if NULL. Now, a proper error message is printed.
> 
> Signed-off-by: Nicolas Heemeryck <nicolas.heemeryck at gmail.com>

Applied to u-boot/master, thanks!

-- 
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/20220505/259638b3/attachment.sig>


More information about the U-Boot mailing list