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)
Mon, Dec 29, 1:05 AM
Unknown Object (File)
Thu, Dec 25, 4:03 AM
Unknown Object (File)
Tue, Dec 23, 4:16 AM
Unknown Object (File)
Nov 28 2025, 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
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