]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r343105: libedit: Avoid out of bounds read in 'bind' command
authorjilles <jilles@FreeBSD.org>
Fri, 25 Jan 2019 22:52:49 +0000 (22:52 +0000)
committerjilles <jilles@FreeBSD.org>
Fri, 25 Jan 2019 22:52:49 +0000 (22:52 +0000)
commitf34f976a8580b04520748dd693120fc9e5a06cd6
treed2153935798eddd379f75c7c12d4a4eedb082bbf
parentbfb1323a075dc3535d422570b54cca62c5a54ffb
MFC r343105: libedit: Avoid out of bounds read in 'bind' command

This is CVS revision 1.31 from NetBSD lib/libedit/chartype.c:
Make sure that argv is NULL terminated since functions like tty_stty rely
on it to be so (Gerry Swinslow)

This broke when the wide-character support was enabled in libedit. The
conversion from multibyte to wide-character did not supply the apparently
expected terminating NULL in the new argv array.

PR: 233343
lib/libedit/chartype.c