irssi-import / bugs.irssi.org

bugs.irssi.org archive
https://github.com/irssi/irssi/issues
0 stars 0 forks source link

SegFault when executing bind command #817

Open irssibot opened 12 years ago

irssibot commented 12 years ago

Arch Linux 2.6.39-ARCH x86_64 AMD Athlon(tm) 64 Processor 3200+ AuthenticAMD Gnome 3.0.2 tmux 1.5 urxvt 9.12

executing the command '/bind cleft key meta' causes irssi to segfault

irssibot commented 12 years ago

Reproduced with 0.8.15 and latest svn on OSX10.7.

The crash seems to be the result of a mutually recursive loop between expand_combo() and expand_key() which eventually (stack depth 512) segfaults from inside g_strndup/malloc. The fact that cleft is defined internally as a binding with a prefix of meta2 (which has a prefix of meta) might be related?