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)
Fri, Aug 21, 12:40 AM
Unknown Object (File)
Tue, Aug 18, 8:00 AM
Unknown Object (File)
Tue, Aug 11, 9:08 AM
Unknown Object (File)
Tue, Aug 11, 8:42 AM
Unknown Object (File)
Tue, Aug 11, 7:40 AM
Unknown Object (File)
Fri, Aug 7, 9:43 AM
Unknown Object (File)
Jul 20 2026, 6:19 AM
Unknown Object (File)
Jul 20 2026, 3:35 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable