Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-9] src/external/bsd/nvi/dist/vi



Module Name:    src
Committed By:   martin
Date:           Tue Jul  7 19:50:12 UTC 2020

Modified Files:
        src/external/bsd/nvi/dist/vi [netbsd-9]: v_txt.c

Log Message:
Pull up following revision(s) (requested by rin in ticket #988):

        external/bsd/nvi/dist/vi/v_txt.c: revision 1.7

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.6.2.1 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.




Home | Main Index | Thread Index | Old Index