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, Oct 2, 4:02 PM
Unknown Object (File)
Wed, Sep 30, 11:15 AM
Unknown Object (File)
Sep 12 2026, 4:28 PM
Unknown Object (File)
Sep 12 2026, 4:28 PM
Unknown Object (File)
Sep 11 2026, 10:36 PM
Unknown Object (File)
Sep 11 2026, 8:17 PM
Unknown Object (File)
Sep 11 2026, 7:08 PM
Unknown Object (File)
Sep 11 2026, 1:48 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