<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/libexec/getty/chat.c, branch releng/12.2</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>MFC r343479: Fix potential buffer overflow and undefined behavior.</title>
<updated>2019-02-09T14:21:29+00:00</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2019-02-09T14:21:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4af3ade922874be16a68ffddd7c5413d544a2040'/>
<id>4af3ade922874be16a68ffddd7c5413d544a2040</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Build getty(8) with WARNS=6.</title>
<updated>2018-02-21T15:57:24+00:00</updated>
<author>
<name>Edward Tomasz Napierala</name>
<email>trasz@FreeBSD.org</email>
</author>
<published>2018-02-21T15:57:24+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=18587b84c53f716a8e7220d2ecadafdad5eefd30'/>
<id>18587b84c53f716a8e7220d2ecadafdad5eefd30</id>
<content type='text'>
Reviewed by:	imp@
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D14197
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	imp@
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D14197
</pre>
</div>
</content>
</entry>
<entry>
<title>In libexec/getty/chat.c, replace &amp;&amp; with &amp; in chat_send().  The intent</title>
<updated>2011-12-16T15:44:12+00:00</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2011-12-16T15:44:12+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=50541c922e709424cff5d18ccb445d3b6bb3009e'/>
<id>50541c922e709424cff5d18ccb445d3b6bb3009e</id>
<content type='text'>
is to test if the CHATDEBUG_SEND bit is set in the chat_debug global.

MFC after:	1 week
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
is to test if the CHATDEBUG_SEND bit is set in the chat_debug global.

MFC after:	1 week
</pre>
</div>
</content>
</entry>
<entry>
<title>Add __unused. Ansi prototypes.</title>
<updated>2010-12-20T08:29:54+00:00</updated>
<author>
<name>Philippe Charnier</name>
<email>charnier@FreeBSD.org</email>
</author>
<published>2010-12-20T08:29:54+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=9f8c312911fa39e2ceeeafc41aa2838b5391ade3'/>
<id>9f8c312911fa39e2ceeeafc41aa2838b5391ade3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Include gettytab.h before extern.h so that the declarations of struct</title>
<updated>2005-04-06T17:42:24+00:00</updated>
<author>
<name>Stefan Farfeleder</name>
<email>stefanf@FreeBSD.org</email>
</author>
<published>2005-04-06T17:42:24+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=410f13a58d44e0f19306df28a99227015a2a688a'/>
<id>410f13a58d44e0f19306df28a99227015a2a688a</id>
<content type='text'>
gettyflags, gettynums and gettystrs are available.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
gettyflags, gettynums and gettystrs are available.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed a misspelling of 0 as NULL.</title>
<updated>2004-03-14T05:27:26+00:00</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>2004-03-14T05:27:26+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2dc8d58f59cea2ddb81d33315d788053cc29dcdf'/>
<id>2dc8d58f59cea2ddb81d33315d788053cc29dcdf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/</title>
<updated>2002-12-30T21:18:15+00:00</updated>
<author>
<name>Jens Schweikhardt</name>
<email>schweikh@FreeBSD.org</email>
</author>
<published>2002-12-30T21:18:15+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d64ada501ae33c02e7c4e3ce21962907df814a5a'/>
<id>d64ada501ae33c02e7c4e3ce21962907df814a5a</id>
<content type='text'>
Add FreeBSD Id tag where missing.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add FreeBSD Id tag where missing.
</pre>
</div>
</content>
</entry>
<entry>
<title>Removed unused include of &lt;sys/resource.h&gt; instead of depending on</title>
<updated>2002-02-25T02:18:36+00:00</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>2002-02-25T02:18:36+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=391a2becf119235471047fabab35d36523784b0c'/>
<id>391a2becf119235471047fabab35d36523784b0c</id>
<content type='text'>
namespace pollution only 1 layer deep in &lt;sys/stat.h&gt; for its
prerequisite &lt;sys/time.h&gt;

Removed other unused includes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
namespace pollution only 1 layer deep in &lt;sys/stat.h&gt; for its
prerequisite &lt;sys/time.h&gt;

Removed other unused includes.
</pre>
</div>
</content>
</entry>
<entry>
<title>o __P removal</title>
<updated>2002-02-06T16:38:40+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2002-02-06T16:38:40+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=95289b278a615ee45551c70f0ac343c7a8243f33'/>
<id>95289b278a615ee45551c70f0ac343c7a8243f33</id>
<content type='text'>
o remove register
o use strict prototypes
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
o remove register
o use strict prototypes
</pre>
</div>
</content>
</entry>
<entry>
<title>$Id$ -&gt; $FreeBSD$</title>
<updated>1999-08-28T00:22:10+00:00</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1999-08-28T00:22:10+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7f3dea244c40159a41ab22da77a434d7c5b5e85a'/>
<id>7f3dea244c40159a41ab22da77a434d7c5b5e85a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
