{"id":15403232,"url":"https://github.com/woodruffw/libbdiff","last_synced_at":"2025-04-16T03:12:19.646Z","repository":{"id":23504906,"uuid":"26870614","full_name":"woodruffw/libbdiff","owner":"woodruffw","description":"A library for creating and patching binary diffs. Based on bsdiff.","archived":false,"fork":false,"pushed_at":"2014-11-23T18:32:57.000Z","size":220,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-16T03:12:14.599Z","etag":null,"topics":["binary-diffing","bsdiff","c","diff"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/woodruffw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-19T16:34:52.000Z","updated_at":"2023-06-07T20:37:19.000Z","dependencies_parsed_at":"2022-07-25T13:32:16.394Z","dependency_job_id":null,"html_url":"https://github.com/woodruffw/libbdiff","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woodruffw%2Flibbdiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woodruffw%2Flibbdiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woodruffw%2Flibbdiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woodruffw%2Flibbdiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/woodruffw","download_url":"https://codeload.github.com/woodruffw/libbdiff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249188428,"owners_count":21227015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binary-diffing","bsdiff","c","diff"],"created_at":"2024-10-01T16:06:49.774Z","updated_at":"2025-04-16T03:12:19.629Z","avatar_url":"https://github.com/woodruffw.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"libbdiff\n========\n\n`libbdiff` is a simple C library for creating binary diffs and patching programs.\n\nIt uses Colin Percival's bytewise subtraction diffing algorithm, which can produce size-efficient binary diffs independent of system architecture.\n\n## Building\n\n### Dependencies\n`libbdiff` requires `libbz2` to compress its diffs. \nOn Debian-based systems this can be installed as follows:\n```bash\nsudo apt-get install libbz2-dev\n```\n\n`libbdiff` (should) build on all POSIX-compliant systems, including Linux, BSD, OS X, and Solaris.\n\nJust do the following:\n\n```bash\n$ git clone https://github.com/woodruffw/libbdiff.git\n$ cd libbdiff\n$ make\n$ sudo make install # installs libbdiff.a and the headers to PREFIX\n```\n\nThis will leave `libbdiff.a`, a static library, in the repository root.\n\n## Use and linking\n\nFor developing with `libbdiff`, see the [documenation](./docs/user_docs.md).\n\nBuild commands for `libbdiff` should look something like this:\n\n```bash\n$ gcc -Ipath/to/libbdiff.h file.c -o file -Lpath/to/libbdiff.a -lbdiff\n```\n\nThe `-I` and `-L` directives aren't required if `libbdiff.h` and `libbdiff.a` are installed to system header and library directories.\n\n## License\n\n`libbdiff` uses algorithms and implementations from `bsdiff` and `bspatch`, and as such is licensed under the same BSD-style license.\nIt also uses and links with `libbz2`, which is also licensed under a BSD-style license.\n\n### `bsdiff`/`bspatch`\n\u003e Copyright 2003-2005 Colin Percival\n\u003e\n\u003e Redistribution and use in source and binary forms, with or without\n\u003e modification, are permitted providing that the following conditions \n\u003e are met:\n\u003e 1. Redistributions of source code must retain the above copyright\n\u003e    notice, this list of conditions and the following disclaimer.\n\u003e 2. Redistributions in binary form must reproduce the above copyright\n\u003e    notice, this list of conditions and the following disclaimer in the\n\u003e    documentation and/or other materials provided with the distribution.\n\u003e\n\u003e THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n\u003e IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n\u003e WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n\u003e ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY\n\u003e DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n\u003e DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n\u003e OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n\u003e HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\n\u003e STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING\n\u003e IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n\u003e POSSIBILITY OF SUCH DAMAGE.\n\n### `libbz2`\n\u003e This program, \"bzip2\", the associated library \"libbzip2\", and all\n\u003e documentation, are copyright (C) 1996-2010 Julian R Seward.  All\n\u003e rights reserved.\n\u003e \n\u003e Redistribution and use in source and binary forms, with or without\n\u003e modification, are permitted provided that the following conditions\n\u003e are met:\n\u003e \n\u003e 1. Redistributions of source code must retain the above copyright\n\u003e    notice, this list of conditions and the following disclaimer.\n\u003e \n\u003e 2. The origin of this software must not be misrepresented; you must \n\u003e    not claim that you wrote the original software.  If you use this \n\u003e    software in a product, an acknowledgment in the product \n\u003e    documentation would be appreciated but is not required.\n\u003e \n\u003e 3. Altered source versions must be plainly marked as such, and must\n\u003e    not be misrepresented as being the original software.\n\u003e \n\u003e 4. The name of the author may not be used to endorse or promote \n\u003e    products derived from this software without specific prior written \n\u003e    permission.\n\u003e \n\u003e THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS\n\u003e OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n\u003e WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n\u003e ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY\n\u003e DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n\u003e DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\n\u003e GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n\u003e INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n\u003e WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n\u003e NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n\u003e SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\u003e \n\u003e Julian Seward, jseward@bzip.org\n\u003e bzip2/libbzip2 version 1.0.6 of 6 September 2014\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoodruffw%2Flibbdiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwoodruffw%2Flibbdiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoodruffw%2Flibbdiff/lists"}