On Mon, Mar 07, 2011 at 06:41:00 -0500, 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? >
rtorrent is the one I've found so far, but I'd be shocked if its the only one. I haven't done much testing. Irssi and mutt don't die. -- Jon X(7): A program for managing terminal windows. See also screen(1).
signature.asc
Description: Digital signature