CVSROOT:        /cvs
Module name:    src
Changes by:     o...@cvs.openbsd.org    2018/11/20 23:57:04

Modified files:
        include        : stdlib.h 
        lib/libc       : Symbols.list shlib_version 
        lib/libc/hidden: stdlib.h 
        lib/libc/stdlib: malloc.3 malloc.c 

Log message:
Introducing malloc_usable_size() was a mistake. While some other
libs have it, it is a function that is considered harmful, so:

Delete malloc_usable_size(). It is a function that blurs the line
between malloc managed memory and application managed memory and
exposes some of the internal workings of malloc.  If an application
relies on that, it is likely to break using another implementation
of malloc.  If you want usable size x, just allocate x bytes. ok
deraadt@ and other devs

Reply via email to