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)
Mon, Jun 15, 3:44 AM
Unknown Object (File)
Sat, Jun 13, 3:49 AM
Unknown Object (File)
Fri, Jun 12, 9:56 PM
Unknown Object (File)
Thu, Jun 11, 2:30 AM
Unknown Object (File)
Mon, Jun 8, 5:49 PM
Unknown Object (File)
Wed, May 20, 7:45 AM
Unknown Object (File)
May 13 2026, 12:33 AM
Unknown Object (File)
May 13 2026, 12:33 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