]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r343105: libedit: Avoid out of bounds read in 'bind' command
authorJilles Tjoelker <jilles@FreeBSD.org>
Thu, 24 Jan 2019 22:34:30 +0000 (22:34 +0000)
committerJilles Tjoelker <jilles@FreeBSD.org>
Thu, 24 Jan 2019 22:34:30 +0000 (22:34 +0000)
commitdc759c512e1053cfdf39349bb1f148607516f152
tree3dadbcb1d9b14d2eb070ef8e0e58473a9e00abe3
parent0f031f003249037ae73c58c81c6c24d076ba9251
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