Page MenuHomeFreeBSD

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

Authored by markj on Mar 27 2021, 11:51 PM.

Details

Reviewers
None
Summary

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

Reported by: KASAN

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 38133
Build 35022: arc lint + arc unit