On xmalloc failure, stop trying to determine the total amount of allocated
authorpascal <pascal@openbsd.org>
Tue, 20 Oct 2015 11:15:07 +0000 (11:15 +0000)
committerpascal <pascal@openbsd.org>
Tue, 20 Oct 2015 11:15:07 +0000 (11:15 +0000)
commit31b08222e46a5c824d06574863b8f73c72aea677
treefd9045bda73d0b0ed8603843958519b50e7e16cc
parent4f6e0223f2e323bc4dc54c1656b2bd8b7f4b5b4e
On xmalloc failure, stop trying to determine the total amount of allocated
memory up to this point by using sbrk(2).  This is of course wildly incorrect
for any mmap-based malloc(3).

This also makes it possible to bring pledge(2) to gnu/.

comments kettenis@, ok miod@
gnu/lib/libiberty/src/xmalloc.c