Date: Mon, 28 Oct 2019 12:29:35 -0700 From: Cy Schubert <Cy.Schubert@cschubert.com> To: Christoph Moench-Tegeder <cmt@FreeBSD.org> Cc: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: Re: svn commit: r515868 - in head/sysutils/screen: . files Message-ID: <201910281929.x9SJTZwS033110@slippy.cwsent.com> In-Reply-To: <201910281442.x9SEgLiu060721@repo.freebsd.org> References: <201910281442.x9SEgLiu060721@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <201910281442.x9SEgLiu060721@repo.freebsd.org>, Christoph Moench-Teg eder writes: > Author: cmt > Date: Mon Oct 28 14:42:21 2019 > New Revision: 515868 > URL: https://svnweb.freebsd.org/changeset/ports/515868 > > Log: > sysutils/screen: fix coredump on xterm/rxvt variants without Km > > On xterm- and rxvt-variants (and in some other cases) screen's > InitTermcap() tries to strdup() the terminals "Km" ("key_mouse") > termcap attribute - but that might be NULL, as some of these > terminals (notably rxvt and xterm-color) do not have "Km". Trying > to strdup() NULL results in segfault and coredump. > Catch that NULL and prevent the segfault. > > PR: 241538 > Reported by: Marcin Cieślak, Gareth de Vaux > Approved by: cy@ > > Modified: > head/sysutils/screen/Makefile > head/sysutils/screen/files/patch-termcap.c Thank you. -- Cheers, Cy Schubert <Cy.Schubert@cschubert.com> FreeBSD UNIX: <cy@FreeBSD.org> Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910281929.x9SJTZwS033110>