diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-06-18 20:51:59 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-06-18 20:51:59 +0000 |
commit | 41d28499a28249549d8f589370348479ff7232af (patch) | |
tree | 9e2b1219de902ca0967887f6bea05b00cf8390c9 /src/backend/access/gist/gist.c | |
parent | 2b6dd51a5f85e904bc14f7ef00ea89fd003bdf1d (diff) | |
download | postgresql-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