- 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
This commit is contained in:
parent
895c8325a1
commit
e188658348
@ -1,25 +0,0 @@
|
||||
|
||||
# HG changeset patch
|
||||
# User Marco Bodrato <bodrato@mail.dm.unipi.it>
|
||||
# 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)
|
||||
{
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
|
||||
size 2027316
|
Binary file not shown.
BIN
gmp-6.3.0.tar.xz
(Stored with Git LFS)
Normal file
BIN
gmp-6.3.0.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
gmp-6.3.0.tar.xz.sig
Normal file
BIN
gmp-6.3.0.tar.xz.sig
Normal file
Binary file not shown.
26
gmp.changes
26
gmp.changes
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 4 08:09:53 UTC 2023 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- 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 <rguenther@suse.com>
|
||||
|
||||
|
6
gmp.spec
6
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"
|
||||
|
Loading…
Reference in New Issue
Block a user