[hatari-devel] Check memcpy() with valgrind
Eero Tamminen
eerot at users.berlios.de
Thu Nov 11 20:01:44 CET 2010
Hi,
On Thursday 11 November 2010, David Savinkoff wrote:
> There is a gotcha with memcpy that is currently creating a stir.
> http://lwn.net/Articles/414467/#Comments
It's not really a gotcha. Using memcpy() on overlapping regions is
undefined behavior and non-portable. Doing that is a bug like any
other bugs.
I've checked Hatari many times with Valgrind, ElectricFence/Duma,
Mudflap... It shouldn't have this kind beginner errors.
- Eero
More information about the hatari-devel
mailing list