CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2019/11/15 07:45:37
Modified files:
lib/libcurses/base: lib_redrawln.c
Log message:
Fix a segmentation fault in ncurses.
This is a backported patch [1] from ncurses-5.7-20100501. It takes begx
and begy values into account when calculating lengths, in order to avoid
writing data past the end of the buffer when calling memset in wredrawln().
>From upstream NEWS file:
20100501
+ correct limit-check in wredrawln, accounting for begy/begx values
(patch by David Benjamin).
[1] https://lists.gnu.org/archive/html/bug-ncurses/2010-04/msg00017.html
OK nicm@