From e188658348328e45ae76e9a9d4b76084013e0620282311fa60e62b9837be0dc0 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 4 Aug 2023 08:13:42 +0000 Subject: [PATCH] - GMP 6.3.0 * A possible overflow of type int is avoided for mpz_cmp on huge operands. * A possible error condition when a malformed file is read with mpz_inp_raw is now correctly handled. * New public function mpz_prevprime, companion of the existing mpz_nextprime. * New documented pointer types mpz_ptr, mpz_srcptr, and similar for other GMP types. Refer to the manual for full list and suggested usage. These types have been present in gmp.h at least since GMP-4.0, but previously not advertised to users. * Support for 64-bit Arm under Macos. * Support for the loongarch64 CPU family. * Support for building with LTO, link-time optimisations. * New special code for base = 2 in mpz_powm reduces the average time for the functions that test primality. * Speedup for the function mpz_nextprime on large operands. * Speedup for multiplications (some sizes only) thanks to new internal functions to compute small negacyclic products. * Special assembly code for IBM z13 and later "mainframe" CPUs, resulting in a huge speedup. * Improved assembly for several 64-bit x86 CPUs, Risc-V, 64-bit Arm. - Removed gmp-6.2.1-CVE-2021-43618.patch which is included in the new release. OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gmp?expand=0&rev=93 --- gmp-6.2.1-CVE-2021-43618.patch | 25 ------------------------- gmp-6.2.1.tar.xz | 3 --- gmp-6.2.1.tar.xz.sig | Bin 374 -> 0 bytes gmp-6.3.0.tar.xz | 3 +++ gmp-6.3.0.tar.xz.sig | Bin 0 -> 374 bytes gmp.changes | 26 ++++++++++++++++++++++++++ gmp.spec | 6 ++---- 7 files changed, 31 insertions(+), 32 deletions(-) delete mode 100644 gmp-6.2.1-CVE-2021-43618.patch delete mode 100644 gmp-6.2.1.tar.xz delete mode 100644 gmp-6.2.1.tar.xz.sig create mode 100644 gmp-6.3.0.tar.xz create mode 100644 gmp-6.3.0.tar.xz.sig diff --git a/gmp-6.2.1-CVE-2021-43618.patch b/gmp-6.2.1-CVE-2021-43618.patch deleted file mode 100644 index 3ac255c..0000000 --- a/gmp-6.2.1-CVE-2021-43618.patch +++ /dev/null @@ -1,25 +0,0 @@ - -# HG changeset patch -# User Marco Bodrato -# Date 1634836009 -7200 -# Node ID 561a9c25298e17bb01896801ff353546c6923dbd -# Parent e1fd9db13b475209a864577237ea4b9105b3e96e -mpz/inp_raw.c: Avoid bit size overflows - -diff -r e1fd9db13b47 -r 561a9c25298e mpz/inp_raw.c ---- a/mpz/inp_raw.c Tue Dec 22 23:49:51 2020 +0100 -+++ b/mpz/inp_raw.c Thu Oct 21 19:06:49 2021 +0200 -@@ -88,8 +88,11 @@ - - abs_csize = ABS (csize); - -+ if (UNLIKELY (abs_csize > ~(mp_bitcnt_t) 0 / 8)) -+ return 0; /* Bit size overflows */ -+ - /* round up to a multiple of limbs */ -- abs_xsize = BITS_TO_LIMBS (abs_csize*8); -+ abs_xsize = BITS_TO_LIMBS ((mp_bitcnt_t) abs_csize * 8); - - if (abs_xsize != 0) - { - diff --git a/gmp-6.2.1.tar.xz b/gmp-6.2.1.tar.xz deleted file mode 100644 index 19a1d88..0000000 --- a/gmp-6.2.1.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2 -size 2027316 diff --git a/gmp-6.2.1.tar.xz.sig b/gmp-6.2.1.tar.xz.sig deleted file mode 100644 index d9842c70d8f83e40167f6b16b3872faba26d778634c3fdbd65e8173cc05d2d6f..0000000000000000000000000000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 374 zcmV-+0g3*J0doWZ0SW*e79j*QJTLJ3?q0&}zVn&$S)ceQ#&Vbi0$;E;w*U$W5c64| z_$bD5m=VDV|3aCO3F|e3z|&IVT`gjHK5*=~J#U`G0(h~Me(0=ZY*Eif5IfL0NcqCB zz*Y;o+gCT7GD)9QHqDe5L~~(-fskrNvIIOw`SAV;iwbuy?o>wbk+;;$OOymgL-?tq zhrCSvu{A5Ko}P~Mnhqq2;Rs)-l3dySWPO(0O4E8XUrY|_^)UveH$Jkla#vGZ+o>o= zX7+_REP)c#ore?0QE`TJmZLHlY;kDW&W9`D(}Cw06-XF#>s>3G;JI?hq!yLLL(H^% zE_jK`g7Zgj@GpP#9?&uch&oBuvxhW(p!3RMk2a=(wBo>rs^e$XioQNtSP6$YV zrYR%zCT@;GP6H+x8;cSi?7_02nm%_<*X3h&2tZeC$Fw$R(a!M(EBJ=nYR`G!v8cQ8 U8c!<`|FwotOh!o4?R*hr0XxjErvLx| diff --git a/gmp-6.3.0.tar.xz b/gmp-6.3.0.tar.xz new file mode 100644 index 0000000..0ce873d --- /dev/null +++ b/gmp-6.3.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898 +size 2094196 diff --git a/gmp-6.3.0.tar.xz.sig b/gmp-6.3.0.tar.xz.sig new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..7dcf722744a3b80236064136c5e139de6544ab641168878061e7ec8e670c7519 GIT binary patch literal 374 zcmV-+0g3*J0doWZ0SW*e79j*QJTLJ3?q0&}zVn&$S)ceQ#&Vbi0%XQj82}0i5c64| z_$bD5nA{%;{0eKq8FkSX8)(DKGF1Y^Y2{^jMq&{yy>zl$wTBxWE;Re1^7lzsF+5Tn zXmV>Bv_}t0Y~Ii-?FMFQPZS=*~K5HjUbgxuz7b5IH$Y zn&s4Nt_@AVbm7tcumx U5~M*6Od{AXYfR203v?C|^MHz~vH$=8 literal 0 HcmV?d00001 diff --git a/gmp.changes b/gmp.changes index 6d74eb3..45d7b9f 100644 --- a/gmp.changes +++ b/gmp.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Fri Aug 4 08:09:53 UTC 2023 - Richard Biener + +- GMP 6.3.0 + * A possible overflow of type int is avoided for mpz_cmp on huge operands. + * A possible error condition when a malformed file is read with mpz_inp_raw + is now correctly handled. + * New public function mpz_prevprime, companion of the existing mpz_nextprime. + * New documented pointer types mpz_ptr, mpz_srcptr, and similar for other + GMP types. Refer to the manual for full list and suggested usage. These + types have been present in gmp.h at least since GMP-4.0, but previously + not advertised to users. + * Support for 64-bit Arm under Macos. + * Support for the loongarch64 CPU family. + * Support for building with LTO, link-time optimisations. + * New special code for base = 2 in mpz_powm reduces the average time for + the functions that test primality. + * Speedup for the function mpz_nextprime on large operands. + * Speedup for multiplications (some sizes only) thanks to new internal + functions to compute small negacyclic products. + * Special assembly code for IBM z13 and later "mainframe" CPUs, resulting + in a huge speedup. + * Improved assembly for several 64-bit x86 CPUs, Risc-V, 64-bit Arm. +- Removed gmp-6.2.1-CVE-2021-43618.patch which is included in the + new release. + ------------------------------------------------------------------- Tue Nov 16 07:33:41 UTC 2021 - Richard Biener diff --git a/gmp.spec b/gmp.spec index 1d96997..14e7196 100644 --- a/gmp.spec +++ b/gmp.spec @@ -1,7 +1,7 @@ # # spec file for package gmp # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{!?make_build: %define make_build make %{?_smp_mflags}} Name: gmp -Version: 6.2.1 +Version: 6.3.0 Release: 0 Summary: A library for calculating huge numbers License: (GPL-2.0-or-later OR LGPL-3.0-or-later) AND GPL-3.0-or-later @@ -30,7 +30,6 @@ Source2: %{name}.keyring Source3: baselibs.conf # revert change causing bsc#1179751 Patch1: gmp-6.2.1-arm64-invert_limb.patch -Patch2: gmp-6.2.1-CVE-2021-43618.patch BuildRequires: fipscheck BuildRequires: gcc-c++ BuildRequires: m4 @@ -79,7 +78,6 @@ huge numbers (integer and floating point). %prep %setup -q %patch1 -%patch2 -p1 %build export CFLAGS="%{optflags} -fexceptions"