2 ms·
actually openbsd has something like this: mallocarray [1] and reallocarray [2] (OMG realloc) actually here [3] they say that use of these function in libressl a
by MichaelMoser123 11y ago
actually openbsd has something like this: mallocarray [1] and reallocarray [2] (OMG realloc) actually here [3] they say that use of these function in libressl and the openbsd port of the http server, etc.
[1] http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man9/mallocarray.9 http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man9/...
[2] http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man3/calloc.3?query=reallocarray&arch=i386 http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man3/...
[3] http://www.openbsd.org/papers/httpd-asiabsdcon2015.pdf http://www.openbsd.org/papers/httpd-asiabsdcon2015.pdf