Your message dated Sat, 12 Jul 2025 20:33:53 +0200 with message-id <[email protected]> and subject line Re: Bug#342480: ircii: /set -irc_encoding segfaults has caused the Debian Bug report #342480, regarding ircii: /set -irc_encoding segfaults to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 342480: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=342480 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---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 () (gdb) 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 encoding). -- 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: LANG=fi_FI@euro, LC_CTYPE=fi_FI@euro (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 Message ---
--- Begin Message ---Source: ircii Source-Version: 20060725-1 On Wed, Dec 07, 2005 at 11:11:26PM +0200, Harry Sintonen wrote: > Doing /set -irc_encoding command makes ircii segfault. Also set > -display_encoding and set -input_encoding nukes. Per upstream: Changes in ircII 20060725: o /set translation has been removed. all encoding support now depends on the existance of iconv(3) support, enhancing the capabilities and correctness of codeset conversion. the translation and iso2022_support variables have been replaced with input_encoding, display_encoding and irc_encoding
--- End Message ---

