]> granicus.if.org Git - postgresql/commit
When targetlist is NULL, ExecTargetList was passing back a
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 12 Jun 1999 19:22:40 +0000 (19:22 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 12 Jun 1999 19:22:40 +0000 (19:22 +0000)
commit1918a1d1911a7e8bd6bd6c835bf127b4da741f7b
treec288ae553bd6bf4d47ae5cd57162831601afa0f1
parent0c3281ce7c0b66d2f6a9d06b8bd475691c37c2b5
When targetlist is NULL, ExecTargetList was passing back a
pointer to palloc'd but uninitialized memory.  This is not cool; anyone looking
at the returned 'tuple' would at best coredump and at worst behave in a
bizarre and irreproducible way.  Fix it to return a predictable value,
namely a correctly-set-up palloc'd tuple containing zero attributes.
I believe this fix is both safe and critical.
src/backend/executor/execQual.c