ALT Linux Bugzilla
– Attachment 2942 Details for
Bug 17264
kcmshell kamera падает в libusb
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Patch to fix NULL-pointer dereference
gphoto2_port_libusb_fix.patch (text/plain), 511 bytes, created by
Alexander Bokovoy
on 2008-09-22 23:14:21 MSD
(
hide
)
Description:
Patch to fix NULL-pointer dereference
Filename:
MIME Type:
Creator:
Alexander Bokovoy
Created:
2008-09-22 23:14:21 MSD
Size:
511 bytes
patch
obsolete
>--- libgphoto2-2.4.2/libgphoto2_port/usb/libusb.c.orig 2008-08-27 07:56:33 +0400 >+++ libgphoto2-2.4.2/libgphoto2_port/usb/libusb.c 2008-09-22 23:11:42 +0400 >@@ -780,6 +780,9 @@ > #endif > > devh = usb_open (dev); >+ /* usb_open can return NULL if device isn't accessible. This is default behaviour for libusb-1 compatibility API */ >+ if (!devh) >+ return 0; > /* get string descriptor at 0xEE */ > ret = usb_get_descriptor (devh, 0x03, 0xee, buf, sizeof(buf)); > if (ret > 0) gp_log_data("get_MS_OSD",buf, ret);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 17264
: 2942