Page MenuHomeFreeBSD

Don't run strcmp() against strings stored in user memory.
ClosedPublic

Authored by jhb on Apr 24 2020, 11:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 7:43 AM
Unknown Object (File)
Jul 9 2023, 3:02 AM
Unknown Object (File)
Jul 9 2023, 3:02 AM
Unknown Object (File)
Jul 9 2023, 3:02 AM
Unknown Object (File)
Jul 4 2023, 4:21 PM
Unknown Object (File)
May 10 2023, 10:02 AM
Unknown Object (File)
Dec 11 2022, 12:50 AM
Subscribers

Details

Summary

Instead, copy the strings into a temporary buffer on the stack and
run strcmp on the copies.

Test Plan
  • compile tested only

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable