Potential bug in mpz_import on AIX 5.3

Torbjorn Granlund tg at swox.com
Thu Sep 13 02:04:06 CEST 2007


"Mike Pastore" <mike at oobak.org> writes:

    int main(int argc, char *argv[]) {
      unsigned long a[20];
      mpz_t z;
      mpz_import(z, 20, 1, sizeof(a[0]), 0, 0, a);
      return(0);
    }
  
    GNU MP: Cannot reallocate memory (old_size=2058812348 new_size=80)
    Resources lost
  
You need to initiate z.

-- 
Torbjörn


More information about the gmp-bugs mailing list