Skip to content

Somewhat maintained forks of bsdiff and bspatch utilities (with a few pre-built binaries).

License

Notifications You must be signed in to change notification settings

iShafayet/bsdiff-bspatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bsdiff-bspatch

bsdiff and bspatch are a pair of tools for building and applying patches to binary files. Originally created by Colin Percival.

This repo is a somewhat maintained forks of bsdiff and bspatch utilities (with a few pre-built binaries for less mainstream platforms).

License, Credits and attribution

Original author: Colin Percival.
Original paper: Naïve Differences of Executable Code.
Author's website: http://www.daemonology.net/bsdiff/.

LICENSE: BSD 2-clause

Repo maintainer: Sayem Shafayet

Compiling

Linux: Kernel 2.6.23 or above is required.
MacOS: Build error regarding u_char/<uchar.h> not supported.
BSD: Not tested, but should work as expected as it was the original target.
Windows: Not tested yet.

You will need a C compiler. Following is an example with gcc for Amazon Linux 2.

sudo yum groupinstall "Development Tools"

Then simply run in the repo's root directory.

make

Usage

Generating patch

bsdiff oldfile newfile patchfile

This will compare newfile with oldfile and store the patch in patchfile.

patchfile wll be overwritten if already exists.

Applying patch

bspatch oldfile newfile patchfile

This will apply patch in patchfile on top of oldfile and will create newfile.

newfile wll be overwritten if already exists.

About

Somewhat maintained forks of bsdiff and bspatch utilities (with a few pre-built binaries).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published