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)
Thu, Apr 10, 5:01 AM
Unknown Object (File)
Tue, Apr 1, 5:12 AM
Unknown Object (File)
Thu, Mar 27, 2:38 AM
Unknown Object (File)
Sun, Mar 23, 1:24 AM
Unknown Object (File)
Feb 24 2025, 4:31 PM
Unknown Object (File)
Feb 22 2025, 2:13 PM
Unknown Object (File)
Feb 14 2025, 3:06 PM
Unknown Object (File)
Jan 31 2025, 1:32 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