diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2023-03-19 15:36:16 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2023-03-19 15:36:16 -0400 |
commit | e060cd59fabda2a0b2a7e119a58887791d030942 (patch) | |
tree | 238237825c63ee9ba507e0930434c17f29d46b18 /src/backend/access/gist/gist.c | |
parent | 4f46f870fa56fa73d6678273f1bd059fdd93d5e6 (diff) | |
download | postgresql-e060cd59fabda2a0b2a7e119a58887791d030942.tar.gz |
Avoid copying undefined data in _readA_Const().
nodeRead() will have created a Node struct that's only allocated big
enough for the specific node type, so copying sizeof(union ValUnion)
can be copying too much. This provokes valgrind complaints, and with
very bad luck could perhaps result in SIGSEGV.
While at it, tidy up _equalA_Const to avoid duplicate checks of isnull.
Per report from Alexander Lakhin. This code is new as of a6bc33019,
so no need to back-patch.
Discussion: https://postgr.es/m/4995256b-cc65-170e-0b22-60ad2cd535f1@gmail.com
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions