Mail Archives: djgpp/2001/07/03/08:09:06
On 3 Jul 2001, A. Sinan Unur wrote:
> Anyway, GNU Malloc seems to work as expected (returning null) for large
> allocations up to 0xFFF5FFFF. After that it goes into an infinite loop (can
> still do CTRL-BREAK to exit).
On what OS was that? And what version of GNU malloc did you try?
I recently found a nasty bug in gmalloc, whereby large allocation
requests were treated as negative numbers in some of the subroutines of
gmalloc. It's quite possible that the loop you see is due to that.
(The reason of the bug was that they mixed signed and unsigned, if
someone's interested.)
- Raw text -