]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: 325765 (imp) Add notes about overlapping copies.
authorrgrimes <rgrimes@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 22 Jan 2019 21:52:07 +0000 (21:52 +0000)
committerrgrimes <rgrimes@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 22 Jan 2019 21:52:07 +0000 (21:52 +0000)
commit4c4a7758dd450d4a19ace0435a734c8ccfc1aa98
tree7184207268af43f43d93918dc25859a914697cba
parent6ca625de41791d0667bdbbdf5d4a6cef8481bb6c
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)

git-svn-id: svn://svn.freebsd.org/base/stable/10@343326 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/string/memcpy.3
lib/libc/string/strcat.3
lib/libc/string/strcpy.3