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)
Sat, Sep 12, 5:00 AM
Unknown Object (File)
Fri, Sep 11, 3:47 AM
Unknown Object (File)
Fri, Sep 11, 3:19 AM
Unknown Object (File)
Wed, Sep 9, 8:19 PM
Unknown Object (File)
Mon, Sep 7, 11:16 AM
Unknown Object (File)
Sat, Sep 5, 3:44 PM
Unknown Object (File)
Sat, Sep 5, 10:29 AM
Unknown Object (File)
Sat, Sep 5, 8:49 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