pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Avoid formally-undefined use of memcpy() in hstoreUniquePairs(). 6+ messages / 1 participants [nested] [flat]
* pgsql: Avoid formally-undefined use of memcpy() in hstoreUniquePairs(). @ 2017-11-25 19:43 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2017-11-25 19:43 UTC (permalink / raw) To: pgsql-committers 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 Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/630aceda5be79551b6772ab230fddfc4edbb63eb Modified Files -------------- contrib/hstore/hstore_io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Avoid formally-undefined use of memcpy() in hstoreUniquePairs(). @ 2017-11-25 19:43 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2017-11-25 19:43 UTC (permalink / raw) To: pgsql-committers 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 Branch ------ REL9_3_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/6e9ac0a2e2a62449f0c1a89563f80b7bb71c6121 Modified Files -------------- contrib/hstore/hstore_io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Avoid formally-undefined use of memcpy() in hstoreUniquePairs(). @ 2017-11-25 19:43 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2017-11-25 19:43 UTC (permalink / raw) To: pgsql-committers 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 Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/5c38ddebd66bc239b23fe20d489fe03c9ebd4e28 Modified Files -------------- contrib/hstore/hstore_io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Avoid formally-undefined use of memcpy() in hstoreUniquePairs(). @ 2017-11-25 19:43 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2017-11-25 19:43 UTC (permalink / raw) To: pgsql-committers 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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/d3f4e8a8a78be60f3a971f1f8ef6acc2d0576e5f Modified Files -------------- contrib/hstore/hstore_io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Avoid formally-undefined use of memcpy() in hstoreUniquePairs(). @ 2017-11-25 19:43 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2017-11-25 19:43 UTC (permalink / raw) To: pgsql-committers 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 Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/47226971e19fa202a42a55118ca2f133bfa6ffbd Modified Files -------------- contrib/hstore/hstore_io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Avoid formally-undefined use of memcpy() in hstoreUniquePairs(). @ 2017-11-25 19:43 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2017-11-25 19:43 UTC (permalink / raw) To: pgsql-committers 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 Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ddba320059fcce0126ea43f0c0404d3ed1ce47aa Modified Files -------------- contrib/hstore/hstore_io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2017-11-25 19:43 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2017-11-25 19:43 pgsql: Avoid formally-undefined use of memcpy() in hstoreUniquePairs(). Tom Lane <tgl@sss.pgh.pa.us> 2017-11-25 19:43 pgsql: Avoid formally-undefined use of memcpy() in hstoreUniquePairs(). Tom Lane <tgl@sss.pgh.pa.us> 2017-11-25 19:43 pgsql: Avoid formally-undefined use of memcpy() in hstoreUniquePairs(). Tom Lane <tgl@sss.pgh.pa.us> 2017-11-25 19:43 pgsql: Avoid formally-undefined use of memcpy() in hstoreUniquePairs(). Tom Lane <tgl@sss.pgh.pa.us> 2017-11-25 19:43 pgsql: Avoid formally-undefined use of memcpy() in hstoreUniquePairs(). Tom Lane <tgl@sss.pgh.pa.us> 2017-11-25 19:43 pgsql: Avoid formally-undefined use of memcpy() in hstoreUniquePairs(). Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox