From: Karl Berry Date: Wed, 27 Aug 2025 16:03:27 +0000 (-0700) Subject: autoupdate X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b7815c867312d4eb51fe6c57dc912a4419f1dd7;p=thirdparty%2Fgnulib.git autoupdate --- diff --git a/lib/mini-gmp.c b/lib/mini-gmp.c index c97dc7e6cf..62b97b854e 100644 --- a/lib/mini-gmp.c +++ b/lib/mini-gmp.c @@ -4515,6 +4515,11 @@ mpz_import (mpz_t r, size_t count, int order, size_t size, int endian, assert (order == 1 || order == -1); assert (endian >= -1 && endian <= 1); + if (count == 0) + { + r->_mp_size = 0; + return; + } if (endian == 0) endian = gmp_detect_endian ();