[email protected]
[Top] [All Lists]

Bug#342480: marked as forwarded (ircii: /set -irc_encoding segfaults)

Subject: Bug#342480: marked as forwarded ircii: /set -irc_encoding segfaults
From: Debian Bug Tracking System
Date: Wed, 07 Dec 2005 16:18:10 -0800
Your message dated Thu, 8 Dec 2005 01:09:48 +0100
with message-id <[email protected]>
has caused the Debian Bug report #342480,
regarding ircii: /set -irc_encoding segfaults
to be marked as having been forwarded to the upstream software
author(s) [email protected]

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at 342480-forwarded) by bugs.debian.org; 8 Dec 2005 00:09:55 +0000
>From [email protected] Wed Dec 07 16:09:55 2005
Return-path: <[email protected]>
Received: from quechua.inka.de
        ([] helo=mail.inka.de ident=mail)
        by spohr.debian.org with esmtp (Exim 4.50)
        id 1Ek9MA-0003wF-QX
        for [email protected]; Wed, 07 Dec 2005 16:09:55 -0800
Received: from calista.inka.de (p54a321c3.dip0.t-ipconnect.de [])
        by mail.inka.de with esmtpsa 
        id 1Ek9M5-0000Lt-Hz; Thu, 08 Dec 2005 01:09:49 +0100
Received: from ecki by calista.inka.de with local   (Exim 3.35 #1 (Debian))
        id 1Ek9M4-0006VO-00; Thu, 08 Dec 2005 01:09:48 +0100
Date: Thu, 8 Dec 2005 01:09:48 +0100
From: Bernd Eckenfels <[email protected]>
To: [email protected]
Cc: [email protected], [email protected]
Subject: [[email protected]: Bug#342480: ircii: /set -irc_encoding segfaults]
Message-ID: <[email protected]>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.5.9i
Sender: Bernd Eckenfels <[email protected]>
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-9.8 required=4.0 tests=BAYES_00,FROM_ENDS_IN_NUMS,
        HAS_BUG_NUMBER,HAS_PACKAGE autolearn=ham 

Hello Matthew,

I know you wanted to have a look into the prompt-issue (#337406), so if you 
plan a new
release, here is another error with fix, a kind debian user found (and 



Package: ircii
Version: 20051015-1
Severity: normal

Doing /set -irc_encoding command makes ircii segfault. Also set 
-display_encoding and set -input_encoding nukes.

I built a unstripped deb package and used the binary with gdb:

/set -irc_encoding
Program received signal SIGSEGV, Segmentation fault.
0x0fe5bad4 in strlen () from /lib/tls/libc.so.6
(gdb) bt
#0  0x0fe5bad4 in strlen () from /lib/tls/libc.so.6
#1  0x0fe006f0 in iconv_open () from /lib/tls/libc.so.6
#2  0x10046c74 in set_irc_encoding ()
#3  0x1004784c in set_var_value ()
#4  0x10047c3c in set_variable ()
#5  0x100153f4 in parse_command ()
#6  0x1001610c in parse_line ()
#7  0x100162a8 in send_line ()
#8  0x10014b18 in edit_char ()
#9  0x100270d4 in irc_io ()
#10 0x10027c64 in main ()

The bug is in source/translat.c functions set_irc_encoding, 
set_display_encoding and set_input_encoding. These functions pass the 
NULL 'enc' to iconv_open() that in turn passes the given pointer to 
strlen() -> boom.

Fix is simple, add check for NULL string pointer before passing the 
argument to iconv_open. Corresponding else-statement should probably NULL 
the matching _encoding variable (so user can really disable the 

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13-pegasos
Locale: [email protected], [email protected] (charmap=ISO-8859-15)

Versions of packages ircii depends on:
ii  libc6                         2.3.5-8    GNU C Library: Shared libraries an
ii  libncurses5                   5.5-1      Shared libraries for terminal hand

ircii recommends no packages.

-- no debconf information

----- End forwarded message -----

  (OO)     -- [email protected]örscher_Strasse_8.76185Karlsruhe.de --
 ( .. )    [email protected]{inka.de,linux.de,debian.org}  http://www.eckes.org/
  o--o   1024D/E383CD7E  [email protected]  v:+497211603874  f:+49721151516129
(O____O)  When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl!

To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

<Prev in Thread] Current Thread [Next in Thread>
  • Bug#342480: marked as forwarded (ircii: /set -irc_encoding segfaults), Debian Bug Tracking System <=