]> granicus.if.org Git - python/commit
In the 32-bit build, dec_hash() raised InvalidOperation if the operand
authorStefan Krah <skrah@bytereef.org>
Wed, 22 Aug 2012 17:11:50 +0000 (19:11 +0200)
committerStefan Krah <skrah@bytereef.org>
Wed, 22 Aug 2012 17:11:50 +0000 (19:11 +0200)
commitad5b43995e758c7a1f81ce6cf2cd798b48712808
tree807a78b4da935f606bfa066dde471a210a64a81a
parent2fd502f6a183fde7d8b4847d27e09884bf8006c7
In the 32-bit build, dec_hash() raised InvalidOperation if the operand
had a coefficient with MAX_PREC=425000000 digits and a negative exponent.
Increasing the context limits above the official values fixes the issue
and is safe (in this case!).
Modules/_decimal/_decimal.c
Modules/_decimal/tests/bignum.py [new file with mode: 0644]