
7 Oct
2017
7 Oct
'17
3:09 p.m.
On Tue, Sep 26, 2017 at 07:37:11PM -0400, Tom Rini wrote:
When we have multiple messages provided, we need to be sure that we do not exceed the length of our 'message' buffer. In the for loop, make sure that pos is not larger than message. Only copy in at most however much of the message buffer remains. Finally, if we have not reached the end of the message buffer, put in a space and NULL, and if we have, ensure the buffer is now NULL termined.
Reported-by: Coverity (CID: 165116) Signed-off-by: Tom Rini trini@konsulko.com
Applied to u-boot/master, thanks!
--
Tom