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
F137336393: D24567.diff
Sat, Nov 22, 2:25 PM
Unknown Object (File)
Thu, Nov 20, 9:21 PM
Unknown Object (File)
Tue, Nov 18, 11:15 PM
Unknown Object (File)
Thu, Nov 13, 10:10 PM
Unknown Object (File)
Mon, Nov 3, 11:32 PM
Unknown Object (File)
Sat, Nov 1, 5:28 AM
Unknown Object (File)
Mon, Oct 27, 6:57 AM
Unknown Object (File)
Mon, Oct 27, 5:47 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable