On Aug 5, 2012, at 7:23 PM, Mike Frysinger wrote:
>> jtag> cable gnICE+ VID=15ba PID=002a
> 
> if you use 0x15ba, does it work better ?

Yep, that works:

  jtag> cable gnICE+ vid=0x15ba pid=0x002a
  Connected to libftdi driver.

There is a bug in the error checking code in params.c that causes it to 
silently ignore sscanf() errors so long as at least a single character is 
consumed; in my case it stopped after "15" and "0002" rather than complain 
about the fact that "15ba" and "002a" are not decimal numbers.

The attached patch causes it to parse the entire input rather than an arbitrary 
nonempty prefix of it.

  - e

Attachment: fix-urjtag-parsing-bug.patch
Description: Binary data

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
UrJTAG-development mailing list
UrJTAG-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/urjtag-development

Reply via email to