NetBSD/external/bsd/nvi/dist/vi
rin 926200353e PR bin/55468
Fix crash due to out-of-bounds access with Ctrl-W.

PR is only for nottywerase, but also fix ttywerase case, taken from
OpenBSD via nvi2:

http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/vi/vi/v_txt.c#rev1.23
5d5365d358

Also, comment there is no worry for altwerase specific code, which
seems suspicious at a glance.

Reported by Azuma OKAMOTO.
Thanks for detailed explanation how to reproduce the problem!
2020-07-07 10:58:43 +00:00
..
getc.c
v_at.c
v_ch.c
v_cmd.c
v_delete.c
v_event.c
v_ex.c
v_increment.c
v_init.c
v_itxt.c
v_left.c
v_mark.c
v_match.c
v_paragraph.c
v_put.c
v_redraw.c
v_replace.c Add imctrl and imkey options, inspired by cannactrl and fepkey options in 2018-08-07 08:05:47 +00:00
v_right.c
v_screen.c
v_scroll.c
v_search.c
v_section.c
v_sentence.c Fix segmentation fault in corner case of backward sentence deletion, 2017-11-22 12:47:30 +00:00
v_status.c
v_txt.c PR bin/55468 2020-07-07 10:58:43 +00:00
v_ulcase.c
v_undo.c
v_util.c
v_word.c A boundary between single- and multi-width chars is regarded as a word boundary. 2017-11-21 07:43:47 +00:00
v_xchar.c
v_yank.c
v_z.c
v_zexit.c
vi.c Merge the [pgoyette-compat] branch 2019-01-27 02:08:33 +00:00
vi.h
vs_line.c Make sure that every wide char occupies at least one display width: 2018-06-03 08:08:36 +00:00
vs_msg.c
vs_refresh.c PR bin/53164: Comment why we abort here. 2018-04-10 12:44:41 +00:00
vs_relative.c Make sure that every wide char occupies at least one display width: 2018-06-03 08:08:36 +00:00
vs_smap.c
vs_split.c