[U-Boot] test/dm: Fix string handling issues in the eth test

Tom Rini trini at konsulko.com
Sat Oct 7 13:09:04 UTC 2017


On Tue, Sep 26, 2017 at 02:08:30PM -0400, Tom Rini wrote:

> Coverity scan has identified potential buffer overruns in these tests.
> Correct this by zeroing our buffer and using strncpy not strcpy.
> 
> Reported-by: Coverity (CID: 155462, 155463)
> Cc: Joe Hershberger <joe.hershberger at ni.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Bin Meng <bmeng.cn at gmail.com>
> Signed-off-by: Tom Rini <trini at konsulko.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Joe Hershberger <joe.hershberger at ni.com>

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: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171007/1b23ee0b/attachment.sig>


More information about the U-Boot mailing list