svn commit: r515868 - in head/sysutils/screen: . files

Cy Schubert Cy.Schubert at cschubert.com
Mon Oct 28 19:30:00 UTC 2019


In message <201910281442.x9SEgLiu060721 at 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 at cschubert.com>
FreeBSD UNIX:  <cy at FreeBSD.org>   Web:  http://www.FreeBSD.org

	The need of the many outweighs the greed of the few.




More information about the svn-ports-head mailing list