Dear Jean-Michel Pouré

2012/2/19 Jean-Michel Pouré - GOOZE <[email protected]>:
> You can test it using a Debian SID station.

Yes, I can reproduce the result using Debian wheezy (amd64) on VMware
Player. It seems to be kernel problem. The driver sending a command to
control endpoint to get a list of supported data rates from the
reader. The response from APG8201 will make libusb crash.

src/ccid_usb.c
Line 742: usbDevice[reader_index].ccid.arrayOfSupportedDataRates =
get_data_rates(reader_index, dev, num);

You can change it in order to avoid the problem.

>From CCID spec:
bNumDataRatesSupported: If the value is 00h, all data rates between
the default data rate dwDataRate and the maximum data rate
dwMaxDataRate are supported.

if (usb_interface->altsetting->extra[27] == 0)
    usbDevice[reader_index].ccid.arrayOfSupportedDataRates = NULL;
else
    usbDevice[reader_index].ccid.arrayOfSupportedDataRates =
get_data_rates(reader_index, dev, num);

Regards

Godfrey

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to