]> granicus.if.org Git - postgresql/commit
Prevent segfault in expand_tuple with no missing values
authorAndrew Dunstan <andrew@dunslane.net>
Fri, 13 Apr 2018 20:43:33 +0000 (16:43 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Fri, 13 Apr 2018 20:43:33 +0000 (16:43 -0400)
commit7c44c46deb495a2f3861f402d7f2109263e3d50a
tree2de4f5483b2366a69050fffbd0a9e5bacf29c15c
parent8bf358c18ec930ddfb998873369e2fc38608d3e1
Prevent segfault in expand_tuple with no missing values

Commit 16828d5c forgot to check that it had a set of missing values
before trying to retrieve a value from it.

An additional query to add coverage for this code is added to the
regression test.

Per bug report from Andreas Seltenreich.
src/backend/access/common/heaptuple.c
src/test/regress/expected/fast_default.out
src/test/regress/sql/fast_default.sql