Bug 91812

Summary: [patch] irssi crashes on amd64 with new malloc
Product: Ports & Packages Reporter: Giorgos Keramidas <keramida>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Giorgos Keramidas freebsd_committer freebsd_triage 2006-01-15 03:30:03 UTC
    The new malloc implementation of CURRENT exposes a bug in irssi's
    source.

Fix: Add the following patch to our local irssi patches
    collection.

    The missing prototype causes the function to default to a return
    type of `int', which is not large enough to hold pointer values on
    amd64.  This results in crashes when irssi tries to access addresses
    whose high bit has been trimmed (i.e. 0x803095c3 becomes 0x3095c3).

%%%
How-To-Repeat: 
    Build irc/irssi on a relatively recent CURRENT snapshot
    and type "/nick ".  The space character shouldn't appear
    at all and irssi will dump core.
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2006-01-15 09:01:02 UTC
State Changed
From-To: open->closed

Committed, thanks! Please make sure to submit the patch to irssi developers, too!
Comment 2 Giorgos Keramidas freebsd_committer freebsd_triage 2006-01-17 04:43:18 UTC
Adding to the audit trail, for anyone doing future imports of
irssi releases:

A bug has been filed with the same patch in irssi's bug
tracking system.  The bug report can be accessed at:

    http://bugs.irssi.org/index.php?do=details&id=367