Github messages for voidlinux
 help / color / mirror / Atom feed
From: 4ricci <4ricci@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] bsdiff: patch for CVE-2014-9862; fix broken distfiles url
Date: Thu, 31 Dec 2020 11:22:41 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-27575@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 339 bytes --]

There is a new pull request by 4ricci against master on the void-packages repository

https://github.com/4ricci/void-packages bsdiff
https://github.com/void-linux/void-packages/pull/27575

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


A patch file from https://github.com/void-linux/void-packages/pull/27575.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-bsdiff-27575.patch --]
[-- Type: text/x-diff, Size: 1659 bytes --]

From e59c1b4e47a2c0689d6323d3091a813cc0a09525 Mon Sep 17 00:00:00 2001
From: Roberto Ricci <ricci@disroot.org>
Date: Thu, 31 Dec 2020 11:21:04 +0100
Subject: [PATCH] bsdiff: patch for CVE-2014-9862; fix broken distfiles url

---
 srcpkgs/bsdiff/patches/CVE-2014-9862.diff | 13 +++++++++++++
 srcpkgs/bsdiff/template                   |  5 +++--
 2 files changed, 16 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/bsdiff/patches/CVE-2014-9862.diff

diff --git a/srcpkgs/bsdiff/patches/CVE-2014-9862.diff b/srcpkgs/bsdiff/patches/CVE-2014-9862.diff
new file mode 100644
index 00000000000..eb2710d8afb
--- /dev/null
+++ b/srcpkgs/bsdiff/patches/CVE-2014-9862.diff
@@ -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");
+ 
diff --git a/srcpkgs/bsdiff/template b/srcpkgs/bsdiff/template
index 9b557c128ad..d1396b8c707 100644
--- a/srcpkgs/bsdiff/template
+++ b/srcpkgs/bsdiff/template
@@ -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() {

             reply	other threads:[~2020-12-31 10:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-31 10:22 4ricci [this message]
2021-01-02  1:20 ` [PR PATCH] [Merged]: " ericonr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-27575@inbox.vuxu.org \
    --to=4ricci@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).