]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: 325765 (imp) Add notes about overlapping copies.
authorrgrimes <rgrimes@FreeBSD.org>
Tue, 22 Jan 2019 21:52:07 +0000 (21:52 +0000)
committerrgrimes <rgrimes@FreeBSD.org>
Tue, 22 Jan 2019 21:52:07 +0000 (21:52 +0000)
commit7260b9eafc8451ad80d7d4e1f69d0a9c58683b53
treeee9c8d67878e96990f7418b3154f87ec0ace4dad
parenta5c195d21f732246fa52d87824fc98f3d920c04a
MFC: 325765 (imp) Add notes about overlapping copies.

Add notes to each of these that specifically state that results are
undefined if the strings overlap. In the case of memcpy, we document
the overlapping behavior on FreeBSD (pre-existing). For str*, it is
left unspecified, however, since the default (and x86) implementations
do not handle overlapping strings properly.

PR: 223653
Approved by: phk (mentor)
lib/libc/string/memcpy.3
lib/libc/string/strcat.3
lib/libc/string/strcpy.3