diff options
-rw-r--r-- | math/fgmp/distinfo | 3 | ||||
-rw-r--r-- | math/fgmp/patches/patch-ab | 22 |
2 files changed, 24 insertions, 1 deletions
diff --git a/math/fgmp/distinfo b/math/fgmp/distinfo index c6a625f6c2f..0b970ccfc61 100644 --- a/math/fgmp/distinfo +++ b/math/fgmp/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.1.1.1 2007/01/03 07:53:37 agc Exp $ +$NetBSD: distinfo,v 1.2 2007/01/04 19:37:51 agc Exp $ SHA1 (fgmp-1.0b5-src-10.10.tar.gz) = ff34ef4033958ad3ad130b74aea8b7e16acfb6bc RMD160 (fgmp-1.0b5-src-10.10.tar.gz) = b85db676643fab4b5af18372fb719b6946cf11cf Size (fgmp-1.0b5-src-10.10.tar.gz) = 13429 bytes SHA1 (patch-aa) = 78b2dc3acd641e9b5b96e7de2f4ab12d71028ed1 +SHA1 (patch-ab) = c42db304c0412d0d7be1f6724eb8ee93c550cdb9 diff --git a/math/fgmp/patches/patch-ab b/math/fgmp/patches/patch-ab new file mode 100644 index 00000000000..25fa8ce1bcc --- /dev/null +++ b/math/fgmp/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.1 2007/01/04 19:37:51 agc Exp $ + +Fix a bug in the random routines which don't set the 'sn' flag + +--- gmp.c 2007/01/04 13:17:13 1.1 ++++ gmp.c 2007/01/04 13:15:45 +@@ -1230,6 +1230,7 @@ + } + if (oflow) + (x->p)[digits-1] &= (((mp_limb)1 << oflow) - 1); ++ x->sn = 1; + } + void mpz_random2(x,size) + MP_INT *x; unsigned int size; +@@ -1251,6 +1252,7 @@ + } + if (oflow) + (x->p)[digits-1] &= (((mp_limb)1 << oflow) - 1); ++ x->sn = 1; + } + + size_t mpz_size(x) |