CVSROOT: /cvs Module name: src Changes by: [email protected] 2017/07/26 06:10:56
Modified files:
lib/libedit : refresh.c
Log message:
Initialize "old" screen buffer lines before use; otherwise, they would
never get NUL-terminated and cause read buffer overruns.
This fixes for example segfaults in sftp(1) that could be triggered
by typing in an extremely long string (more than one line - the longer,
the likelier to crash), then hitting backspace once.
Problem reported and patch OK'ed by sthen@.
