aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/ruleutils.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2024-05-03 11:10:40 +0200
committerPeter Eisentraut <peter@eisentraut.org>2024-05-03 11:10:40 +0200
commit8f0a97dfffc5b5f48f609fb894befcdf761dd576 (patch)
tree25161b8b081bd79a69db9b8b5dde904bbb2ac08a /src/backend/utils/adt/ruleutils.c
parent91e7115b177b0523f9757574b8a329ebe10c0af7 (diff)
downloadpostgresql-8f0a97dfffc5b5f48f609fb894befcdf761dd576.tar.gz
postgresql-8f0a97dfffc5b5f48f609fb894befcdf761dd576.zip
Fix segmentation fault in MergeInheritedAttribute()
While converting a pg_attribute tuple into a ColumnDef, ColumnDef::compression remains NULL if there is no compression method set fot the attribute. Calling strcmp() with NULL ColumnDef::compression, when comparing compression methods of parents, causes segmentation fault in MergeInheritedAttribute(). Skip comparing compression methods if either of them is NULL. Author: Ashutosh Bapat <ashutosh.bapat@enterprisedb.com> Reported-by: Alexander Lakhin <exclusion@gmail.com> Discussion: https://www.postgresql.org/message-id/b22a6834-aacb-7b18-0424-a3f5fe889667%40gmail.com
Diffstat (limited to 'src/backend/utils/adt/ruleutils.c')
0 files changed, 0 insertions, 0 deletions