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
F109031240: D29463.diff
Thu, Jan 30, 9:16 PM
Unknown Object (File)
Dec 20 2024, 3:54 PM
Unknown Object (File)
Dec 11 2024, 1:34 AM
Unknown Object (File)
Nov 22 2024, 7:49 PM
Unknown Object (File)
Nov 22 2024, 6:45 PM
Unknown Object (File)
Nov 22 2024, 1:32 PM
Unknown Object (File)
Oct 19 2024, 3:48 PM
Unknown Object (File)
Oct 19 2024, 3:48 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