freebsd-src/sbin/route
Kyle Evans 158f319428 route: avoid overlapping strcpy
Passing overlapping buffers to strcpy yields an undefined result, so
let's avoid it. The copy doesn't really need to happen anyways, we can
just point to the domain part of the hostname.

This was discovered with _FORTIFY_SOURCE.

Sponsored by:	Klara, Inc.
Sponsored by:	Stormshield
Reviewed by:	allanjude, emaste, imp, melifaro (all previous version)
Differential Revision:	https://reviews.freebsd.org/D32615
2024-07-23 15:25:56 -05:00
..
tests Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
keywords sbin: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
route.8 sbin: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
route.c route: avoid overlapping strcpy 2024-07-23 15:25:56 -05:00
route_netlink.c netlink: cope with growing requests 2023-10-17 08:47:52 +02:00