Issue 555: Memory passed to ioctl is not initialized in reap_for_handle
authormac Wang <6045490+liangyunwang@users.noreply.github.com>
Mon, 8 Apr 2019 21:03:36 +0000 (14:03 -0700)
committerNathan Hjelm <hjelmn@me.com>
Mon, 8 Apr 2019 23:50:06 +0000 (17:50 -0600)
Closes #557
Closes #555

Signed-off-by: Nathan Hjelm <hjelmn@me.com>
libusb/os/linux_usbfs.c
libusb/version_nano.h

index a6b7963..84f59c3 100644 (file)
@@ -2716,7 +2716,7 @@ static int reap_for_handle(struct libusb_device_handle *handle)
 {
        struct linux_device_handle_priv *hpriv = _device_handle_priv(handle);
        int r;
-       struct usbfs_urb *urb;
+       struct usbfs_urb *urb = NULL;
        struct usbi_transfer *itransfer;
        struct libusb_transfer *transfer;
 
index da94a6c..a39576f 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11365
+#define LIBUSB_NANO 11366