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, Oct 8, 7:01 PM
Unknown Object (File)
Tue, Sep 30, 1:35 PM
Unknown Object (File)
Mon, Sep 29, 12:38 AM
Unknown Object (File)
Sep 11 2025, 11:50 AM
Unknown Object (File)
Aug 14 2025, 2:20 AM
Unknown Object (File)
Aug 6 2025, 10:45 PM
Unknown Object (File)
Aug 6 2025, 5:30 AM
Unknown Object (File)
Aug 5 2025, 12:48 PM
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