aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/patch/common.h
Commit message (Collapse)AuthorAgeFilesLines
* MFC r306560, r306561:Pedro F. Giffuni2016-10-091-4/+3
| | | | | | | | | | | | patch(1): make some macros look boolean. Minor cleanup inspired by a new patch(1) variant in schily tools. For reference: https://sourceforge.net/p/schillix-on/ Notes: svn path=/stable/10/; revision=306914
* Fix patch(1) shell injection vulnerability. [SA-15:14]Xin LI2015-07-281-4/+2
| | | | | | | | | Fix resource exhaustion in TCP reassembly. [SA-15:15] Fix OpenSSH multiple vulnerabilities. [SA-15:16] Notes: svn path=/stable/10/; revision=285976
* MFC r275553, r275612;Pedro F. Giffuni2014-12-161-0/+1
| | | | | | | | | | | | | | | | | | | | patch(1): Bring fixes from OpenBSD Check fstat return value. Use off_t for file size and offsets. Avoid iterating over end of string. Introduce strtolinenum to properly check line numbers while parsing: no signs, no spaces, just digits, 0 <= x <= LONG_MAX Properly validate line ranges supplied in diff file to prevent overflows. Also fixes an out of boundary memory access because the resulting values are used as array indices. PR: 195436 Obtained from: OpenBSD Notes: svn path=/stable/10/; revision=275841
* MFC r264581, r264744:Pedro F. Giffuni2014-04-301-23/+23
| | | | | | | | | Various style(9) fixes and typos in printf, grep, sort and patch. #define should be followed by a tab. Notes: svn path=/stable/10/; revision=265160
* - Refresh code with latest OpenBSD revisions.Xin LI2013-01-291-3/+1
| | | | | | | | | | | | - Remove $DragonFly$ tags as they are using git nowadays and VCS tags will not help merging. - Other changes to Copyright headers to make them consistent with other source code, we intend to fork from this point. Reviewed by: pfg Notes: svn path=/head/; revision=246091
* - Add a BSD-licensed patch, ported by Pedro F. Giffuni (pfg) fromGabor Kovesdan2013-01-291-0/+121
| | | | | | | | | | | DragonflyBSD and install it as bsdpatch. WITH_BSD_PATCH makes it default and installs GNU patch as gnupatch. Submitted by: pfg Obtained from: The DragonflyBSD Project Notes: svn path=/head/; revision=246074
* kill the undeadPeter Wemm1997-07-131-138/+0
| | | | Notes: svn path=/head/; revision=27369
* Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail,Bruce Evans1997-07-061-0/+138
pascal and vmstat.sparc. All changed files on the vendor branch should already have been imported. Notes: svn path=/vendor/CSRG/dist/; revision=27241