1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-29 12:03:03 +00:00
freebsd/lib/libedit
Jilles Tjoelker fbdcf603c8 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
Submitted by:	Yuichiro NAITO
Obtained from:	NetBSD
MFC after:	1 week
2019-01-16 21:59:18 +00:00
..
edit/readline
TEST
chared.c
chared.h
chartype.c libedit: Avoid out of bounds read in 'bind' command 2019-01-16 21:59:18 +00:00
chartype.h libedit: improve multibyte support 2018-11-26 08:16:33 +00:00
common.c
config.h
editline.3
editrc.5
el.c libedit: improve multibyte support 2018-11-26 08:16:33 +00:00
el.h libedit: improve multibyte support 2018-11-26 08:16:33 +00:00
eln.c
emacs.c
filecomplete.c
filecomplete.h
hist.c
hist.h
histedit.h
history.c
keymacro.c
keymacro.h
Makefile libedit: sort the Makefile in line with NetBSD's version. 2018-01-29 22:38:23 +00:00
Makefile.depend
makelist
map.c
map.h
parse.c
parse.h
prompt.c
prompt.h
read.c libedit: improve multibyte support 2018-11-26 08:16:33 +00:00
read.h
readline.c
refresh.c
refresh.h
search.c
search.h
sig.c
sig.h
sys.h
terminal.c
terminal.h
tokenizer.c
tty.c
tty.h
vi.c