[cairo] valgrind complaint
Behdad Esfahbod
behdad at behdad.org
Tue Jan 30 12:50:08 PST 2007
On Tue, 2007-01-30 at 09:08 -0500, Benjamin Otte wrote:
> Hi,
>
> I've just had valgrind complain to me about "Source and destination
> overlap in memcpy" (on PPC btw). I'm not sure if this is a bug in
> cairo
> or if it's gcc's fault. I'll attach a patch for you.
Is this happening with nil surfaces? Otherwise I can't imagine why the
clone may have the same address of src.
It's probably the case that glibc's version of memcpy correctly handles
some kinds of overlaps (say, where src and dst are equal), and gcc is
relying on that.
> Benjamin
>
--
behdad
http://behdad.org/
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin, 1759
More information about the cairo
mailing list