bug-ncurses
[Top][All Lists]
Advanced

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

Recursion in _nc_wgetch (ncurses 5.3)


From: R . Chamberlin
Subject: Recursion in _nc_wgetch (ncurses 5.3)
Date: Fri, 20 Dec 2002 16:55:47 -0000

You may have already found this one, but an ncurses 5.3 app 
blows up with infinite recursion in _nc_wgetch in v5.3 if you redirect 
stdin, stdout and stderr on some platforms (notably SCO and 
Unixware).

This is because of the cooked mode handling:

just after logging "filling queue in cooked mode", 
ncurses makes a called to wgetnstr - a somewhat stupid thing to 
do if wgetnstr calls straight back to wgetch.

I must admit I haven't followed the logic of why you would want to 
do this - I would guess there is some cooked mode handing in 
wgetnstr, but it seems to be broken on Sco/Unixware.

Anyway #if 0ing out the code fixes it, although I figured I should 
report the issue to you.

Rod Chamberlin.

Technical Director, Querix(UK) Ltd.
36A London Road, Southampton SO15 2TH UK
Phone: +44 23 8023 2345, Fax: +44 23 8078 1353
Email: address@hidden 

------------------------------------------------------------------------
The information transmitted is intended only for the person or entity to
which it is addressed.  It contains information which is confidential
and may be proprietary or covered by legal professional privilege. If an
addressing or transmission error has misdirected this e-mail, please
notify the author by replying to this e-mail, and delete this message.  
Unless you are the intended recipient, you must not use, disclose, 
distribute, copy, print or relay on this e-mail.



reply via email to

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