Skip to content
Snippets Groups Projects
Commit 6055d952 authored by Andreas Fritiofson's avatar Andreas Fritiofson Committed by Freddie Chopin
Browse files

ftdi: fix overflow if last field of a scan is empty


The last bit of a scan is clocked during TAP movement so it's necessary
for the last field to have at least one bit. Strip trailing empty fields
and make sure the TAP is not affected if there's nothing to scan. Clients
probably shouldn't add empty fields so add a debug message to be able to
track and fix them.

Change-Id: I27552568bc11146570b9b99ed8a1ae81b5fb2c50
Signed-off-by: default avatarAndreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/794


Reviewed-by: default avatarSpencer Oliver <spen@spen-soft.co.uk>
Tested-by: jenkins
Reviewed-by: default avatarFreddie Chopin <freddie.chopin@gmail.com>
parent d9a02fda
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment