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)
Sun, Nov 9, 6:38 AM
Unknown Object (File)
Sat, Nov 8, 3:50 AM
Unknown Object (File)
Fri, Nov 7, 12:35 PM
Unknown Object (File)
Thu, Nov 6, 11:13 PM
Unknown Object (File)
Thu, Nov 6, 5:59 AM
Unknown Object (File)
Mon, Nov 3, 4:14 AM
Unknown Object (File)
Wed, Oct 29, 8:57 AM
Unknown Object (File)
Wed, Oct 29, 8:34 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