postgresql/contrib/hstore
Tom Lane 630aceda5b Avoid formally-undefined use of memcpy() in hstoreUniquePairs().
hstoreUniquePairs() often called memcpy with equal source and destination
pointers.  Although this is almost surely harmless in practice, it's
undefined according to the letter of the C standard.  Some versions of
valgrind will complain about it, and some versions of libc as well
(cf. commit ad520ec4a).  Tweak the code to avoid doing that.

Noted by Tomas Vondra.  Back-patch to all supported versions because
of the hazard of libc assertions.

Discussion: https://postgr.es/m/bf84d940-90d4-de91-19dd-612e011007f4@fuzzy.cz
2017-11-25 14:42:32 -05:00
..
data Add GIN support for pg_trgm. From Guillaume Smet <guillaume.smet@gmail.com> 2007-03-14 14:21:53 +00:00
expected Fix IsValidJsonNumber() to notice trailing non-alphanumeric garbage. 2016-02-03 01:39:48 -05:00
sql Fix IsValidJsonNumber() to notice trailing non-alphanumeric garbage. 2016-02-03 01:39:48 -05:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
hstore_compat.c Dodge a macro-name conflict with Perl. 2015-11-19 14:54:11 -05:00
hstore_gin.c Dodge a macro-name conflict with Perl. 2015-11-19 14:54:11 -05:00
hstore_gist.c Dodge a macro-name conflict with Perl. 2015-11-19 14:54:11 -05:00
hstore_io.c Avoid formally-undefined use of memcpy() in hstoreUniquePairs(). 2017-11-25 14:42:32 -05:00
hstore_op.c Dodge a macro-name conflict with Perl. 2015-11-19 14:54:11 -05:00
hstore--1.0--1.1.sql Fix typo in update scripts for some contrib modules. 2013-07-19 04:13:01 +09:00
hstore--1.1--1.2.sql Fix whitespace issues found by git diff --check, add gitattributes 2013-11-10 14:48:29 -05:00
hstore--1.2--1.3.sql Introduce jsonb, a structured format for storing json. 2014-03-23 16:40:19 -04:00
hstore--1.3--1.4.sql Update extensions with GIN/GIST support for parallel query. 2016-06-14 13:34:37 -04:00
hstore--1.4.sql Update extensions with GIN/GIST support for parallel query. 2016-06-14 13:34:37 -04:00
hstore--unpackaged--1.0.sql Fix typos in some error messages thrown by extension scripts when fed to psql. 2014-08-25 18:30:37 +02:00
hstore.control Handle contrib's GIN/GIST support function signature changes honestly. 2016-06-09 16:44:25 -04:00
hstore.h Dodge a macro-name conflict with Perl. 2015-11-19 14:54:11 -05:00
Makefile Handle contrib's GIN/GIST support function signature changes honestly. 2016-06-09 16:44:25 -04:00