reallocarray(3) and its uses

Warner Losh imp at bsdimp.com
Fri Mar 10 17:09:04 UTC 2017


On Fri, Mar 10, 2017 at 10:00 AM, Pedro Giffuni <pfg at freebsd.org> wrote:
> Hello;
>
> I wasn't a fan of bringing reallocarray(3) from OpenBSD, but since we have
> it, I thought I'd take a look at using it. It is rather easy to use so I
> went around opengrok'ing "realloc" in userland and crosschecking with
> OpenBSD and I got to this patch:
>
> https://reviews.freebsd.org/D9915
>
> Current reviewers are mute: I am unsure if they are just deeply impressed
> and don't want to speak up or if they are simply too busy (most likely the
> later). There are still more uses in some utilities but I wanted to see what
> people think of the general idea.

https://www.youtube.com/watch?v=ussCHoQttyQ

Summarizes my view. I kinda like it since it helps on the overflow
front, but it's non standard so I kinda dislike it... I can make
arguments both ways and I can't decide which argument I like more...

Warner


More information about the freebsd-arch mailing list