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)
Wed, May 20, 7:45 AM
Unknown Object (File)
Wed, May 13, 12:33 AM
Unknown Object (File)
Wed, May 13, 12:33 AM
Unknown Object (File)
Wed, May 13, 12:28 AM
Unknown Object (File)
Sat, May 2, 5:05 AM
Unknown Object (File)
Fri, May 1, 9:54 PM
Unknown Object (File)
Apr 21 2026, 9:36 PM
Unknown Object (File)
Apr 18 2026, 1:08 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