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)
Sun, Apr 13, 7:37 AM
Unknown Object (File)
Mar 9 2025, 11:56 PM
Unknown Object (File)
Mar 7 2025, 9:12 AM
Unknown Object (File)
Mar 1 2025, 4:08 PM
Unknown Object (File)
Feb 25 2025, 9:28 PM
Unknown Object (File)
Feb 23 2025, 4:44 PM
Unknown Object (File)
Feb 23 2025, 4:21 AM
Unknown Object (File)
Feb 22 2025, 2:08 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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 30716
Build 28445: arc lint + arc unit