HomeFreeBSD

memcpy.3: remove BUGS section allowing overlapping strings

Description

memcpy.3: remove BUGS section allowing overlapping strings

The removed text claimed that memcpy is implemented using bcopy and thus
strings may overlap. Use of bcopy is an implementation detail that is
no longer true, even if the implementation (on some archs) does allow
overlap.

In any case behaviour is undefined per the C standard if memcpy is
called with overlapping objects, and this man page already claimed that
src and dst may not overlap.

Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D31192

(cherry picked from commit 37296464defda0aa769c39ab554deb4875aef000)

Details

Provenance
emasteAuthored on Aug 24 2021, 1:20 PM
Reviewer
kib
Differential Revision
D31192: memcpy.3: remove BUGS section allowing overlapping strings
Parents
rGdb9863a7975d: rescue: include ping iff at least one of INET & INET6 is enabled
Branches
Unknown
Tags
Unknown