[PATCH] imd: imd_calculate_crc32: initialize imd_crc to NULL

Sascha Hauer s.hauer at pengutronix.de
Mon Sep 14 06:21:04 EDT 2020


Hi Hubert,

On Fri, Sep 04, 2020 at 02:49:15PM +0200, Hubert Feurstein wrote:
> Am Fr., 4. Sept. 2020 um 12:10 Uhr schrieb Hubert Feurstein
> <h.feurstein at gmail.com>:
> > This fixes a NULL pointer dereference in the caller when imd-crc-token is
> > not found.
> In fact, it is even worse, it is a "uninitialized pointer dereference".

Applied to master, thanks. I reworded the commit to:

This fixes a dereference of an uninitialized pointer when imd-crc-token
is not found.

Sascha


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list