math/mpmont.c (mpmont_reduce): Segfault if Karatsuba product is short.
authorMark Wooding <mwooding@good.com>
Fri, 10 Apr 2015 14:19:25 +0000 (15:19 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 22 Apr 2015 09:56:05 +0000 (10:56 +0100)
In the Karatsuba branch, it's possible (e.g., if the input is actually
zero) that the result is short.  A later `MP_LEN(d) - n' then underflows
causing general badness.  Make sure the result is actually long enough.


No differences found