bug-zile
[Top][All Lists]
Advanced

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

Re: [Bug-zile] SIGSEGV in term_init


From: Reuben Thomas
Subject: Re: [Bug-zile] SIGSEGV in term_init
Date: Wed, 23 Nov 2011 19:34:35 +0000

On 23 November 2011 04:54, Mike Gran <address@hidden> wrote:
> 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);

Thanks very much; fix committed to git. In case tigetstr doesn't
return a value for kbs, it defaults to 0177.

I don't think this merits a new release, so I won't be making one just yet.

-- 
http://rrt.sc3d.org



reply via email to

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