aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/sql/postgres_fdw.sql
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2024-01-22 20:44:38 -0600
committerNathan Bossart <nathan@postgresql.org>2024-01-22 20:44:38 -0600
commit4372adfa24f2f5ddc587317d634b5389bd764106 (patch)
tree3fac41ae7e0a99b9c4498157bb4f4e82e64bb947 /contrib/postgres_fdw/sql/postgres_fdw.sql
parentcdd863480c27b406ac14e94f1fe122b98ea562b4 (diff)
downloadpostgresql-4372adfa24f2f5ddc587317d634b5389bd764106.tar.gz
postgresql-4372adfa24f2f5ddc587317d634b5389bd764106.zip
Fix possible NULL pointer dereference in GetNamedDSMSegment().
GetNamedDSMSegment() doesn't check whether dsm_attach() returns NULL, which creates the possibility of a NULL pointer dereference soon after. To fix, emit an ERROR if dsm_attach() returns NULL. This shouldn't happen, but it would be nice to avoid a segfault if it does. In passing, tidy up the surrounding code. Reported-by: Tom Lane Reviewed-by: Michael Paquier, Bharath Rupireddy Discussion: https://postgr.es/m/3348869.1705854106%40sss.pgh.pa.us
Diffstat (limited to 'contrib/postgres_fdw/sql/postgres_fdw.sql')
0 files changed, 0 insertions, 0 deletions