freebsd-src/libexec/getty
Stefan Eßer 2f22c225b1 MFC r343479: Fix potential buffer overflow and undefined behavior.
The buffer allocated in read_chat() could be 1 element too short, if the
chatstr parameter passed in is 1 or 3 charachters long (e.g. "a" or "a b").
The allocation of the pointer array does not account for the terminating
NULL pointer in that case.

Overlapping source and destination strings are undefined in strcpy().
Instead of moving a string to the left by one character just increment the
char pointer before it is assigned to the results array.
2019-02-14 15:41:05 +00:00
..
chat.c MFC r343479: Fix potential buffer overflow and undefined behavior. 2019-02-14 15:41:05 +00:00
extern.h Revert r330897: 2018-03-29 02:50:57 +00:00
getty.8
gettytab.5
gettytab.h Revert r330897: 2018-03-29 02:50:57 +00:00
init.c Revert r330897: 2018-03-29 02:50:57 +00:00
main.c Revert r330897: 2018-03-29 02:50:57 +00:00
Makefile
Makefile.depend
pathnames.h Revert r330897: 2018-03-29 02:50:57 +00:00
subr.c Revert r330897: 2018-03-29 02:50:57 +00:00
ttys.5 MFC r315733, r315737, r315740, r330054: 2018-05-18 14:57:58 +00:00