From patchwork Tue Feb 16 19:12:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Legoll X-Patchwork-Id: 27094 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9332227BC47; Tue, 16 Feb 2021 19:27:02 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6650327BC45 for ; Tue, 16 Feb 2021 19:27:02 +0000 (GMT) Received: from localhost ([::1]:39576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lC5zx-0007m2-D4 for patchwork@mira.cbaines.net; Tue, 16 Feb 2021 14:27:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lC5nQ-0005NR-KD for guix-patches@gnu.org; Tue, 16 Feb 2021 14:14:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58287) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lC5nO-0004nw-Fy for guix-patches@gnu.org; Tue, 16 Feb 2021 14:14:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lC5nO-0001bS-CQ for guix-patches@gnu.org; Tue, 16 Feb 2021 14:14:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46566] [PATCH 1/2] gnu: jbig2dec: Update to 0.19. References: In-Reply-To: Resent-From: Vincent Legoll Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 Feb 2021 19:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46566 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46566@debbugs.gnu.org Cc: Vincent Legoll Received: via spool by 46566-submit@debbugs.gnu.org id=B46566.16135027865984 (code B ref 46566); Tue, 16 Feb 2021 19:14:02 +0000 Received: (at 46566) by debbugs.gnu.org; 16 Feb 2021 19:13:06 +0000 Received: from localhost ([127.0.0.1]:41596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lC5mT-0001YN-Rr for submit@debbugs.gnu.org; Tue, 16 Feb 2021 14:13:06 -0500 Received: from mail-wr1-f47.google.com ([209.85.221.47]:35495) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lC5mR-0001Xk-9H for 46566@debbugs.gnu.org; Tue, 16 Feb 2021 14:13:05 -0500 Received: by mail-wr1-f47.google.com with SMTP id l12so14640700wry.2 for <46566@debbugs.gnu.org>; Tue, 16 Feb 2021 11:13:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=x/xd0J2cnbU7IDuOYP/qfwkmR9pKSiVc0lh3WqAlBKw=; b=JqQpJJJkgptmgLpLwauNIZ+kSZ2ST/QJt/LvtVAZtgQMGDPe5UxPEcypvexbFCoQbC j467jC0Gil+eqdKqfySKzKcRTHgu3kMkfO3ztDOe0+aLanNsa1gyJ0KPChptAGXBZoAf YCQObsEmAfXtCiyUfyxA3Xtib3zbIrZuWmKfBJbZaMn1DMCq+U1A9zj776r5N4BFGw8t sa+d4LJ1mIuGfKKidtrVqCOOqYLl3Zxr519djlKWjNyuVpiEb9dUNrOQntyfHw0op1uD qt07IXYzrWFXeoKJx4o6fTZz7psbGK3lxhDzjk0IPqHhhU5jyJD5E81CPuhXY6PhjLos Gpdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=x/xd0J2cnbU7IDuOYP/qfwkmR9pKSiVc0lh3WqAlBKw=; b=FCa+O2dN12gy4qIQFHRr3JNAaZjfFPBo/+4r/f6QplelmHgpXg1vXi3NEU5NSvpdf3 2cZqGk51pv6IFFArEy+m4x5Ar70Tx/gagANQNNw3Vo99u8v1uGc219s9j52+AcNNYLr0 HdC6oWrOeaUjoKv5x2DksOijocTKIL5kB9Jr68abB4G8kZqTsLV4C0+J5YP+8kewTcYL 99xOMiqXBXOuRCDolEa9GQ4hrVGY68pownbunC6xcu9zJsJ7pvqyIvLqjcRUL4cNywF6 voy3Wu85P5oDIhNIYbNj+VVZeVO7z6QikQxLUTWD7vYVgvGRFUSD5A6BVWnlRYhwmdD1 C70A== X-Gm-Message-State: AOAM532kgTiO/1+fipup9vq1oXNhsxAXzBwwylndtBqGe0YCsTlAqQ1J LZn026kOWa2s/ZSUmrvlWqHvRMy+T/Q= X-Google-Smtp-Source: ABdhPJxE8fNYriPrsTrQH88162uY87udke4j6xNicoxVkonFmivx5nvBug5sqhVbAFqo98hpgSLrRw== X-Received: by 2002:adf:aa08:: with SMTP id p8mr11752409wrd.232.1613502777474; Tue, 16 Feb 2021 11:12:57 -0800 (PST) Received: from localhost.localdomain ([88.163.74.64]) by smtp.gmail.com with ESMTPSA id f14sm5046905wmc.32.2021.02.16.11.12.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Feb 2021 11:12:57 -0800 (PST) From: Vincent Legoll Date: Tue, 16 Feb 2021 20:12:46 +0100 Message-Id: <20210216191247.6715-1-vincent.legoll@gmail.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/image.scm (jbig2dec): Update to 0.19. --- gnu/packages/image.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index 958f1dcc59..6dff48bd87 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -674,15 +674,15 @@ arithmetic ops.") (define-public jbig2dec (package (name "jbig2dec") - (version "0.18") + (version "0.19") (source (origin (method url-fetch) (uri (string-append "https://github.com/ArtifexSoftware" "/ghostpdl-downloads/releases/download" - "/gs951/" name "-" version ".tar.gz")) + "/gs9533/" name "-" version ".tar.gz")) (sha256 (base32 - "0pigfw2v0ppvr0lbysm69gx0zsa5q2q92yrb8af2j3im6x97f6cy")))) + "0dwa24kjqyg9hmm40fh048sdxfpnasz43l2rm8wlkw1qbdlpd517")))) (build-system gnu-build-system) (arguments '(#:configure-flags '("--disable-static") #:phases (modify-phases %standard-phases From patchwork Tue Feb 16 19:12:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Legoll X-Patchwork-Id: 27096 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A50B127BC47; Tue, 16 Feb 2021 19:28:34 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 25C4127BC45 for ; Tue, 16 Feb 2021 19:28:34 +0000 (GMT) Received: from localhost ([::1]:42394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lC61Q-0000d2-Tl for patchwork@mira.cbaines.net; Tue, 16 Feb 2021 14:28:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lC5nQ-0005NS-L8 for guix-patches@gnu.org; Tue, 16 Feb 2021 14:14:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58286) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lC5nO-0004nr-4B for guix-patches@gnu.org; Tue, 16 Feb 2021 14:14:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lC5nN-0001bL-W3 for guix-patches@gnu.org; Tue, 16 Feb 2021 14:14:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46566] [PATCH 2/2] gnu: ghostscript: Update to 9.53.3. Resent-From: Vincent Legoll Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 Feb 2021 19:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46566 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46566@debbugs.gnu.org Cc: Vincent Legoll Received: via spool by 46566-submit@debbugs.gnu.org id=B46566.16135027855978 (code B ref 46566); Tue, 16 Feb 2021 19:14:01 +0000 Received: (at 46566) by debbugs.gnu.org; 16 Feb 2021 19:13:05 +0000 Received: from localhost ([127.0.0.1]:41594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lC5mT-0001YK-G2 for submit@debbugs.gnu.org; Tue, 16 Feb 2021 14:13:05 -0500 Received: from mail-wr1-f53.google.com ([209.85.221.53]:33065) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lC5mR-0001Xm-Nd for 46566@debbugs.gnu.org; Tue, 16 Feb 2021 14:13:04 -0500 Received: by mail-wr1-f53.google.com with SMTP id 7so14670848wrz.0 for <46566@debbugs.gnu.org>; Tue, 16 Feb 2021 11:13:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nMVaaMS+EHYqeopNmsJNhbDkwtbnK1Za3ZyY4JJg4hw=; b=VbOl5bQ14iG6O3QavESeIUKVOFOD6i6EJZix7VRXIf2XE12dEWlb3sXcDuPjuW2cLe Gj2cwQbhHcj34cd3Lhok9jg2MfNY+l/UeFnqle7wF8DSyprRyO8YY5BIUgcNBdc7CEiT D1Rq9+gtWz34j7xyhAiBf0etqRqDpPAwD3rs6p00dvT65yHe/ZIoCnHrXPpypaOjFbV/ N/i2LbW0qz56uc8fa2yoUgVrMTD0xC6T5UU+GNxHBJVboEhX9UzTRZivx+CM+tHxmDC8 DuHX1Rys2GwX/enLU11eHX81S99DsRg14X1aJY7ydekhH9vZB3PFRvHI5q7pr06dfaRQ Vvlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nMVaaMS+EHYqeopNmsJNhbDkwtbnK1Za3ZyY4JJg4hw=; b=BPTBigCe9XKMcbnUuZnS1tjB+1Fpti82TUSbOuXRdoJPAj+Xb0p/RW0TcOgBRUtsUJ 5Y2aq8Km33FnBExHegMIHckoJS/pnHzXavwiqsPwyjiL4tpNEe1vojW4weWUNrIM/c0l 6dGLKVunwwosZMZuVVeWIYEvz+uFZ/zFmd7yuQ3RqdYg4lvXpt9y7nFfhBwp9CKX6wKL iTyMgZNH3OaytUgTdzviGyJWNMN/VHX0/3sYFmsnzR9ibaAmO4anIjZNc/YBp2QLpQTq EAV+PIgO9YxwoxONQh6XYJ2MK6Fao0JNB+/0SmH/T5ysNWM2D2BkXxUHgj81/mxD1m69 U3rQ== X-Gm-Message-State: AOAM530m1rwSXnk5IkjyEV6l6LOfgR2Gv3gccjrpKXUtDIFT1EnWLuZg AbaefgCMMdH4nwyYixqxb+VMOCN7YmY= X-Google-Smtp-Source: ABdhPJxF3FFSCbKGCCXN+Ov6qLtDJu9HmyBMhVW/tdkvcfW045kk300YCauCmZpHMT5OdEG4KllJkA== X-Received: by 2002:adf:8084:: with SMTP id 4mr23839730wrl.49.1613502778148; Tue, 16 Feb 2021 11:12:58 -0800 (PST) Received: from localhost.localdomain ([88.163.74.64]) by smtp.gmail.com with ESMTPSA id f14sm5046905wmc.32.2021.02.16.11.12.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Feb 2021 11:12:57 -0800 (PST) From: Vincent Legoll Date: Tue, 16 Feb 2021 20:12:47 +0100 Message-Id: <20210216191247.6715-2-vincent.legoll@gmail.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210216191247.6715-1-vincent.legoll@gmail.com> References: <20210216191247.6715-1-vincent.legoll@gmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/patches/ghostscript-CVE-2020-15900.patch: Remove file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/ghostscript.scm (ghostscript): Update to 9.53.3. [source](patches): Remove it. [native-inputs]: Add jbig2dec. --- gnu/local.mk | 1 - gnu/packages/ghostscript.scm | 6 ++-- .../patches/ghostscript-CVE-2020-15900.patch | 36 ------------------- 3 files changed, 3 insertions(+), 40 deletions(-) delete mode 100644 gnu/packages/patches/ghostscript-CVE-2020-15900.patch diff --git a/gnu/local.mk b/gnu/local.mk index b9757fe69e..3caa6c6fc9 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1061,7 +1061,6 @@ dist_patch_DATA = \ %D%/packages/patches/ghc-monad-par-fix-tests.patch \ %D%/packages/patches/ghc-pandoc-fix-html-tests.patch \ %D%/packages/patches/ghc-pandoc-fix-latex-test.patch \ - %D%/packages/patches/ghostscript-CVE-2020-15900.patch \ %D%/packages/patches/ghostscript-freetype-compat.patch \ %D%/packages/patches/ghostscript-no-header-id.patch \ %D%/packages/patches/ghostscript-no-header-uuid.patch \ diff --git a/gnu/packages/ghostscript.scm b/gnu/packages/ghostscript.scm index 19430d315a..53a631b095 100644 --- a/gnu/packages/ghostscript.scm +++ b/gnu/packages/ghostscript.scm @@ -160,7 +160,7 @@ printing, and psresize, for adjusting page sizes.") (define-public ghostscript (package (name "ghostscript") - (version "9.52") + (version "9.53.3") (source (origin (method url-fetch) @@ -170,9 +170,8 @@ printing, and psresize, for adjusting page sizes.") "/ghostscript-" version ".tar.xz")) (sha256 (base32 - "0z1w42y2jmcpl2m1l3z0sfii6zmvzcwcgzn6bydklia6ig7jli2p")) + "0d52w9ajv1rz533119ywgmkzkapp74riwny0d21v0zkcbg45p7ww")) (patches (search-patches "ghostscript-freetype-compat.patch" - "ghostscript-CVE-2020-15900.patch" "ghostscript-no-header-creationdate.patch" "ghostscript-no-header-id.patch" "ghostscript-no-header-uuid.patch")) @@ -271,6 +270,7 @@ printing, and psresize, for adjusting page sizes.") ("pkg-config" ,pkg-config) ;needed for freetype ("python" ,python-minimal-wrapper) ("tcl" ,tcl) + ("jbig2dec" ,jbig2dec) ;; When cross-compiling, some of the natively-built tools require all ;; these libraries. diff --git a/gnu/packages/patches/ghostscript-CVE-2020-15900.patch b/gnu/packages/patches/ghostscript-CVE-2020-15900.patch deleted file mode 100644 index b6658d7c7f..0000000000 --- a/gnu/packages/patches/ghostscript-CVE-2020-15900.patch +++ /dev/null @@ -1,36 +0,0 @@ -Fix CVE-2020-15900. - -https://cve.circl.lu/cve/CVE-2020-15900 -https://artifex.com/security-advisories/CVE-2020-15900 - -Taken from upstream: -https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=5d499272b95a6b890a1397e11d20937de000d31b - -diff --git a/psi/zstring.c b/psi/zstring.c ---- a/psi/zstring.c -+++ b/psi/zstring.c -@@ -142,13 +142,18 @@ search_impl(i_ctx_t *i_ctx_p, bool forward) - return 0; - found: - op->tas.type_attrs = op1->tas.type_attrs; -- op->value.bytes = ptr; -- r_set_size(op, size); -+ op->value.bytes = ptr; /* match */ -+ op->tas.rsize = size; /* match */ - push(2); -- op[-1] = *op1; -- r_set_size(op - 1, ptr - op[-1].value.bytes); -- op1->value.bytes = ptr + size; -- r_set_size(op1, count + (!forward ? (size - 1) : 0)); -+ op[-1] = *op1; /* pre */ -+ op[-3].value.bytes = ptr + size; /* post */ -+ if (forward) { -+ op[-1].tas.rsize = ptr - op[-1].value.bytes; /* pre */ -+ op[-3].tas.rsize = count; /* post */ -+ } else { -+ op[-1].tas.rsize = count; /* pre */ -+ op[-3].tas.rsize -= count + size; /* post */ -+ } - make_true(op); - return 0; - }