aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.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:36 -0500
commit47226971e19fa202a42a55118ca2f133bfa6ffbd (patch)
treed57fb5eeaa5c146397afbba94cf85ceebbe91261 /src/backend/executor/nodeModifyTable.c
parentae6ed07841766867ab7c0f04b996deee140dba19 (diff)
downloadpostgresql-47226971e19fa202a42a55118ca2f133bfa6ffbd.tar.gz
postgresql-47226971e19fa202a42a55118ca2f133bfa6ffbd.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/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions