Re: [U-Boot] [PATCH] common: cli_simple: use strncpy instead of strcpy

2016-01-09 Thread Tom Rini
On Sat, Jan 09, 2016 at 09:31:48PM +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

[U-Boot] [PATCH] common: cli_simple: use strncpy instead of strcpy

2016-01-09 Thread Peng Fan
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

Re: [U-Boot] [PATCH] common: cli_simple: use strncpy instead of strcpy

2016-01-09 Thread Peng Fan
On Sat, Jan 09, 2016 at 09:03:59AM -0500, Tom Rini wrote: >On Sat, Jan 09, 2016 at 09:31:48PM +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