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)
Mon, Jun 22, 4:35 PM
Unknown Object (File)
Sun, Jun 21, 12:50 AM
Unknown Object (File)
Fri, Jun 19, 6:38 PM
Unknown Object (File)
May 22 2026, 10:37 AM
Unknown Object (File)
May 15 2026, 9:43 AM
Unknown Object (File)
May 15 2026, 5:26 AM
Unknown Object (File)
May 14 2026, 9:17 PM
Unknown Object (File)
May 11 2026, 9:07 PM
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.