Page MenuHomeFreeBSD

Avoid copying too much from the input string.
ClosedPublic

Authored by brooks on Jul 19 2019, 10:47 PM.

Details

Summary

This avoids reading past the end of the static strings. On a system
with bounds checking these tests fault.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

brooks created this revision.Jul 19 2019, 10:47 PM
asomers accepted this revision.Jul 19 2019, 11:09 PM

LGTM. But in the commit message, change "One a system" to "On a system".

This revision is now accepted and ready to land.Jul 19 2019, 11:09 PM
brooks edited the summary of this revision. (Show Details)Jul 19 2019, 11:15 PM
This revision was automatically updated to reflect the committed changes.