Page MenuHomeFreeBSD

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

Authored by markj on Mar 28 2021, 12:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 30, 6:01 PM
Unknown Object (File)
Tue, Apr 30, 5:53 PM
Unknown Object (File)
Tue, Apr 30, 5:53 PM
Unknown Object (File)
Tue, Apr 30, 2:03 PM
Unknown Object (File)
Sun, Apr 28, 6:55 AM
Unknown Object (File)
Wed, Apr 24, 2:04 PM
Unknown Object (File)
Apr 6 2024, 3:58 AM
Unknown Object (File)
Dec 20 2023, 3:09 AM
Subscribers

Details

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 Passed
Unit
No Test Coverage
Build Status
Buildable 38134
Build 35023: arc lint + arc unit