/[base]
ViewVC logotype

Revision 359505


Jump to revision: Previous Next
Author: andrew
Date: Wed Apr 1 09:51:29 2020 UTC (4 years, 3 months ago)
Changed paths: 1
Log Message:
Use memmove to copy within a buffer

jail(8) would try to use strcpy to remove the interface from the start of
an IP address. This is undefined, and on arm64 will result in unexpected
IPv6 addresses.

Fix this by using memmove top move the string.

PR:		245102
Reported by:	sbruno
MFC after:	2 weeks
Sponsored by:	Innovate UK


Changed paths

Path Details
Directoryhead/usr.sbin/jail/config.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27