From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 22 Jul 2016 20:11:24 -0400 Subject: [U-Boot] [U-Boot, v5, 15/26] cmd: mtdparts: fix null pointer dereference in parse_mtdparts In-Reply-To: <1468348114-11442-16-git-send-email-ladis@linux-mips.org> References: <1468348114-11442-16-git-send-email-ladis@linux-mips.org> Message-ID: <20160723001124.GL14698@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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: