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?
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net