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
F140372675: D24567.diff
Tue, Dec 23, 4:16 AM
Unknown Object (File)
Fri, Nov 28, 9:11 AM
Unknown Object (File)
Nov 22 2025, 2:25 PM
Unknown Object (File)
Nov 20 2025, 9:21 PM
Unknown Object (File)
Nov 18 2025, 11:15 PM
Unknown Object (File)
Nov 13 2025, 10:10 PM
Unknown Object (File)
Nov 3 2025, 11:32 PM
Unknown Object (File)
Nov 1 2025, 5:28 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