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)
Dec 20 2023, 3:09 AM
Unknown Object (File)
Dec 11 2023, 7:48 AM
Unknown Object (File)
Nov 24 2023, 7:38 AM
Unknown Object (File)
Nov 3 2023, 5:47 AM
Unknown Object (File)
Aug 20 2023, 8:38 AM
Unknown Object (File)
Aug 14 2023, 3:05 PM
Unknown Object (File)
Aug 14 2023, 2:31 AM
Unknown Object (File)
Jun 30 2023, 12:02 PM
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