undefined behavior in GMP 5.1.2

Marc Glisse marc.glisse at inria.fr
Mon Sep 23 14:36:24 CEST 2013

On Mon, 23 Sep 2013, Vincent Lefevre wrote:

> Sorry, I looked at a wrong test. The problem is due to the mpf_pow_ui
> test with a large exponent. Something like the attached patch should
> solve the problem (in2i is reduced for this function).

Thanks for the analysis and the patch! It is funny how I can reproduce it 
running ./reuse by hand but it doesn't show during a make check, maybe the 
random seed...

I'll apply it if I don't hear from anyone else.

Marc Glisse

More information about the gmp-bugs mailing list