From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sun, 6 Nov 2016 20:13:47 -0500 Subject: [U-Boot] [U-Boot, v4, 2/2] image: Protect against overflow in unknown_msg() In-Reply-To: <1477930869-27523-2-git-send-email-sjg@chromium.org> References: <1477930869-27523-2-git-send-email-sjg@chromium.org> Message-ID: <20161107011347.GH20830@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 Mon, Oct 31, 2016 at 10:21:09AM -0600, Simon Glass wrote: > Coverity complains that this can overflow. If we later increase the size > of one of the strings in the table, it could happen. > > Adjust the code to protect against this. > > Signed-off-by: Simon Glass > Reported-by: Coverity (CID: 150964) 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: