bsdiff: patch for CVE-2014-9862; fix broken distfiles url

This commit is contained in:
Roberto Ricci 2020-12-31 11:21:04 +01:00 committed by Érico Nogueira Rolim
parent 9473cbb447
commit fd515634a5
2 changed files with 16 additions and 2 deletions

View file

@ -0,0 +1,13 @@
--- bspatch.c.orig
+++ bspatch.c
@@ -164,6 +164,10 @@
}
/* Sanity-check */
+ if ((ctrl[0] < 0) || (ctrl[1] < 0))
+ errx(1,"Corrupt patch\n");
+
+ /* Sanity-check */
if(newpos+ctrl[0]>newsize)
errx(1,"Corrupt patch\n");

View file

@ -1,13 +1,14 @@
# Template file for 'bsdiff'
pkgname=bsdiff
version=4.3
revision=4
revision=5
makedepends="bzip2-devel"
short_desc="Binary diff/patch utility"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-2-Clause"
homepage="http://www.daemonology.net/bsdiff"
distfiles="${homepage}/${pkgname}-${version}.tar.gz"
distfiles="${DEBIAN_SITE}/main/b/bsdiff/bsdiff_${version}.orig.tar.gz"
#distfiles="${homepage}/${pkgname}-${version}.tar.gz"
checksum=18821588b2dc5bf159aa37d3bcb7b885d85ffd1e19f23a0c57a58723fea85f48
do_build() {