bug-zile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-zile] SIGSEGV in term_init


From: Mike Gran
Subject: [Bug-zile] SIGSEGV in term_init
Date: Tue, 22 Nov 2011 20:54:31 -0800 (PST)

Hi,

In zile-2.4.2, in term_curses.c in term_init(), the call to
tigetstr(capname)
can return NULL if CAPNAME is not a capability of the terminal.
Such as when zile is called from within emacs's eshell.

In this case, the following line

assert (strlen (kbs) == 1);

can SIGSEGV by calling strlen on NULL.

SHould probably be

assert (kbs && strlen (kbs) == 1);

-Mike Gran




reply via email to

[Prev in Thread] Current Thread [Next in Thread]