[U-Boot] [U-Boot, v5, 15/26] cmd: mtdparts: fix null pointer dereference in parse_mtdparts

Tom Rini trini at konsulko.com
Sat Jul 23 02:11:24 CEST 2016


On Tue, Jul 12, 2016 at 08:28:23PM +0200, Ladislav Michl wrote:

> In case there is no mtdparts variable in relocated environment,
> NULL is assigned to p, which is later fed to strncpy.
> Also function parameter mtdparts is completely ignored, so use it
> in case mtdparts variable is not found in environment. This
> parameter is checked not to be NULL in caller.
> 
> Signed-off-by: Ladislav Michl <ladis at linux-mips.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160722/97f8bf83/attachment.sig>


More information about the U-Boot mailing list