#
344126 |
|
14-Feb-2019 |
se |
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.
|
#
302408 |
|
07-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
228582 |
|
16-Dec-2011 |
dim |
In libexec/getty/chat.c, replace && with & in chat_send(). The intent is to test if the CHATDEBUG_SEND bit is set in the chat_debug global.
MFC after: 1 week
|
#
216582 |
|
20-Dec-2010 |
charnier |
Add __unused. Ansi prototypes.
|
#
144716 |
|
06-Apr-2005 |
stefanf |
Include gettytab.h before extern.h so that the declarations of struct gettyflags, gettynums and gettystrs are available.
|
#
126952 |
|
14-Mar-2004 |
bde |
Fixed a misspelling of 0 as NULL.
|
#
108470 |
|
30-Dec-2002 |
schweikh |
Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/ Add FreeBSD Id tag where missing.
|
#
91214 |
|
25-Feb-2002 |
bde |
Removed unused include of <sys/resource.h> instead of depending on namespace pollution only 1 layer deep in <sys/stat.h> for its prerequisite <sys/time.h>
Removed other unused includes.
|
#
90301 |
|
06-Feb-2002 |
imp |
o __P removal o remove register o use strict prototypes
|
#
50476 |
|
27-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
#
31331 |
|
21-Nov-1997 |
charnier |
Correct incompletes .Xrs. Remove duplicate #includes and unused variables.
|
#
29003 |
|
01-Sep-1997 |
davidn |
Use cgetustr() since we handled special escapes ourselves. Fix typo in escape parsing function. PR: 4370 Submitted by: sumii@is.s.u-tokyo.ac.jp
|
#
22989 |
|
22-Feb-1997 |
peter |
Revert $FreeBSD$ to $Id$
|
#
22491 |
|
09-Feb-1997 |
davidn |
Tidy-up modem-chat handling: ensure tty modes are restored to 'sane' standard (not raw) settings before abort/exiting; move responsibility of setting raw mode for chat-handling out of chat.c to avoid doing redundant tc{s,g}etattr()s; move DE pause prior setting standard mode before issue/login prompt to avoid echoing modem connect strings. Fixed up comment styles in a couple of places.
|
#
22208 |
|
02-Feb-1997 |
davidn |
Added: ic=expect/send script modem init script ac=expect/send script modem answer script ct#val chat script timeout (seconds) rt#val recycle timeout (seconds) if 'ac' set dc#val debug bitmask for debugging chat scripts hw (boolean) enable crtscts handshaking if=path 'issue' file sent prior login prompt
chat.c is a simplistic expect/send chat module.
|