freebsd-dev/sys/ufs
Pedro F. Giffuni 802258f46b 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
2018-01-10 19:45:38 +00:00
..
ffs Generalize the fix from r322757 and apply it to several more places. 2018-01-09 10:51:44 +00:00
ufs Use mallocarray(9) in dirhash. 2018-01-10 19:45:38 +00:00