The two patches inside the debdiff fix these bugs:
* First issue is that usb_modeswitch_dispatcher.c crashes when a device
presented to it has no USB interface 0. This is caused by improper
checking for a NULL pointer returned by a interface-lookup function. It
is fixed by adding a null-check and gracefully exiting the program if
there is no interface 0. This should be consistent with how the upstream
Tcl script handled this.
* Second issue is that usb_modeswitch_dispatcher.c writes an unexpected
literal "(null)" string to usb_modeswitch command line. This suprisingly
does not cause any malfunction, because the argument is ignored by
usb_modeswitch. The problem is caused by assignment of NULL to a
variable where strdup("") should have been used instead. The problem is
fixed by using strdup, which is consistent with how this was handled in
other cases as well.
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to usb-modeswitch in Ubuntu.
https://bugs.launchpad.net/bugs/1676763
Title:
usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()
Status in usb-modeswitch package in Ubuntu:
Confirmed
Bug description:
Description: Ubuntu Zesty Zapus (development branch)
Release: 17.04
usb-modeswitch:
Instalados: 2.4.0+repack0-1ubuntu1
Candidato: 2.4.0+repack0-1ubuntu1
Tabla de versión:
*** 2.4.0+repack0-1ubuntu1 500
500 http://es.archive.ubuntu.com/ubuntu zesty/main amd64 Packages
100 /var/lib/dpkg/status
This error appears just after login.
ProblemType: Crash
DistroRelease: Ubuntu 17.04
Package: usb-modeswitch 2.4.0+repack0-1ubuntu1
ProcVersionSignature: Ubuntu 4.10.0-14.16-generic 4.10.3
Uname: Linux 4.10.0-14-generic x86_64
ApportVersion: 2.20.4-0ubuntu2
Architecture: amd64
CrashCounter: 1
Date: Tue Mar 28 09:40:09 2017
ExecutablePath: /usr/sbin/usb_modeswitch_dispatcher
InstallationDate: Installed on 2017-03-24 (3 days ago)
InstallationMedia: Ubuntu-MATE 17.04 "Zesty Zapus" - Alpha amd64 (20170125)
ProcCmdline: /usr/sbin/usb_modeswitch_dispatcher --switch-systemd 1-6
ProcEnviron:
LANG=es_ES.UTF-8
PATH=(custom, no user)
Signal: 11
SourcePackage: usb-modeswitch
StacktraceTop:
strrchr () at ../sysdeps/x86_64/strrchr.S:32
?? ()
__libc_start_main (main=0x555ed4e5f970, argc=3, argv=0x7ffd50b28338,
init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>,
stack_end=0x7ffd50b28328) at ../csu/libc-start.c:291
?? ()
Title: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1676763/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp