HomeFreeBSD

Fix several dev_clone callbacks to avoid out-of-bounds reads

Description

Fix several dev_clone callbacks to avoid out-of-bounds reads

Use strncmp() instead of bcmp(), so that we don't have to find the
minimum of the string lengths before comparing.

Reviewed by: kib
Reported by: KASAN
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D29463

Details

Provenance
markjAuthored on Mar 28 2021, 3:08 PM
Reviewer
kib
Differential Revision
D29463: Fix several dev_clone callbacks to avoid out-of-bounds reads
Parents
rG1c1ff7979571: pkgbase: make only vital packages vital, not their sub-packages
Branches
Unknown
Tags
Unknown