Module Name: src Committed By: rin Date: Tue Jul 7 10:58:43 UTC 2020
Modified Files: src/external/bsd/nvi/dist/vi: v_txt.c Log Message: 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 https://github.com/lichray/nvi2/commit/5d5365d3585f45651f9b4a366391798a91393337 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! To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/external/bsd/nvi/dist/vi/v_txt.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.