jtag/bitq: array boundary overflow 33/4733/4
authorxuguangxiao <szgxxu@qq.com>
Tue, 23 Oct 2018 07:43:11 +0000 (15:43 +0800)
committerTomas Vanek <vanekt@fbl.cz>
Sat, 10 Nov 2018 21:15:39 +0000 (21:15 +0000)
commit8262e8a2c03efa5ddcb780da7174210b4c5da7ca
treeb7ea88bd0ebf14fd4c6897ec9580df2d4747f2cc
parent010b09121ca08f955921654c6a3d405be80afef1
jtag/bitq: array boundary overflow

The for loop inside bitq_path_move function is not correct, this will
overflow the cmd->path array and produces an unpredictable result.

Change-Id: I81e3bc9ee6d1dd948acd2fe4c667103ac22bb26f
Signed-off-by: xuguangxiao <szgxxu@qq.com>
Reviewed-on: http://openocd.zylin.com/4733
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
src/jtag/drivers/bitq.c