OpenBSD mallocarray

Conrad Meyer cem at FreeBSD.org
Mon Feb 1 20:46:28 UTC 2016


On Mon, Feb 1, 2016 at 11:57 AM, C Turt <cturt at hardenedbsd.org> wrote:
> I've recently started browsing the OpenBSD kernel source code, and have
> found the mallocarray function positively wonderful. I would like to
> discuss the possibility of getting this into FreeBSD kernel.
>
> ...
>
> The mallocarray is a wrapper for malloc which can be used in this
> situations to detect an integer overflow before allocating:

Sure.  +1 from me.  I don't think we want the M_CANFAIL hack, though.

Best,
Conrad


More information about the freebsd-arch mailing list