HomeFreeBSD

Use mallocarray(9) in dirhash.

Description

Use mallocarray(9) in dirhash.

Basic use of mallocarray to prevent overflows. Here allocation is done
with M_NOWAIT so the code is prepared for the possibility of returning
NULL values. Since mallocarray expects unsigned parameters, unsign some
related variables to minimize sign conversions.

Reviewed by: mckusick

Details

Provenance
pfgAuthored on
Reviewer
mckusick
Parents
rS327780: Add regression tests for r327779.
Branches
Unknown
Tags
Unknown