Package: irssi Version: 0.8.12-5 Severity: normal Tags: patch Hi,
Please find attached a patch against 0.8.12 which fixes a segfault when using the irssi-plugin-silc package with irssi. The problem manifests when you try to send a message, irssi would segfault in skip_target() due to a null dereference. Credit for the patch[0] goes to Skywing <[EMAIL PROTECTED]>. Thanks! Micah 0. http://permalink.gmane.org/gmane.network.irc.irssi.devel/322 -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages irssi depends on: ii libc6 2.7-14 GNU C Library: Shared libraries ii libglib2.0-0 2.16.6-1 The GLib library of C routines ii libncurses5 5.6+20080925-1 shared libraries for terminal hand ii libperl5.10 5.10.0-15 Shared Perl library ii libssl0.9.8 0.9.8g-13 SSL shared libraries ii perl 5.10.0-15 Larry Wall's Practical Extraction ii perl-base [perlapi-5.10.0 5.10.0-15 minimal Perl system irssi recommends no packages. Versions of packages irssi suggests: pn irssi-scripts <none> (no description available) -- no debconf information
diff -ru irssi_orig/src/fe-common/irc/fe-irc-messages.c irssi-0.8.12/src/fe-common/irc/fe-irc-messages.c --- irssi_orig/src/fe-common/irc/fe-irc-messages.c 2007-10-06 04:40:39.000000000 -0500 +++ irssi-0.8.12/src/fe-common/irc/fe-irc-messages.c 2008-03-25 21:32:05.000000000 -0500 @@ -43,6 +43,9 @@ int i = 0; const char *val, *chars; + if (!server) + return target; + /* Quick check */ if (server->prefix[(int)(unsigned char)*target] == 0) return target;