Fix for SVF tdo comparison flaw (2456021)

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1410 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Kolja Waschk 16 years ago
parent 779c04eb55
commit 0fbdfba97b

@ -1,5 +1,7 @@
2008-12-21 Kolja Waschk <kawk>
* src/svf/svf.c: Fix 2456021 - SVF compare_tdo flaw
* src/tap/cable/ft2232.c, src/tap/cable/cmd_xfer.c,
src/tap/cable/cmd_xfer.h: limit maximum number of bytes queued
into one cmd buffer. Should fix problems with high clocks count for

@ -437,7 +437,7 @@ svf_compare_tdo(parser_priv_t *priv, char *tdo, char *mask, tap_register *reg, Y
mismatch = -1;
for (pos = 0; pos < reg->len; pos++)
if ((svf_hex2dec(tdo_bit[pos]) ^ reg->string[pos]) & svf_hex2dec(mask_bit[pos]))
if ((tdo_bit[pos] != reg->string[pos]) && (mask_bit[pos] == '1'))
mismatch = pos;
if (mismatch >= 0) {

Loading…
Cancel
Save