Page MenuHomeFreeBSD

route: avoid overlapping strcpy
ClosedPublic

Authored by kevans on Oct 23 2021, 6:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 18, 1:36 AM
Unknown Object (File)
Nov 25 2024, 8:17 PM
Unknown Object (File)
Nov 21 2024, 9:41 PM
Unknown Object (File)
Oct 19 2024, 5:04 PM
Unknown Object (File)
Oct 18 2024, 10:43 AM
Unknown Object (File)
Oct 9 2024, 3:53 AM
Unknown Object (File)
Oct 7 2024, 5:49 PM
Unknown Object (File)
Oct 4 2024, 5:55 AM
Subscribers

Details

Summary

Passing overlapping buffers to strcpy yields an undefined result, so
let's avoid it. The copy doesn't really need to happen anyways.

This was discovered with _FORTIFY_SOURCE.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 42322
Build 39210: arc lint + arc unit