freebsd-skq/usr.bin/patch
pfg 031b23ab31 MFC r267490:
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.
2014-06-22 20:24:17 +00:00
..
backupfile.c
backupfile.h
common.h MFC r264581, r264744: 2014-04-30 20:39:08 +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 MFC r267426, r267464: 2014-06-21 01:48:45 +00:00
patch.c MFC r267490: 2014-06-22 20:24:17 +00:00
pathnames.h
pch.c MFC r267490: 2014-06-22 20:24:17 +00:00
pch.h MFC r267490: 2014-06-22 20:24:17 +00:00
util.c Improve bsdpatch usability: 2013-09-26 18:00:45 +00:00
util.h