t-double.c (memory clobbered before allocated block)

Niels Möller nisse at lysator.liu.se
Wed Feb 27 15:40:30 CET 2013


Michael Tate <michael.tate at wanadoo.fr> writes:

> The memory allocation error triggers when free(buf) is called in the
> dump function, buf is set
> via the mpz-get-str function. By allocating a character buffer inside
> the dump function, the dump
> function completes correctly and then aborts the test segment as
> intended. I do not know
> why the test itself fails.

I think both problems have been fixed in the gmp development repo.
Maybe you can try that version (see instructions at
http://gmplib.org/devel/repo-usage.html), and check if it works better
on your machine.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.


More information about the gmp-bugs mailing list