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
F170825932: D24567.id.diff
Sun, Sep 6, 9:05 PM
F170781413: D24567.diff
Sun, Sep 6, 2:35 PM
F170776337: D24567.id.diff
Sun, Sep 6, 1:58 PM
F170757387: D24567.id70971.diff
Sun, Sep 6, 11:00 AM
F170755329: D24567.diff
Sun, Sep 6, 10:40 AM
F170754490: D24567.id71071.diff
Sun, Sep 6, 10:34 AM
Unknown Object (File)
Sat, Sep 5, 4:32 PM
Unknown Object (File)
Thu, Sep 3, 9:17 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