severity 617210 serious
thanks

On 2011-03-07 12:41 +0100, Thomas Dickey wrote:

> On Mon, 7 Mar 2011, Jon wrote:
>
>> Package: libncurses5
>> Version: 5.8-1
>> Severity: important
>>
>>
>> The API for newwin() is documented as:
>>
>>       Calling  newwin creates and returns a pointer to a new window with the 
>> given number of lines and columns.  The upper left-hand corner of the window
>>       is at line begin_y, column begin_x.  If either nlines or ncols is 
>> zero, they default to LINES - begin_y and COLS - begin_x.  A new full-screen 
>> win‐
>>       dow is created by calling newwin(0,0,0,0).
>>
>> But starting with ncurses 5.8, ncurses/base/lib_newwin.c has the following 
>> code on line 144:
>>
>>    if (begy < 0 || begx < 0 || num_lines <= 0 || num_columns <= 0)
>>        returnWin(0);
>>
>> This causes a call of newwin(0,0,0,0) to return an error.
>
> yes... I made the change because of a core dump (as called from
> dialog, which assumed the window had rows/columns).
>
> Which applications are making newwin(0,0,0,0) calls?

Newsbeuter does (via libstfl), segfaulting in the process because stfl
does not expect this to return a null pointer:
http://bugs.debian.org/616711.

Sven



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to