GNOME Bugzilla – Bug 719495
segfault for wrong host
Last modified: 2013-11-29 12:29:45 UTC
Segfault when wrong host is specified. $ /usr/libexec/gvfsd-mtp host=[usb:001,003] (I) g_vfs_backend_mtp_init (I) g_vfs_backend_mtp_init done. (I) do_mount (I) do_mount: host=[usb:001,003] (II) get_dev_path_from_host: Parsed '[usb:001,003]' into device name /dev/bus/usb/001/003 (II) get_device: [usb:001,003] Device 0 (VID=12d1 and PID=1051) is a Huawei Honor U8860. (II) get_device done. (I) do_mount done. Segmentation fault (core dumped)
Created attachment 263034 [details] [review] mtp: fix segfault when device not found
Review of attachment 263034 [details] [review]: Makes sense, except the error message should be "Device not found".
(In reply to comment #2) > Review of attachment 263034 [details] [review]: > > Makes sense, except the error message should be "Device not found". Thanks, fixed and pushed as commit 6b54d05ea00a363e570101e355917cc12d650ae9.