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 30, 6:01 PM
Unknown Object (File)
Tue, Apr 30, 5:53 PM
Unknown Object (File)
Tue, Apr 30, 5:53 PM
Unknown Object (File)
Tue, Apr 30, 2:03 PM
Unknown Object (File)
Sun, Apr 28, 6:55 AM
Unknown Object (File)
Wed, Apr 24, 2:04 PM
Unknown Object (File)
Sat, Apr 6, 3:58 AM
Unknown Object (File)
Dec 20 2023, 3:09 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