]> git.sur5r.net Git - openocd/commit
Fix buffer overflow in versaloon interface
authorJoerg Fischer <turboj@gmx.de>
Sun, 10 Feb 2013 20:45:30 +0000 (21:45 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 25 Feb 2013 11:59:17 +0000 (11:59 +0000)
commit80f78acf7350ca9f812b520ec80f9bc6159d7f0c
treefcbbb1dc354c54aafed390c5c1f1b37299a5044b
parentb00b9f2d7d2805ce0d038b2149b636c0576ee9ec
Fix buffer overflow in versaloon interface

The USB buffer will need space for both TMS and TDI buffers.
Each holds tap_buffer_size bytes maximum, so tap_buffer_size must be
smaller than half of usb buf_size.

Change-Id: Id8f39936a894cbd98deb89eec5a859aef1e2b783
Signed-off-by: Joerg Fischer <turboj@gmx.de>
Reviewed-on: http://openocd.zylin.com/1136
Tested-by: jenkins
Reviewed-by: simon qian <simonqian.openocd@gmail.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/jtag/drivers/vsllink.c