aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-06-18 20:51:59 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-06-18 20:51:59 +0000
commit41d28499a28249549d8f589370348479ff7232af (patch)
tree9e2b1219de902ca0967887f6bea05b00cf8390c9 /src/backend/access/gist/gist.c
parent2b6dd51a5f85e904bc14f7ef00ea89fd003bdf1d (diff)
downloadpostgresql-41d28499a28249549d8f589370348479ff7232af.tar.gz
postgresql-41d28499a28249549d8f589370348479ff7232af.zip
When using C-string lookup keys in a dynahash.c hash table, use strncpy()
not memcpy() to copy the offered key into the hash table during HASH_ENTER. This avoids possible core dump if the passed key is located very near the end of memory. Per report from Stefan Kaltenbrunner.
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions