]> git.sur5r.net Git - openocd/commit
jtag: opendous: fix tap buffer overflow
authorStefan Mahr <stefan.mahr@sphairon.com>
Sat, 9 Mar 2013 16:50:54 +0000 (17:50 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Wed, 13 Mar 2013 12:36:57 +0000 (12:36 +0000)
commit02192f6b8c63d740a551e371441d85d59930e65c
tree1d9e0df98a23f63e798be095de4afc5b3ea077df
parent9b6de72c2ba149ac6f3e11d6d0dd3030bf7b19f9
jtag: opendous: fix tap buffer overflow

Appending bits to TAP buffer doesn't check if there's enough space left.
This patch adds this check to fix TAP overflow error.

Change-Id: If80d5ab4a24983ad24f3cab31f9676d1590ebf5d
Signed-off-by: Stefan Mahr <stefan.mahr@sphairon.com>
Reviewed-on: http://openocd.zylin.com/1216
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/jtag/drivers/opendous.c