[pycrypto] Possible problem in src/_fastmath.c

Sergey Chernov sergey.chernov at thrift.ru
Wed Oct 15 17:39:29 CST 2008

See patch:
diff --git a/src/_fastmath.c b/src/_fastmath.c
index d06d697..a0aa181 100755
--- a/src/_fastmath.c
+++ b/src/_fastmath.c
@@ -28,6 +28,7 @@ longObjToMPZ (mpz_t m, PyLongObject * p)
 		size = p->ob_size;
 		size = -p->ob_size;
+	mpz_clear( m );
 	for (i = 0; i < size; i++)
 		mpz_set_ui (temp, p->ob_digit[i]);

Current usage do not discover the bug as 'm' is always just-initialized.
Still it, as I think, may cause trouble later.

-----Original Message-----
From: pycrypto-bounces at lists.dlitz.net
[mailto:pycrypto-bounces at lists.dlitz.net] On Behalf Of Dwayne C.
Sent: Thursday, October 16, 2008 12:30 AM
To: pycrypto at lists.dlitz.net
Subject: Re: [pycrypto] PyCrypto release plans

On Tue, Oct 14, 2008 at 06:07:12PM -0400, Dwayne C. Litzenberger wrote:
> Here's a quick overview of my plans for future PyCrypto releases:
> - The current source tree will become the 2.1.x branch.

Accordingly, I have moved the git repository from:


Please update your working copies.  I updated mine by editing my .git/config

  - Dwayne

Dwayne C. Litzenberger <dlitz at dlitz.net>
  Key-signing key   - 19E1 1FE8 B3CF F273 ED17  4A24 928C EC13 39C2 5CF7
  Annual key (2008) - 4B2A FD82 FC7D 9E38 38D9  179F 1C11 B877 E780 4B45

More information about the pycrypto mailing list