Irssi core bugs

Notice: Undefined index: tasklist_type in /var/www/bugs.irssi.org/includes/class.tpl.php(128) : eval()'d code on line 85 Notice: Undefined index: tasklist_type in /var/www/bugs.irssi.org/includes/class.tpl.php(128) : eval()'d code on line 90
  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category core
  • Assigned To No-one
  • Operating System Linux
  • Severity Medium
  • Priority Normal
  • Reported Version irssi 0.8.15
  • Due in Version Undecided
  • Due Date Undecided
  • Votes 0
  • Private No
Attached to Project: Irssi core bugs
Opened by Robert (robert) - 2012-06-22

FS#871 - Segfault when Irssi::Windowitem::print is called with undefined window item

Arch Linux x86_64

Replicate with this script:

use Irssi;

sub cmd {
my ($data, $server, $witem) = @_;
Irssi::Windowitem::print($witem, "text");
}

Irssi::command_bind("testcmd", "cmd");

If you send /testcmd from the status window (undefined $witem) Irssi crashes with a segmentation fault.

The right thing to do here, of course, is to use if !$witem {Irssi::print();} but it shouldn't be crashing like that, right?

This task does not depend on any other tasks.

Robert (robert)
Friday, 22 June 2012, 20:53 GMT
Similar segmentation fault crash with:

use Irssi;

sub test {
my ($dest, $text, $stripped) = @_;
Irssi::print($dest->{window});
}

Irssi::signal_add('print text', 'test');

Loading...