Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email firstname.lastname@example.org
From: Ludovic Rousseau (ludovic.rousseaugmail.com)
Date: Thu Oct 11 2007 - 03:31:08 CDT
2007/10/10, peichingeraaitg.com <peichingeraaitg.com>:
> Hello all,
> We came across various problems with PCSCLite in combination with serial
> Our serial numbers are 32 byte long and along with the readername add up to
> more than MAX_READERNAME, so the serial number is cut off by snprintf()
> (hotplug_libusb.c/line: 514).
> It's not only a cosmetical problem, it also has various aftereffects:
> * PCSCLite is unable to remove the reader from its readerlist after
> unplugging the reader, eventhough the driver is (correctly) returning
> * Connecting a second dualslot reader causes PCSCLite to segfault.
> Undefining ADD_SERIAL_NUMBER in hotplug/libusb.c fixes these problems!
> Options are:
> * Increasing MAX_READERNAME or
Solved in revision 2637 . MAX_READERNAME is now 100.
> * Adding a check if readername and serial nummer add up to more than
> MAX_READERNAME, in which case the serial number should be omitted.
When a reader name is too long the reader will not be used at all and
the error is logged. Changed in revision 2636 .
These modifications will be available in version 1.5.0 of pcsc-lite.
> We are in favour of the second option, also I don't see the point in adding
> the serial number to the readername, while an application can also retrieve
> it via SCardGetAttrib().
What do other think about that?
Dr. Ludovic Rousseau
Muscle mailing list