]> git.sur5r.net Git - u-boot/commit
cmd: ethsw: Fix out-of-bounds error
authorYork Sun <york.sun@nxp.com>
Tue, 13 Jun 2017 16:50:41 +0000 (09:50 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 16 Jun 2017 14:11:42 +0000 (10:11 -0400)
commit31417f0e5abacd754e1d576095e76d0e82327ba7
treef49d0fc6dfa4acb51326484e7c271739db26c95a
parent19de2deb814a0e4eee0c8ada726a6f9cb698fe57
cmd: ethsw: Fix out-of-bounds error

The for loop in cmd_keywords_opt_check() seems to use wrong array to
set boundary, reported by Coverity analysis.

Signed-off-by: York Sun <york.sun@nxp.com>
CC: Joe Hershberger <joe.hershberger@ni.com>
CC: Tom Rini <trini@konsulko.com>
CC: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Reported-by: Coverity (CID: 163251)
Reviewed-by: Tom Rini <trini@konsulko.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
cmd/ethsw.c