diff options
author | Tom Rini <trini@konsulko.com> | 2017-09-26 14:08:30 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-10-06 11:28:20 -0400 |
commit | e2e6daed5a801e361d03f98e2eb770ca4fccca2c (patch) | |
tree | 7856672b6ab6b17b592cf5aa8cf6eb51d12b07bb /cmd | |
parent | d91062c41e1542ffb2f8590cce75fb5a2b397fdc (diff) | |
download | u-boot-e2e6daed5a801e361d03f98e2eb770ca4fccca2c.tar.gz u-boot-e2e6daed5a801e361d03f98e2eb770ca4fccca2c.tar.xz u-boot-e2e6daed5a801e361d03f98e2eb770ca4fccca2c.zip |
test/dm: Fix string handling issues in the eth test
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@ni.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions