Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_6_5_BASE
Revision 1.75 / (download) - annotate - [select for diffs], Wed Nov 21 06:57:04 2018 UTC (5 years, 6 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE,
OPENBSD_6_5
Changes since 1.74: +1 -2 lines
Diff to previous 1.74 (colored)
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