git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 3d4e841) | patch
Tighten pg_get_object_address argument checking
2022年9月21日 13:34:22 +0000 (09:34 -0400)
2022年9月21日 13:42:35 +0000 (09:42 -0400)
commit 2da8c4cff39328897aa716a0ba57bdada5aeaf6e
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
src/backend/catalog/objectaddress.c diff | blob | blame | history
src/test/regress/expected/object_address.out diff | blob | blame | history
src/test/regress/sql/object_address.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /