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)
Sat, Jan 11, 7:03 AM
Unknown Object (File)
Sun, Jan 5, 4:15 PM
Unknown Object (File)
Sep 30 2024, 5:59 AM
Unknown Object (File)
Sep 22 2024, 11:37 PM
Unknown Object (File)
Sep 22 2024, 9:51 AM
Unknown Object (File)
Sep 21 2024, 4:22 PM
Unknown Object (File)
Sep 21 2024, 12:48 AM
Unknown Object (File)
Sep 19 2024, 5:28 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