NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/54329: libedit: undefined terminal behavior in terminal_move_to_line (fix included)
The following reply was made to PR lib/54329; it has been noted by GNATS.
From: Valery Ushakov <uwe%stderr.spb.ru@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: lib/54329: libedit: undefined terminal behavior in
 terminal_move_to_line (fix included)
Date: Fri, 28 Jun 2019 02:09:18 +0300
 On Thu, Jun 27, 2019 at 05:05:01 +0000, knz%thaumogen.net@localhost wrote:
 
 > The algorithm for terminal_move_to_line() uses the DO termcap (aka
 > cud or parm_down_cursor), which produces undefined behavior when the
 > cursor is on the last line.
 
 Out of curiosity, is this a real problem, though?  Doesn't the code
 just above verify that "where" is within screen bounds?
 
 -uwe
 
Home |
Main Index |
Thread Index |
Old Index