aboutsummaryrefslogtreecommitdiff
path: root/src/common/compression.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2022-09-21 09:34:22 -0400
committerPeter Eisentraut <peter@eisentraut.org>2022-09-21 09:42:22 -0400
commitab7032b3a8fec281db71acfc37c5c92fc65b08ae (patch)
treebc95c439901a0037e50aeef428088052e3a90578 /src/common/compression.c
parent1d3955266a5d9e71dc002634926210ccab8b15dc (diff)
downloadpostgresql-ab7032b3a8fec281db71acfc37c5c92fc65b08ae.tar.gz
postgresql-ab7032b3a8fec281db71acfc37c5c92fc65b08ae.zip
Tighten pg_get_object_address argument checking
For publication schemas (OBJECT_PUBLICATION_NAMESPACE) and user mappings (OBJECT_USER_MAPPING), pg_get_object_address() checked the array length of the second argument, but not of the first argument. If the first argument was too long, it would just silently ignore everything but the first argument. Fix that by checking the length of the first argument as well. Reviewed-by: Amit Kapila <amit.kapila16@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/caaef70b-a874-1088-92ef-5ac38269c33b%40enterprisedb.com
Diffstat (limited to 'src/common/compression.c')
0 files changed, 0 insertions, 0 deletions