1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00
freebsd/usr.bin/patch
Pedro F. Giffuni c1a08643e3 patch: unsign the line length to avoid overflows.
Patch(1) uses a short int for the line length, which is usually
sufficient for regular diffs, but makes no effort to signal
when there is an overflow.

Change the line length to an unsigned short int to better use
the fact that a length is never negative.  The change is loosely
inspired on a related change in DragonFly, but we avoid spending
more memory than necessary.

While here adjust the messages to be clearer on what is happening.

MFC after:	1 week
2014-06-15 03:54:23 +00:00
..
backupfile.c
backupfile.h
common.h Various style(9) fixes and typos in grep, sort and patch. 2014-04-21 22:52:18 +00:00
inp.c
inp.h
Makefile Drop build option switch for the older GNU patch. 2013-08-29 00:38:24 +00:00
mkpath.c
patch.1 Avoid zeroing during allocation. 2014-06-12 19:01:57 +00:00
patch.c patch: unsign the line length to avoid overflows. 2014-06-15 03:54:23 +00:00
pathnames.h
pch.c patch: unsign the line length to avoid overflows. 2014-06-15 03:54:23 +00:00
pch.h patch: unsign the line length to avoid overflows. 2014-06-15 03:54:23 +00:00
util.c Improve bsdpatch usability: 2013-09-26 18:00:45 +00:00
util.h