NetBSD/lib/libcurses
mrg ef48836c2e avoid accessing stack garbage.
on arm64eb resuming vi(1) would often crash.  in makech(), the 'csp'
variable is either set to current window data, or a local stack
variable's address '&blank'.  the window data has many lines of info
stored, and 'csp++' is used per line here.  unfortunately, a case
existed where 'csp++' operated on csp initialised from '&blank' which
eventually crashes when, on my display with 160 columns and 'csp + 155'
exceeds the mapped stack and crashes.

match the '!_cursesi_screen->curwin' conditional that initialises csp,
and avoid csp++ here.  assert() that csp != &blank in both places that
modify csp.

thanks to jdc@ and mlelstv@.

XXX: possibly also should avoid the putch() here as well.
2021-05-08 04:29:07 +00:00
..
EXAMPLES
PSD.doc
Makefile curses: Add stubs for mouse functions 2020-03-23 13:37:36 +00:00
acs.c
add_wch.c Rework previous fix for getch cursor position when cursor is moved 2019-06-09 07:40:14 +00:00
add_wchstr.c Rework previous fix for getch cursor position when cursor is moved 2019-06-09 07:40:14 +00:00
addbytes.c libcurses: fix wrong tab width for addch 2021-02-13 14:30:37 +00:00
addch.c Rework previous fix for getch cursor position when cursor is moved 2019-06-09 07:40:14 +00:00
addchnstr.c Rework previous fix for getch cursor position when cursor is moved 2019-06-09 07:40:14 +00:00
addnstr.c Rework previous fix for getch cursor position when cursor is moved 2019-06-09 07:40:14 +00:00
addwstr.c Rework previous fix for getch cursor position when cursor is moved 2019-06-09 07:40:14 +00:00
attributes.c #ifdef HAVE_WCHAR around enhanced curses stuff. 2019-07-25 20:18:50 +00:00
background.c wbkgd - when updating window rendition for the new background character, 2018-11-19 20:37:04 +00:00
bell.c
border.c
box.c
cchar.c setcchar - don't lose combining marks to a typo. 2020-07-02 23:43:01 +00:00
chgat.c
clear.c
clearok.c
clrtobot.c werase, wclrtobot, wclrtoeol - make code even more similar. 2020-03-15 01:18:43 +00:00
clrtoeol.c werase, wclrtobot, wclrtoeol - make code even more similar. 2020-03-15 01:18:43 +00:00
color.c
copywin.c Rework previous fix for getch cursor position when cursor is moved 2019-06-09 07:40:14 +00:00
cr_put.c Back out incorrect fix for PR 53617 and fix it in a different way. 2019-05-20 22:17:41 +00:00
ctrace.c __CTRACE - don't call gettimeofday() twice. 2018-10-29 00:31:57 +00:00
cur_hash.c
curs_set.c
curses.3 curses(3): add curses_version() 2019-09-02 09:08:29 +00:00
curses.c
curses.h curses.h: proofread, indent a bit more consistently 2021-02-13 10:37:00 +00:00
curses_addch.3 Rename curses_insertch.3 to curses_insch.3 to match the function names 2018-10-25 10:36:56 +00:00
curses_addchstr.3
curses_addstr.3 typo 2019-07-28 14:28:50 +00:00
curses_attributes.3 Rename curses_insertch.3 to curses_insch.3 to match the function names 2018-10-25 10:36:56 +00:00
curses_background.3 Correct function prototypes in curses_background(3) 2018-09-29 11:23:18 +00:00
curses_border.3
curses_cchar.3 Grammar improvements. 2018-11-24 11:04:39 +00:00
curses_chgat.3
curses_clear.3 At some point we lost the text that explains the difference between 2019-01-11 06:14:39 +00:00
curses_color.3
curses_cursor.3
curses_default_colors.3
curses_delch.3 Rename curses_insertch.3 to curses_insch.3 to match the function names 2018-10-25 10:36:56 +00:00
curses_deleteln.3
curses_echochar.3
curses_fileio.3
curses_inch.3 Add comma in enumeration. 2018-10-29 21:06:13 +00:00
curses_input.3
curses_insch.3 Oops, update name in .Dt, bump date. 2018-10-25 10:41:00 +00:00
curses_insdelln.3
curses_insertln.3
curses_keyname.3
curses_line.3
curses_mouse.3 Fix synopsis, use more markup. 2020-03-23 16:14:20 +00:00
curses_pad.3
curses_print.3
curses_private.h __NEED_ERASE - don't shadow __LDATA::attr with macro parameter name. 2020-03-15 01:12:47 +00:00
curses_refresh.3
curses_scanw.3
curses_screen.3 curses_screen.3: fix typo 2021-02-07 23:00:57 +00:00
curses_scroll.3
curses_slk.3 Fix the documented function prototype of slk_attr_set(3) 2018-09-29 22:04:57 +00:00
curses_standout.3
curses_termcap.3
curses_touch.3
curses_tty.3
curses_underscore.3 Fix function prototypes in curses_underscore.3 2018-09-29 21:52:29 +00:00
curses_version.3 curses(3): add curses_version() 2019-09-02 09:08:29 +00:00
curses_window.3
delch.c Rework previous fix for getch cursor position when cursor is moved 2019-06-09 07:40:14 +00:00
deleteln.c
delwin.c printw: rework vw_printw so it uses open_memstream rather than funopen2 2019-04-01 11:39:15 +00:00
echo_wchar.c Drop HAVE_WCHAR ifdefs from code that is not even compiled with !HAVE_WCHAR. 2018-11-22 22:16:45 +00:00
echochar.c
erase.c werase, wclrtobot, wclrtoeol - make code even more similar. 2020-03-15 01:18:43 +00:00
fileio.c 0x%p --> %p for non-external codes. 2020-02-24 12:20:29 +00:00
fileio.h Fix return for mvscanw to return ERR/OK instead of the number of 2019-06-30 22:16:20 +00:00
flushok.c
fullname.c
genfileioh.awk
get_wch.c Pads are not to be automatically refreshed on input. 2020-07-06 23:33:38 +00:00
get_wstr.c Rework previous fix for getch cursor position when cursor is moved 2019-06-09 07:40:14 +00:00
getch.c Pads are not to be automatically refreshed on input. 2020-07-06 23:33:38 +00:00
getstr.c Rework previous fix for getch cursor position when cursor is moved 2019-06-09 07:40:14 +00:00
getyx.c
id_subwins.c
idcok.c
idlok.c
immedok.c
in_wch.c Rework previous fix for getch cursor position when cursor is moved 2019-06-09 07:40:14 +00:00
in_wchstr.c Rework previous fix for getch cursor position when cursor is moved 2019-06-09 07:40:14 +00:00
inch.c Rework previous fix for getch cursor position when cursor is moved 2019-06-09 07:40:14 +00:00
inchstr.c Rework previous fix for getch cursor position when cursor is moved 2019-06-09 07:40:14 +00:00
initscr.c curses: use perror rather than err in initscr 2020-03-12 15:50:11 +00:00
ins_wch.c mvwins*(WINDOW *win, ...) functions - call wins* on win, not stdscr. 2020-07-06 22:46:50 +00:00
ins_wstr.c mvwins*(WINDOW *win, ...) functions - call wins* on win, not stdscr. 2020-07-06 22:46:50 +00:00
insch.c mvwins*(WINDOW *win, ...) functions - call wins* on win, not stdscr. 2020-07-06 22:46:50 +00:00
insdelln.c
insertln.c
insstr.c mvwins*(WINDOW *win, ...) functions - call wins* on win, not stdscr. 2020-07-06 22:46:50 +00:00
instr.c Rework previous fix for getch cursor position when cursor is moved 2019-06-09 07:40:14 +00:00
inwstr.c Rework previous fix for getch cursor position when cursor is moved 2019-06-09 07:40:14 +00:00
keymap.h
keyname.c Fix typo for unknown key keyname return. 2019-06-11 10:17:24 +00:00
keypad.c
leaveok.c
line.c hline, vline - don't lose attributes when using default character. 2020-07-01 02:57:01 +00:00
meta.c
mouse.c curses: Add stubs for mouse functions 2020-03-23 13:37:36 +00:00
move.c Rework previous fix for getch cursor position when cursor is moved 2019-06-09 07:40:14 +00:00
mvwin.c
newwin.c newwin - fix crash with negative ncols. 2020-07-14 04:39:39 +00:00
nodelay.c
notimeout.c
overlay.c
overwrite.c
pause.c
printw.c Rework previous fix for getch cursor position when cursor is moved 2019-06-09 07:40:14 +00:00
putchar.c Back out incorrect fix for PR 53617 and fix it in a different way. 2019-05-20 22:17:41 +00:00
refresh.c avoid accessing stack garbage. 2021-05-08 04:29:07 +00:00
resize.c Remove obsolete clauses from copyright block. Original copyright was 2018-11-02 04:17:39 +00:00
ripoffline.c curses: resize ripped off windows 2018-10-03 13:22:29 +00:00
scanw.c Fix return for mvscanw to return ERR/OK instead of the number of 2019-06-30 22:16:20 +00:00
screen.c Fix for PR lib/52063 2018-11-16 10:12:00 +00:00
scroll.c Rework previous fix for getch cursor position when cursor is moved 2019-06-09 07:40:14 +00:00
scrollok.c
setterm.c Ignore terminfo padding specifications when checking whether 2018-10-26 22:22:24 +00:00
shlib_version terminfo: promote numeric parameters from short to int 2020-03-13 15:19:24 +00:00
slk.c __slk_set_finalise - fix length vs. width confusion 2019-07-28 00:51:59 +00:00
standout.c
syncok.c
timeout.c
toucholap.c
touchwin.c wtouchln - verify/clip input parameters 2020-07-03 23:28:51 +00:00
tscroll.c
tstp.c curses: don't optimize stdout buffer for non BSD platforms 2018-10-18 07:53:13 +00:00
tty.c Fix for PR lib/52063 2018-11-16 10:12:00 +00:00
unctrl.c
unctrl.h
underscore.c
version.c curses: believe in unicorns 2019-09-03 13:43:34 +00:00