From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sat, 26 Aug 2017 16:46:44 -0400 Subject: [U-Boot] mtdparts: Fix final outstanding issue reported by Coverity In-Reply-To: <1503273940-15623-1-git-send-email-trini@konsulko.com> References: <1503273940-15623-1-git-send-email-trini@konsulko.com> Message-ID: <20170826204644.GO2827@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de On Sun, Aug 20, 2017 at 08:05:40PM -0400, Tom Rini wrote: > As part of fixing the previously reported issues, it was missed that in > the case of mtdparts_init() we need to make sure that tmp_ep is long > enough to contain PARTITION_MAXLEN and a NULL termination. Then, to be > sure the buffer is NULL terminated, zero the entire buffer rather than > just ensuring the first character is NULL. >=20 > Cc: Lothar Wa=C3=9Fmann > Cc: Maxime Ripard > Reported-by: Coverity (CID: 166329) > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! --=20 Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: