Re: fix memcpy() overlap - Mailing list pgsql-patches

From Neil Conway
Subject Re: fix memcpy() overlap
Date
Msg-id 87broh6uf0.fsf@mailbox.samurai.com
Whole thread Raw
In response to Re: fix memcpy() overlap  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Tom Lane <tgl@sss.pgh.pa.us> writes:
> This isn't a bug

If that's the case I'm content with not changing the code, but I'd
rather not just take it on faith: can you point me to some authority
that says two objects with the same address do not "overlap"?

(I checked C99 (draft 843) and while it references overlapping objects
several times, it never precisely defines the term.)

> I see no reason to clutter the code just to shut up valgrind.

Sure -- it is either our bug, or a bug in valgrind.

-Neil


pgsql-patches by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Win32 signals patch #2
Next
From: "Nicolai Tufar"
Date:
Subject: Re: C locale sort in src/tools/make_ctags - solved