Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e32b1534-009b-1d8e-dd9c-6f5a3bb71d3a@oracle.com>
Date: Thu, 25 Feb 2021 11:22:32 -0800
From: Alan Coopersmith <alan.coopersmith@...cle.com>
To: libc-coord@...ts.openwall.com, David Goldblatt <davidtgoldblatt@...il.com>
Subject: Re: Sized deallocation for C

On 2/25/21 10:59 AM, David Goldblatt wrote:
> Current Sized-Deallocation Support

The libumem library included with Solaris and illumos as a user-space
implementation of the kernel's slab allocator also does this, requiring
the size be specified in calls to umem_free:

https://docs.oracle.com/cd/E88353_01/html/E37843/umem-free-3malloc.html

https://www.usenix.org/conference/2001-usenix-annual-technical-conference/magazines-and-vmem-extending-slab-allocator-many

> 5. Implementations may provide extensions to query the usable size of an allocation

Implementations that don't already do this and are thinking of adding it
should consider the fairly common malloc_usable_size() API, already found
in the GNU, FreeBSD, and Solaris libc implementations.

-- 
	-Alan Coopersmith-               alan.coopersmith@...cle.com
	 Oracle Solaris Engineering - https://blogs.oracle.com/alanc

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.