]> Git Repo - u-boot.git/commit
test/dm: Fix string handling issues in the eth test
authorTom Rini <[email protected]>
Tue, 26 Sep 2017 18:08:30 +0000 (14:08 -0400)
committerTom Rini <[email protected]>
Fri, 6 Oct 2017 15:28:20 +0000 (11:28 -0400)
commite2e6daed5a801e361d03f98e2eb770ca4fccca2c
tree7856672b6ab6b17b592cf5aa8cf6eb51d12b07bb
parentd91062c41e1542ffb2f8590cce75fb5a2b397fdc
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 <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Bin Meng <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Joe Hershberger <[email protected]>
test/dm/eth.c
This page took 0.033475 seconds and 4 git commands to generate.