Page MenuHomeFreeBSD

Make sure f_name is nul-terminated.
ClosedPublic

Authored by delphij on Sep 17 2015, 7:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 7, 9:24 AM
Unknown Object (File)
Thu, Sep 18, 1:18 AM
Unknown Object (File)
Sep 10 2025, 4:39 AM
Unknown Object (File)
Sep 3 2025, 3:11 AM
Unknown Object (File)
Aug 26 2025, 9:26 PM
Unknown Object (File)
Aug 19 2025, 9:08 PM
Unknown Object (File)
Aug 16 2025, 6:46 AM
Unknown Object (File)
Aug 15 2025, 7:45 AM
Subscribers

Details

Summary

Use strlcpy instead of strncpy because subsequent mkstemps
expects the string be nul-terminated.

Diff Detail

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

Event Timeline

delphij retitled this revision from to Make sure f_name is nul-terminated..
delphij updated this object.
delphij edited the test plan for this revision. (Show Details)
delphij added reviewers: grehan, neel.
neel edited edge metadata.

Looks good. Thanks for fixing.

This revision is now accepted and ready to land.Sep 17 2015, 5:53 PM
This revision was automatically updated to reflect the committed changes.