[PATCH] Avoid munmap(x, 0) in malloc
Ulrich Drepper
drepper@redhat.com
Wed Jul 18 13:34:00 GMT 2001
Jakub Jelinek <jakub@redhat.com> writes:
> 2001-07-18 Jakub Jelinek <jakub@redhat.com>
>
> * malloc/malloc (new_heap): Don't call munmap for zero length.
Looks OK. Even if this condition wouldn't happen often it's
worthwhile adding the patch since it shouldn't be relied on the kernel
catching invalid requests.
Thanks,
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
More information about the Libc-hacker
mailing list