diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-06-18 20:51:44 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-06-18 20:51:44 +0000 |
commit | 558ff41f27da0d5a5fc9c0c9a6958bb32035b487 (patch) | |
tree | ff4ec79144c85c60585d1601956dbdfe6b8376a0 /src/backend/access/gist/gist.c | |
parent | 9f64e10225e22c1fde7c001a815abe8577119541 (diff) | |
download | postgresql-558ff41f27da0d5a5fc9c0c9a6958bb32035b487.tar.gz postgresql-558ff41f27da0d5a5fc9c0c9a6958bb32035b487.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