memcpy overlap: quickly detect, diagnose, work around
nmiell at gmail.com
Sun Nov 28 23:36:21 UTC 2010
On 11/28/2010 03:13 PM, John Reiser wrote:
> The option to check is controlled by an environment variable
> MEMCPY_CHECK_ which influences choices made by __init_cpu_features
> and the STT_GNU_IFUNC mechanism for choosing alternate implementations
> at runtime.
If you're going to control it via an environment variable, why not just
make a LD_PRELOADed shared library which intercepts memcpy() in the
Doing it that way has the added benefit that anybody could use it
immediately, without needing to replace their glibc with a patched
version that will never get merged upstream.
More information about the devel