summaryrefslogtreecommitdiffstats
path: root/usr.bin/bsdiff
Commit message (Collapse)AuthorAgeFilesLines
* MFC r315170:ngie2017-05-301-2/+2
| | | | | | | | | | | r315170 (by imp): Adopt SRCTOP in usr.bin Prefer ${SRCTOP}/foo over ${.CURDIR}/../../foo and ${SRCTOP}/usr.bin/foo over ${.CURDIR}/../foo for paths in Makefiles. Silence on: arch@ (twice)
* MFC r303285:delphij2016-12-114-106/+282
| | | | | | | | | | Change bsdiff to use divsufsort suffix sort library instead of qsufsort, which is more efficient. Note that for now we do not create a separate library for libdivsufsort because it's not used anywhere else. Obtained from: Chromium
* MFC bspatch Capsicumization, sanity checks, and other improvementsemaste2016-09-221-75/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r304691: bspatch: apply style(9) Make style changes (and trivial refactoring of open calls) now in order to reduce noise in diffs for future capsicum changes. r304807 (allanjude): Capsicumize bspatch Move all of the fopen() and open() calls to the top of main() Restrict each FD to least privilege (read/seek only, write only, etc) cap_enter(), and make all except the output FD read/seek only. r304821: bspatch: remove output file in the case of error r305486: bspatch: add sanity checks on sizes to avoid integer overflow Note that this introduces an explicit 2GB limit, but this was already implicit in variable and function argument types. This is based on the "non-cryptanalytic attacks against freebsd update components" anonymous gist. Further refinement is planned. r305737: bspatch: remove superfluous newlines from errx strings r305822: bspatch: use #define for header size instead of magic number r306026: bspatch: Remove backwards-compatibility sys/capability.h support bspatch previously included sys/capability.h or sys/capsicum.h based on __FreeBSD_version, as FreeBSD is the upstream for bsdiff and we may see this file incorporated into other third-party software. The Capsicum header is now installed as sys/capsicum.h in stable/10 and FreeBSD 10.3, so we can just use sys/capsicum.h and simplify the logic.
* Fix bspatch heap overflow vulnerability.delphij2016-07-251-0/+4
| | | | | | | Obtained from: Chromium Reported by: Lu Tung-Pin Security: FreeBSD-SA-16:25.bspatch Approved by: re (so@ blanket)
* Cleanup unnecessary semicolons from utilities we all love.pfg2016-04-152-27/+27
|
* Check for (old|new)size + 1 overflows off_t.ache2015-11-031-2/+4
| | | | | PR: 204230 MFC after: 1 week
* Use meaningful errno for ssize_t overflow in read().ache2015-11-031-4/+22
| | | | | | | Catch size_t overflow in malloc(). PR: 204230 MFC after: 1 week
* Add META_MODE support.sjg2015-06-132-0/+38
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-082-4/+0
| |
| * Merge sync of headsjg2015-05-272-4/+2
| |\ | |/ |/|
| * Merge head from 7/28sjg2014-08-192-2/+2
| |\
| * | Updated dependenciessjg2014-05-162-2/+0
| | |
| * | Updated dependenciessjg2014-05-102-0/+4
| | |
| * | Merge headsjg2014-04-282-2/+20
| |\ \
| * | | Updated dependenciessjg2013-03-112-0/+2
| | | |
| * | | Updated dependenciessjg2013-02-162-4/+0
| | | |
| * | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-222-0/+40
| | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | Convert to usr.bin/ to LIBADDbapt2014-11-252-4/+2
| |_|/ |/| | | | | | | | Reduce overlinking
* | | use .Mt to mark up email addresses consistently (part3)bapt2014-06-232-2/+2
| |/ |/| | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de>
* | Make usage printing more consistent with other tools.ed2014-04-232-2/+20
|/ | | | | | | - Introduce a separate usage() function. - Don't use argv[0]. Directly name the application, as we do elsewhere. - Don't prepend the application name. - Don't print two newlines.
* Remove trailing whitespace per mdoc lint warningeadler2012-03-291-1/+1
| | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
* Silence bogus warning when compiling with gcc46:eadler2012-01-101-1/+1
| | | | | | | | error: 'pos' may be used uninitialized in this function Reviewed by: cperciva Approved by: dim MFC after: 3 days
* mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to theuqs2010-05-132-4/+4
| | | | | | | | | | | bottom of the manpages and order them consistently. GNU groff doesn't care about the ordering, and doesn't even mention CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put them. Found by: mdocml lint run Reviewed by: ru
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-3/+0
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Add notes pointing out that bsdiff does not store file hashes andcperciva2009-10-302-0/+40
| | | | | | | | | bspatch thus does not verify file hashes, and that consequently it is recommended that users store hashes separately and verify files before and after running bspatch. Requested by: BugMagnet MFC after: 1 week
* Portability fix for non-POSIX operating systems: Open files in binary mode.cperciva2006-12-052-9/+17
| | | | | PR: bin/106358 Submitted by: techtonik at php dot net
* Fix up markup.ru2005-11-182-26/+38
|
* Include ../Makefile.inc, since without it programs get installed in thecperciva2005-08-061-0/+3
| | | | | | wrong place. Pointy hat to: cperciva
* Add bsdiff and bspatch to the base system. These are tools forcperciva2005-08-068-0/+752
constructing and applying binary patches; in particular, they perform well (in the sense of constructing small patches) for executable code. Both portsnap (coming to the base system Real Soon Now) and FreeBSD Update (coming to the base system a bit later) use bspatch. This is the same code as the bsdiff-4.2 which has been in the ports tree (misc/bsdiff) for the past year, with the following exceptions: 1. The license is now the traditional 2-clause BSD; 2. Instead of forking and execing bzip2, the code now uses libbz2; and 3. Some minor changes have been made to fit this code into the base system (adding $FreeBSD$ tags, putting bsdiff and bspatch into separate directories, etc.) This code is rather ugly and has lots of style bugs (mostly because I wrote it before I had ever heard of style(9)). Some day I'll come back and clean it up. Discussed on: freebsd-arch MFC before: 5.5-RELEASE Tested by: Several million users (earlier version).
OpenPOWER on IntegriCloud