<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/contrib/libdiff, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-02-05T14:39:34Z</updated>
<entry>
<title>libdiff: Simplify truncation detection</title>
<updated>2026-02-05T14:39:34Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-02-05T14:39:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a689bfa4e25af8307709dc12f75b0e02a65abf18'/>
<id>urn:sha1:a689bfa4e25af8307709dc12f75b0e02a65abf18</id>
<content type='text'>
* Adjust the comment to reflect the fact that SIGBUS can occur not only
  if the file is truncated, but also if an I/O error occurs while paging
  in any part of it.

* Instead of setting a flag, just return EIO.

* Adjust the unit test accordingly.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	thj, kevans
Differential Revision:	https://reviews.freebsd.org/D55108
</content>
</entry>
<entry>
<title>libdiff: Implement diff coloring.</title>
<updated>2024-10-02T15:55:06Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-10-02T15:54:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4e859e67dde2cb4a583d340b27793a255f62f53e'/>
<id>urn:sha1:4e859e67dde2cb4a583d340b27793a255f62f53e</id>
<content type='text'>
This patch got accidentally left out when libdiff was imported.  The
rest of the code (command-line option etc.) was present, just not the
part that actually prints ANSI color codes.

Sponsored by:	Klara, Inc.
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D46873
</content>
</entry>
<entry>
<title>libdiff: Detect and recover from file truncation.</title>
<updated>2024-05-20T13:26:33Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-05-20T13:26:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=974ea6b297f8f9821bbb60670e2b90ba9989b283'/>
<id>urn:sha1:974ea6b297f8f9821bbb60670e2b90ba9989b283</id>
<content type='text'>
If a memory-mapped file is truncated before we get to the end, the
atomizer may catch SIGBUS.  Detect that, reduce the input length to
what we were actually able to read, and set a flag so the caller can
take further action (e.g. warn the user and / or start over).

Sponsored by:	Klara, Inc.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D45217
</content>
</entry>
<entry>
<title>libdiff: More type issues.</title>
<updated>2024-05-03T16:32:41Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-05-03T16:32:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b95e96028e5a53116462151aee8fda7523a68d09'/>
<id>urn:sha1:b95e96028e5a53116462151aee8fda7523a68d09</id>
<content type='text'>
Sponsored by:	Klara, Inc.
Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D45080
</content>
</entry>
<entry>
<title>libdiff: Fix type issues.</title>
<updated>2024-05-03T15:03:50Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-05-03T15:03:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0549218b43f028bb5bde430d7fcc6ead6843aa61'/>
<id>urn:sha1:0549218b43f028bb5bde430d7fcc6ead6843aa61</id>
<content type='text'>
MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	allanjude, markj
Differential Revision:	https://reviews.freebsd.org/D45077
</content>
</entry>
<entry>
<title>libdiff: Improve function prototype detection.</title>
<updated>2024-03-27T10:03:29Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-03-27T10:03:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5fbe8912d6a2d1178468d1994c301d4c7cd4f975'/>
<id>urn:sha1:5fbe8912d6a2d1178468d1994c301d4c7cd4f975</id>
<content type='text'>
- Recognize ObjC methods.
- Start searching within the leading context.

Sponsored by:	Klara, Inc.
Reviewed by:	thj
Differential Revision:	https://reviews.freebsd.org/D44301
</content>
</entry>
<entry>
<title>Add 'contrib/libdiff/' from commit '9eb461aa4b61ab47855b2cee9e5b626a76888b5e'</title>
<updated>2024-03-11T13:48:08Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-03-11T13:44:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=59c8e88e72633afbc47a4ace0d2170d00d51f7dc'/>
<id>urn:sha1:59c8e88e72633afbc47a4ace0d2170d00d51f7dc</id>
<content type='text'>
git-subtree-dir: contrib/libdiff
git-subtree-mainline: f6d489f402c320f1a6eaa473491a0b8c3878113e
git-subtree-split: 9eb461aa4b61ab47855b2cee9e5b626a76888b5e

Reviewed by:	imp
Sponsored by:	Klara, Inc.
</content>
</entry>
</feed>
