From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Tighten pg_get_object_address argument checking
Date: Wed, 21 Sep 2022 10:00:20 -0400
Message-ID: <cae11966-002e-982f-0cbe-65a8f2679699@enterprisedb.com> (raw)
In-Reply-To: <CAA4eK1JtKx1+nU_dpyQ3Fh-gef2z6Raw0Uj2st4aH5DDAAag6w@mail.gmail.com>
References: <caaef70b-a874-1088-92ef-5ac38269c33b@enterprisedb.com>
<CAA4eK1JtKx1+nU_dpyQ3Fh-gef2z6Raw0Uj2st4aH5DDAAag6w@mail.gmail.com>
On 21.09.22 12:01, Amit Kapila wrote:
> On Tue, Sep 20, 2022 at 11:14 PM Peter Eisentraut
> <peter.eisentraut@enterprisedb.com> wrote:
>>
>> 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.
>
> LGTM.
Committed, thanks for checking.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: peter.eisentraut@enterprisedb.com, amit.kapila16@gmail.com
Subject: Re: Tighten pg_get_object_address argument checking
In-Reply-To: <cae11966-002e-982f-0cbe-65a8f2679699@enterprisedb.com>
References: <caaef70b-a874-1088-92ef-5ac38269c33b@enterprisedb.com> <CAA4eK1JtKx1+nU_dpyQ3Fh-gef2z6Raw0Uj2st4aH5DDAAag6w@mail.gmail.com> <cae11966-002e-982f-0cbe-65a8f2679699@enterprisedb.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox