<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/patch, branch stable/10</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>MFC r319676:</title>
<updated>2017-06-18T21:48:33+00:00</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-06-18T21:48:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6f9970cd9c8db03da1a72148d47f43dd13cc172d'/>
<id>6f9970cd9c8db03da1a72148d47f43dd13cc172d</id>
<content type='text'>
patch: if reading fails, do not go into infinite loop asking for a filename.

This can happen if no tty is available.

Obtained from:	OpenBSD (CVS rev 1.54)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
patch: if reading fails, do not go into infinite loop asking for a filename.

This can happen if no tty is available.

Obtained from:	OpenBSD (CVS rev 1.54)
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r306560, r306561:</title>
<updated>2016-10-09T20:13:53+00:00</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-10-09T20:13:53+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2956f8f9faeb079a9f0dafe9f5f6265c9e52e594'/>
<id>2956f8f9faeb079a9f0dafe9f5f6265c9e52e594</id>
<content type='text'>
patch(1): make some macros look boolean.

Minor cleanup inspired by a new patch(1) variant in schily tools.

For reference:
https://sourceforge.net/p/schillix-on/
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
patch(1): make some macros look boolean.

Minor cleanup inspired by a new patch(1) variant in schily tools.

For reference:
https://sourceforge.net/p/schillix-on/
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r298530:</title>
<updated>2016-04-29T02:56:03+00:00</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-04-29T02:56:03+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e0781963ef12d020bb44cef17224a0d5e6dd6aaf'/>
<id>e0781963ef12d020bb44cef17224a0d5e6dd6aaf</id>
<content type='text'>
patch(1): avoid signed integer overflow when debugging.

Integer i is used to index p_end of type LINENUM (actually long).
Match the types.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
patch(1): avoid signed integer overflow when debugging.

Integer i is used to index p_end of type LINENUM (actually long).
Match the types.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r289677:</title>
<updated>2016-01-07T00:40:51+00:00</updated>
<author>
<name>Bryan Drewery</name>
<email>bdrewery@FreeBSD.org</email>
</author>
<published>2016-01-07T00:40:51+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2a178238de949d3a5b2d886b0fae9611edfb3ac1'/>
<id>2a178238de949d3a5b2d886b0fae9611edfb3ac1</id>
<content type='text'>
  Fix a ton of speelling errors
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  Fix a ton of speelling errors
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r281800 (pfg):</title>
<updated>2015-08-27T21:52:09+00:00</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2015-08-27T21:52:09+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=abdb175bff569c8cd80a2d1e27e4b20aa1da8b69'/>
<id>abdb175bff569c8cd80a2d1e27e4b20aa1da8b69</id>
<content type='text'>
patch(1): small include changes.

Mostly to match OpenBSD, no functional change.

MFC r286601 + 286617:

use posix_spawn(3) instead of fork() and exec() manually as suggested
by jmg@.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
patch(1): small include changes.

Mostly to match OpenBSD, no functional change.

MFC r286601 + 286617:

use posix_spawn(3) instead of fork() and exec() manually as suggested
by jmg@.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix patch(1) shell injection vulnerability via ed(1). [SA-15:18]</title>
<updated>2015-08-05T22:05:02+00:00</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2015-08-05T22:05:02+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6bcc74dfb82b4c42f0a3579284a755aa1a32d77a'/>
<id>6bcc74dfb82b4c42f0a3579284a755aa1a32d77a</id>
<content type='text'>
Fix routed remote denial of service vulnerability. [SA-15:19]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix routed remote denial of service vulnerability. [SA-15:19]
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix patch(1) shell injection vulnerability. [SA-15:14]</title>
<updated>2015-07-28T19:58:44+00:00</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2015-07-28T19:58:44+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b993ace456102e258bb37f92460703e904949f00'/>
<id>b993ace456102e258bb37f92460703e904949f00</id>
<content type='text'>
Fix resource exhaustion in TCP reassembly. [SA-15:15]

Fix OpenSSH multiple vulnerabilities. [SA-15:16]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix resource exhaustion in TCP reassembly. [SA-15:15]

Fix OpenSSH multiple vulnerabilities. [SA-15:16]
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC	r276218:</title>
<updated>2015-01-08T03:44:54+00:00</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2015-01-08T03:44:54+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=c56f3a33d69d3e407fdaa7f13cc732457248666d'/>
<id>c56f3a33d69d3e407fdaa7f13cc732457248666d</id>
<content type='text'>
patch: Bring in xstrdup and use it when appropriate.

The function savestr allows NULL return values during Plan A patching so in
case of out of memory conditions, Plan B can step in.  In many cases, NULL
value is not properly handled, so use xstrdup here (it's outside Plan A/B
patching, which means that even Plan B relies on successful operations).

Clean up some whitespaces while here

Obtained from:	OpenBSD
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
patch: Bring in xstrdup and use it when appropriate.

The function savestr allows NULL return values during Plan A patching so in
case of out of memory conditions, Plan B can step in.  In many cases, NULL
value is not properly handled, so use xstrdup here (it's outside Plan A/B
patching, which means that even Plan B relies on successful operations).

Clean up some whitespaces while here

Obtained from:	OpenBSD
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC	r276472:</title>
<updated>2015-01-05T16:09:51+00:00</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2015-01-05T16:09:51+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3d0df56b3f668d8b03a3ba8a25a4724e3a59ab03'/>
<id>3d0df56b3f668d8b03a3ba8a25a4724e3a59ab03</id>
<content type='text'>
Minor fixes to exit status.

Exit with EXIT_FAILURE for invalid arguments.
Fixes NetBSD-PR 43517.

Print version string to stdout instead of stderr;
it is user-requested and not an error.

Obtained from:	NetBSD
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Minor fixes to exit status.

Exit with EXIT_FAILURE for invalid arguments.
Fixes NetBSD-PR 43517.

Print version string to stdout instead of stderr;
it is user-requested and not an error.

Obtained from:	NetBSD
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC	r275553, r275612;</title>
<updated>2014-12-16T21:13:55+00:00</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2014-12-16T21:13:55+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1c54dd5f7a09460fdf21615991941e167388534f'/>
<id>1c54dd5f7a09460fdf21615991941e167388534f</id>
<content type='text'>
patch(1): Bring fixes from OpenBSD

Check fstat return value.  Use off_t for file size and offsets.
Avoid iterating over end of string.

Introduce strtolinenum to properly check line numbers while parsing:
no signs, no spaces, just digits, 0 &lt;= x &lt;= LONG_MAX

Properly validate line ranges supplied in diff file to prevent overflows.
Also fixes an out of boundary memory access because the resulting values
are used as array indices.

PR:		195436
Obtained from:	OpenBSD
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
patch(1): Bring fixes from OpenBSD

Check fstat return value.  Use off_t for file size and offsets.
Avoid iterating over end of string.

Introduce strtolinenum to properly check line numbers while parsing:
no signs, no spaces, just digits, 0 &lt;= x &lt;= LONG_MAX

Properly validate line ranges supplied in diff file to prevent overflows.
Also fixes an out of boundary memory access because the resulting values
are used as array indices.

PR:		195436
Obtained from:	OpenBSD
</pre>
</div>
</content>
</entry>
</feed>
