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 21, 9:36 PM
Unknown Object (File)
Sat, Apr 18, 1:08 AM
Unknown Object (File)
Fri, Apr 17, 2:52 PM
Unknown Object (File)
Fri, Apr 17, 10:10 AM
Unknown Object (File)
Fri, Apr 17, 3:55 AM
Unknown Object (File)
Thu, Apr 16, 12:28 PM
Unknown Object (File)
Mon, Apr 6, 5:03 PM
Unknown Object (File)
Tue, Mar 31, 12:13 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