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)
Fri, Apr 17, 11:21 AM
Unknown Object (File)
Sun, Mar 22, 7:36 AM
Unknown Object (File)
Sat, Mar 21, 5:13 PM
Unknown Object (File)
Mar 20 2026, 5:02 AM
Unknown Object (File)
Mar 20 2026, 5:02 AM
Unknown Object (File)
Mar 19 2026, 7:59 AM
Unknown Object (File)
Mar 19 2026, 7:27 AM
Unknown Object (File)
Mar 19 2026, 2:25 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

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