freebsd-dev/usr.bin/patch
Pedro F. Giffuni a45060f0cc patch: Bring small updates from OpenBSD
Prevent null pointer dereference on empty input files when diff requires
a specific version.

Fix division by zero for files with long lines (> 1024) in Plan B mode
by supporting arbitrarily long lines.

Obtained from:	OpenBSD (CVS Rev 1.41, 1.42)
MFC after:	1 week
2015-04-07 18:06:46 +00:00
..
backupfile.c
backupfile.h
common.h patch(1): avoid line number overflows 2014-12-08 15:10:48 +00:00
inp.c patch: Bring small updates from OpenBSD 2015-04-07 18:06:46 +00:00
inp.h
Makefile Drop build option switch for the older GNU patch. 2013-08-29 00:38:24 +00:00
mkpath.c
patch.1 patch: add dry-run alias for compatibility with other implementations. 2014-06-15 16:38:17 +00:00
patch.c Fixes to exit status. 2014-12-31 16:30:33 +00:00
pathnames.h
pch.c patch: Bring in xstrdup and use it when appropriate. 2014-12-25 21:51:28 +00:00
pch.h patch: unsign the line length to avoid overflows. 2014-06-15 03:54:23 +00:00
util.c Fixes to exit status. 2014-12-31 16:30:33 +00:00
util.h patch: Bring in xstrdup and use it when appropriate. 2014-12-25 21:51:28 +00:00