aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/lrzip-CVE-2017-8842.patch
blob: 89b4f2f5d9ffe169825ed0253f24442c8f03cdad (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 38386bd482c0a8102a79958cb3eddcb97a167ca3 Mon Sep 17 00:00:00 2001
From: Con Kolivas <kernel@kolivas.org>
Date: Fri, 9 Mar 2018 17:39:40 +1100
Subject: [PATCH] CVE-2017-8842 Fix divide-by-zero in bufRead::get

---
 libzpaq/libzpaq.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libzpaq/libzpaq.h b/libzpaq/libzpaq.h
index 93387da..cbe211d 100644
--- a/libzpaq/libzpaq.h
+++ b/libzpaq/libzpaq.h
@@ -465,7 +465,8 @@ struct bufRead: public libzpaq::Reader {
 
 	int get() {
 		if (progress && !(*s_len % 128)) {
-			int pct = (total_len - *s_len) * 100 / total_len;
+			int pct = (total_len > 0) ?
+				(total_len - *s_len) * 100 / total_len : 100;
 
 			if (pct / 10 != *last_pct / 10) {
 				int i;
/packages/openldap.scm, gnu/packages/openstack.scm, gnu/packages/package-management.scm, gnu/packages/password-utils.scm, gnu/packages/patchutils.scm, gnu/packages/pdf.scm, gnu/packages/photo.scm, gnu/packages/polkit.scm, gnu/packages/protobuf.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/qt.scm, gnu/packages/rdf.scm, gnu/packages/ruby.scm, gnu/packages/search.scm, gnu/packages/selinux.scm, gnu/packages/serialization.scm, gnu/packages/shells.scm, gnu/packages/simulation.scm, gnu/packages/ssh.scm, gnu/packages/statistics.scm, gnu/packages/storage.scm, gnu/packages/sync.scm, gnu/packages/terminals.scm, gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tls.scm, gnu/packages/tor.scm, gnu/packages/tryton.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/virtualization.scm, gnu/packages/vpn.scm, gnu/packages/web-browsers.scm, gnu/packages/web.scm, gnu/packages/wicd.scm, gnu/packages/xdisorg.scm, gnu/packages/xorg.scm: Update module references. Ricardo Wurmus 2018-11-05gnu: xapian: Update to 1.4.9....* gnu/packages/patches/xapian-revert-5489fb2f8.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Remove it. * gnu/packages/search.scm (xapian): Update to 1.4.9. [source](patches): Remove. (python-xapian-bindings): Update to 1.4.9. Marius Bakke 2018-08-01gnu: xapian: Update to 1.4.7....* gnu/packages/search.scm (xapian, python-xapian-bindings): Update to 1.4.7. Marius Bakke 2018-07-13gnu: xapian: Fix notmuch test failure....* gnu/packages/patches/xapian-revert-5489fb2f8.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/search.scm (xapian)[source](patches): Use it. Marius Bakke 2018-07-12gnu: xapian: Update to 1.4.6 [fixes CVE-2018-0499]....* gnu/packages/search.scm (xapian, python-xapian-bindings): Update to 1.4.6. Marius Bakke 2018-06-22gnu: libtocc: Return #t from all phases....* gnu/packages/search.scm (libtocc)[arguments]: Substitute INVOKE for SYSTEM*. Return #t rather than undefined from phases. Re-indent. Tobias Geerinckx-Rice 2018-05-31gnu: xapian: Use INVOKE....* gnu/packages/search.scm (xapian)[arguments]: Substitute INVOKE for SYSTEM*. Tobias Geerinckx-Rice 2018-05-26gnu: xapers: Fix recommended packages...* gnu/packages/search.scm (xapers): [inputs]: remove python, poppler [propagated-inputs]: add poppler, xclip, xdg-utils. [arguments]: modify-phases to disable x-terminal options. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Adam Massmann 2018-04-04gnu: xapers: Fix man page and xapers-adder installation...* gnu/packages/search.scm (xapers)[arguments]: Adjust install-file destinations in install-doc phase. Signed-off-by: Eric Bavier <bavier@member.fsf.org> Adam Massmann 2018-04-04gnu: Add xapers...* gnu/packages/search.scm (xapers): New variable. Signed-off-by: Eric Bavier <bavier@member.fsf.org> Adam Massmann 2018-03-05gnu: tocc, libtocc: Use HTTPS home page....* gnu/packages/search.scm (libtocc, tocc)[home-page]: Use HTTPS. Tobias Geerinckx-Rice 2018-01-27gnu: python-xapian-bindings: Don't hard-code Python sitedir....* gnu/packages/search.scm (python-xapian-bindings)[arguments]: In #:make-flags, use VERSION-MAJOR+MINOR to set pkgpylibdir. Marius Bakke 2017-12-10gnu: xapian: Update to 1.4.5....* gnu/packages/search.scm (xapian, python-xapian-bindings): Update to 1.4.5. Marius Bakke