Package: mdetect
Version: 0.5.2.1
Severity: normal
Tags: patch
I have a serial mouse connected to /dev/ttyS0. Running mdetect -vvv
causes a SEGV. The following patch fixes the problem
--- mice.c.orig 2005-10-28 14:02:36.000000000 +0100
+++ mice.c 2009-09-01 11:34:27.000000000 +0100
@@ -26,9 +26,10 @@
if (n && opt_verbose > 2) {
printf("Read %d chars from %s: ", n, dev->name);
- for (j = 0; j < n; j++)
- printf(isprint(buffer[j])? "%c" : "\\%03o",
- (unsigned char) buffer[j]);
+ if (buffer)
+ for (j = 0; j < n; j++)
+ printf(isprint(buffer[j])? "%c" : "\\%03o",
+ (unsigned char) buffer[j]);
printf("\n");
}
-- System Information:
Debian Release: 5.0.2
APT prefers stable
APT policy: (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.30.5 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages mdetect depends on:
ii libc6 2.7-18 GNU C Library: Shared libraries
mdetect recommends no packages.
mdetect suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]