From: Tom Rini Date: Thu, 14 Jan 2016 08:22:24 -0500 Subject: [U-Boot] [U-Boot, V2] common: cli_simple: use strlcpy instead of strcpy In-Reply-To: <1452402082-18244-1-git-send-email-van.freenix@gmail.com> References: <1452402082-18244-1-git-send-email-van.freenix@gmail.com> Message-ID: <20160114132224.GV3359@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 Sun, Jan 10, 2016 at 01:01:22PM +0800, Peng Fan wrote: > Report Coverity log: > Destination buffer too small (STRING_OVERFLOW) > string_overflow: You might overrun the 1024 byte destination string > lastcommand by writing 1025 bytes from console_buffer > > Signed-off-by: Peng Fan > Cc: Heiko Schocher > Cc: Simon Glass > Cc: Tom Rini > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: