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 d9842c7..0000000 Binary files a/gmp-6.2.1.tar.xz.sig and /dev/null differ 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 0000000..7dcf722 Binary files /dev/null and b/gmp-6.3.0.tar.xz.sig differ 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"