HomeFreeBSD

arm: make some use of mallocarray(9).

Description

arm: make some use of mallocarray(9).

Focus on code where we are doing multiplications within malloc(9). None of
these ire likely to overflow, however the change is still useful as some
static checkers can benefit from the allocation attributes we use for
mallocarray.

This initial sweep only covers malloc(9) calls with M_NOWAIT. No good
reason but I started doing the changes before r327796 and at that time it
was convenient to make sure the sorrounding code could handle NULL values.

X-Differential revision: https://reviews.freebsd.org/D13837

Details

Provenance
pfgAuthored on
Parents
rS328016: x86: make some use of mallocarray(9).
Branches
Unknown
Tags
Unknown