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, Oct 6, 11:15 PM
Unknown Object (File)
Tue, Oct 6, 1:50 AM
Unknown Object (File)
Tue, Oct 6, 1:35 AM
Unknown Object (File)
Tue, Oct 6, 12:12 AM
Unknown Object (File)
Tue, Sep 29, 6:21 PM
Unknown Object (File)
Tue, Sep 29, 6:21 PM
Unknown Object (File)
Tue, Sep 29, 4:16 PM
Unknown Object (File)
Mon, Sep 14, 8:26 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