Subject: Re: Performance of various memcpy()'s
To: None <email@example.com, firstname.lastname@example.org>
From: Ignatios Souvatzis <email@example.com>
Date: 10/28/2002 21:24:11
Content-Type: text/plain; charset=us-ascii
On Mon, Oct 28, 2002 at 04:41:55PM +0900, Bang Jun-Young wrote:
> Along with this change, I'd like to get rid of _DIAGNOSTIC stuff as well.
> I don't understand why there's such a pointer wraparound check, since
> the memcpy(3) clearily says "use memmove() for overlap case."
Thats a different issue. There have been pointer wraparound attacks to
network daemons known to call memcpy(), a couple of months ago.
> It might
> be worth adding "if you're not sure, always use memmove()." comment
> to memcpy(3).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org
-----END PGP SIGNATURE-----