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)
Thu, Sep 3, 9:17 PM
Unknown Object (File)
Tue, Sep 1, 9:02 PM
Unknown Object (File)
Tue, Sep 1, 4:39 AM
Unknown Object (File)
Mon, Aug 31, 8:26 AM
Unknown Object (File)
Sun, Aug 30, 8:31 PM
Unknown Object (File)
Sat, Aug 29, 12:31 AM
Unknown Object (File)
Sat, Aug 29, 12:30 AM
Unknown Object (File)
Wed, Aug 26, 11:40 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