aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-01-03 16:26:38 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2016-01-03 16:26:38 -0500
commitab1f08a3a4a855cb9245456866918706ca2fdf06 (patch)
tree23fed1198a0fc0be37763830ba3a57c44fcadce6 /src/backend/access/gist
parent2e5c9284f688d124b0169ff5b86003ca86842666 (diff)
downloadpostgresql-ab1f08a3a4a855cb9245456866918706ca2fdf06.tar.gz
postgresql-ab1f08a3a4a855cb9245456866918706ca2fdf06.zip
Guard against null arguments in binary_upgrade_create_empty_extension().
The CHECK_IS_BINARY_UPGRADE macro is not sufficient security protection if we're going to dereference pass-by-reference arguments before it. But in any case we really need to explicitly check PG_ARGISNULL for all the arguments of a non-strict function, not only the ones we expect null values for. Oversight in commits 30982be4e5019684e1772dd9170aaa53f5a8e894 and f92fc4c95ddcc25978354a8248d3df22269201bc. Found by Andreas Seltenreich. (The other usages in pg_upgrade_support.c seem safe.)
Diffstat (limited to 'src/backend/access/gist')
0 files changed, 0 insertions, 0 deletions