Re: [screen-devel] [PATCH] Fix coredump on xterm and rxvt

2019-12-28 Thread Amadeusz Sławiński
On Tue, 5 Nov 2019 15:32:10 + Marcin Cieślak wrote: > From: Christoph Moench-Tegeder > > Here's the rub: with TERM=xterm (or rxvt, for that matter), Km > ("key_mouse", "Mouse event has occured") is not set (and therefore > NULL), but InitTermcap() (termcap.c:230) happily tries to strdup()

[screen-devel] [PATCH] Fix coredump on xterm and rxvt

2019-11-05 Thread Marcin Cieślak
From: Christoph Moench-Tegeder Here's the rub: with TERM=xterm (or rxvt, for that matter), Km ("key_mouse", "Mouse event has occured") is not set (and therefore NULL), but InitTermcap() (termcap.c:230) happily tries to strdup() that, which gets us that segfault. As a band-aid, catch that NULL an