aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/ruleutils.c
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2024-09-05 15:32:22 +0200
committerDaniel Gustafsson <dgustafsson@postgresql.org>2024-09-05 15:32:22 +0200
commit85837b8037ada19d319fa4d3ba99c72205868199 (patch)
treecda867c388218f6ae5d83ebab59c7aa23073d56f /src/backend/utils/adt/ruleutils.c
parent4af123ad45bd5e91221983da1152033e6153498c (diff)
downloadpostgresql-85837b8037ada19d319fa4d3ba99c72205868199.tar.gz
postgresql-85837b8037ada19d319fa4d3ba99c72205868199.zip
Fix handling of NULL return value in typarray lookup
Commit 6ebeeae29 accidentally omitted testing the return value from findTypeByOid which can return NULL. Fix by adding a check to make sure that we have a pointer to dereference. Author: Ranier Vilela <ranier.vf@gmail.com> Reviewed-by: Nathan Bossart <nathandbossart@gmail.com> Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Discussion: https://postgr.es/m/CAEudQAqfMTH8Ya_J6E-NW_y_JyDFDxtQ4V_g6nY_1=0oDbQqdg@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/ruleutils.c')
0 files changed, 0 insertions, 0 deletions