On 27/07/05, Amira Solomovici <[EMAIL PROTECTED]> wrote:
> I have a problem with using the pcscd 1.2.9beta7 and ifd-gempc-1.0.0 on
> Fedora 4 Linux: the pcscd crashes when the GemPC430 reader is connected
> (segmentation fault). 

I found the problem. It was a (stupid) buffer overflow in hotplug_libusb.c :-(

The patch is:
--- hotplug_libusb.c    3 Aug 2005 07:58:27 -0000       1.41
+++ hotplug_libusb.c    3 Aug 2005 07:58:45 -0000
@@ -405,7 +405,7 @@ LONG HPAddHotPluggable(struct usb_device
 
        snprintf(deviceName, sizeof(deviceName), "usb:%04x/%04x:libusb:%s",
                dev->descriptor.idVendor, dev->descriptor.idProduct,
bus_device);
-       deviceName[sizeof(deviceName)] = '\0';
+       deviceName[sizeof(deviceName) -1] = '\0';
 
        /* find a free entry */
        for (i=0; i<PCSCLITE_MAX_READERS_CONTEXTS; i++)

Sorry for the inconvenience

-- 
 Dr. Ludovic Rousseau
 For private mail use [EMAIL PROTECTED] and not "big brother" Google

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

Reply via email to