HomeFreeBSD

linuxkpi: Implement kcalloc() based on mallocarray()

Description

linuxkpi: Implement kcalloc() based on mallocarray()

This means we now get integer overflow protection, which Linux code
might expect as it is also provided by kcalloc() in Linux.

Details

Provenance
kpAuthored on
Parents
rS327675: pf: Avoid integer overflow issues by using mallocarray() iso. malloc()
Branches
Unknown
Tags
Unknown