HomeFreeBSD

ufs: use mallocarray(9).

Description

ufs: use mallocarray(9).

Basic use of mallocarray to prevent overflows: static analyzers are also
likely to perform additional checks.

Since mallocarray expects unsigned parameters, unsign some
related variables to minimize sign conversions.

Reviewed by: mckusick

Details

Provenance
pfgAuthored on
Reviewer
mckusick
Parents
rS328092: Correct fsck journal-recovery code to update a cylinder-group
Branches
Unknown
Tags
Unknown