This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] Avoid munmap(x, 0) in malloc


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   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]