aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeProjectSet.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-11-25 14:42:10 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2017-11-25 14:42:10 -0500
commitd3f4e8a8a78be60f3a971f1f8ef6acc2d0576e5f (patch)
tree7dc66e011afbba57ccbc79a040b3c475e0bd8205 /src/backend/executor/nodeProjectSet.c
parent9b63c13f0a213bfb38bb70a3df3f28cc1f496b30 (diff)
downloadpostgresql-d3f4e8a8a78be60f3a971f1f8ef6acc2d0576e5f.tar.gz
postgresql-d3f4e8a8a78be60f3a971f1f8ef6acc2d0576e5f.zip
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
Diffstat (limited to 'src/backend/executor/nodeProjectSet.c')
0 files changed, 0 insertions, 0 deletions