[mpir-devel] Re: Memory Allocation

2011-11-04 Thread Marc
On Nov 5, 12:23 am, Bob Smith wrote: > Using MPIR 2.4.0, I'm substituting my own memory allocator which gets > called from tal-reent.c in __gmp_tmp_reentrant_alloc.  The code in that > function doesn't check to see if the allocation failed and immediately > writes into the memory, allocated or not

[mpir-devel] Memory Allocation

2011-11-04 Thread Bob Smith
Using MPIR 2.4.0, I'm substituting my own memory allocator which gets called from tal-reent.c in __gmp_tmp_reentrant_alloc. The code in that function doesn't check to see if the allocation failed and immediately writes into the memory, allocated or not. How should I indicate that the allocati