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)
Oct 19 2024, 3:48 PM
Unknown Object (File)
Oct 19 2024, 3:48 PM
Unknown Object (File)
Oct 19 2024, 3:48 PM
Unknown Object (File)
Oct 19 2024, 3:31 PM
Unknown Object (File)
Oct 17 2024, 11:23 AM
Unknown Object (File)
Sep 5 2024, 2:39 PM
Unknown Object (File)
Sep 2 2024, 8:07 PM
Unknown Object (File)
Aug 22 2024, 9:35 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