bsdiff: patch for CVE-2014-9862; fix broken distfiles url
This commit is contained in:
parent
9473cbb447
commit
fd515634a5
2 changed files with 16 additions and 2 deletions
13
srcpkgs/bsdiff/patches/CVE-2014-9862.diff
Normal file
13
srcpkgs/bsdiff/patches/CVE-2014-9862.diff
Normal 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");
|
||||
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue