<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/bsdiff, branch release/13.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F13.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F13.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2020-11-16T18:41:49Z</updated>
<entry>
<title>bsdiff: fix off-by-one error</title>
<updated>2020-11-16T18:41:49Z</updated>
<author>
<name>Mitchell Horne</name>
<email>mhorne@FreeBSD.org</email>
</author>
<published>2020-11-16T18:41:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a521f2116473fbd8c09db395518f060a27d02334'/>
<id>urn:sha1:a521f2116473fbd8c09db395518f060a27d02334</id>
<content type='text'>
The program reads oldsize bytes from oldfile, and proceeds to initialize
a suffix array of oldsize elements using divsufsort(). As per the
function's API [1], array indices 0 through n-1 are initialized.

Later, search() is called, but with index bounds [0, n]. Depending on
the contents of the malloc'd buffer, accessing this uninitialized index
at the end of can result in a segmentation fault. Fix this by passing
oldsize-1 to search(), limiting the search bounds to [0, n-1].

This bug is a result of r303285, which introduced divsufsort() as an
alternate suffix sorting function to the existing qsufsort(). It seems
that qsufsort() did initialize the final empty element, meaning it could
be safely accessed. This difference in the implementations was missed at
the time.

[1] https://github.com/y-256/libdivsufsort

Discussed with:	cperciva
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D26911
</content>
</entry>
<entry>
<title>bspatch: add integer overflow checks</title>
<updated>2019-09-26T13:27:25Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2019-09-26T13:27:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=20bd59416dcacbd2b776fe49dfa193900f303287'/>
<id>urn:sha1:20bd59416dcacbd2b776fe49dfa193900f303287</id>
<content type='text'>
Introduce a new add_off_t static function that exits with an error
message if there's an overflow, otherwise returns their sum.  Use this
when adding values obtained from the input patch.

Reviewed by:	delphij, allanjude (earlier)
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D7897
</content>
</entry>
<entry>
<title>errno.h is no longer needed as of r340239 so remove it.</title>
<updated>2019-07-18T07:37:26Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2019-07-18T07:37:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9344e4d73860cfcf943e716de9aa7f19f8e26838'/>
<id>urn:sha1:9344e4d73860cfcf943e716de9aa7f19f8e26838</id>
<content type='text'>
No MFC planned as that revision was not merged.
</content>
</entry>
<entry>
<title>Remove support for FreeBSD 10.x.</title>
<updated>2019-07-18T07:26:30Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2019-07-18T07:26:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c93b6e5fa24ba172ab271432c6692f9cc604e15a'/>
<id>urn:sha1:c93b6e5fa24ba172ab271432c6692f9cc604e15a</id>
<content type='text'>
MFC after:	1 month
</content>
</entry>
<entry>
<title>bspatch: simplify capsicumization</title>
<updated>2018-11-07T21:01:14Z</updated>
<author>
<name>Mariusz Zaborski</name>
<email>oshogbo@FreeBSD.org</email>
</author>
<published>2018-11-07T21:01:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a25896ca1270e25b657ceaa8d47d5699515f5c25'/>
<id>urn:sha1:a25896ca1270e25b657ceaa8d47d5699515f5c25</id>
<content type='text'>
Assume that user wants to run with capsicum support if he builds the software
with HAVE_CAPSICUM. Treat running application without capsicum in the kernel as
an error.

MFC after:	3 weeks
</content>
</entry>
<entry>
<title>various: general adoption of SPDX licensing ID tags.</title>
<updated>2017-11-27T15:37:16Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-11-27T15:37:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1de7b4b805ddbf2429da511c053686ac4591ed89'/>
<id>urn:sha1:1de7b4b805ddbf2429da511c053686ac4591ed89</id>
<content type='text'>
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

No functional change intended.
</content>
</entry>
<entry>
<title>DIRDEPS_BUILD: Update dependencies.</title>
<updated>2017-10-31T00:07:04Z</updated>
<author>
<name>Bryan Drewery</name>
<email>bdrewery@FreeBSD.org</email>
</author>
<published>2017-10-31T00:07:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ea825d02749f382c3f7e17f28247f20a48733eab'/>
<id>urn:sha1:ea825d02749f382c3f7e17f28247f20a48733eab</id>
<content type='text'>
Sponsored by:	Dell EMC Isilon
</content>
</entry>
<entry>
<title>Revert debugging that was accidently committed in r316314</title>
<updated>2017-03-31T03:11:25Z</updated>
<author>
<name>Allan Jude</name>
<email>allanjude@FreeBSD.org</email>
</author>
<published>2017-03-31T03:11:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f901525697b8282ee9ec14b9de6400afab61750e'/>
<id>urn:sha1:f901525697b8282ee9ec14b9de6400afab61750e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix top(1) ZFS compressed ARC support</title>
<updated>2017-03-31T03:08:07Z</updated>
<author>
<name>Allan Jude</name>
<email>allanjude@FreeBSD.org</email>
</author>
<published>2017-03-31T03:08:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8554754c7bbe3cda171378ad6305bbe8a1a94cb6'/>
<id>urn:sha1:8554754c7bbe3cda171378ad6305bbe8a1a94cb6</id>
<content type='text'>
top(1) read the wrong amount of data from sysctl, uint64_t instead of
boolean_t, resulting in the stats not showing in many cases.

X-MFC-With:	r315435
Sponsored by:	ScaleEngine Inc.
</content>
</entry>
<entry>
<title>Adopt SRCTOP in usr.bin</title>
<updated>2017-03-12T18:58:44Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2017-03-12T18:58:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a35f04fba2ebb8f86d4cbdc710c89a094572b08e'/>
<id>urn:sha1:a35f04fba2ebb8f86d4cbdc710c89a094572b08e</id>
<content type='text'>
Prefer ${SRCTOP}/foo over ${.CURDIR}/../../foo and ${SRCTOP}/usr.bin/foo
over ${.CURDIR}/../foo for paths in Makefiles.

Differential Revision:	https://reviews.freebsd.org/D9932
Sponsored by:		Netflix
Silence on:		arch@ (twice)
</content>
</entry>
</feed>
