pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Christoph Berg <myon@debian.org>
Cc: pgsql-hackers@lists.postgresql.org, Michael Paquier <michael@paquier.xyz>
Subject: Re: pgsql: Don't trust unvalidated xl_tot_len.
Date: Sat, 11 Nov 2023 11:43:25 -0800
Message-ID: <20231111194325.d44tjbsofirhqutb@alap3.anarazel.de> (raw)
In-Reply-To: <CA+hUKGJrpmenQWXhTPQ4zqcqzT7e8gKFxrQLL3-9a+Wf1zrxtQ@mail.gmail.com>
References: <E1qjozv-005NY4-Rr@gemulon.postgresql.org>
	<ZU5yKecW5yMKKhtp@msg.df7cb.de>
	<ZU6jwsm4XvmAUUTN@msg.df7cb.de>
	<CA+hUKGLm3+2NZX1pEv+2Ky+MmD+nLeBxsNxKYtowepHUnbg8FQ@mail.gmail.com>
	<ZU9rQYbAenlvgpsg@msg.df7cb.de>
	<CA+hUKGJrpmenQWXhTPQ4zqcqzT7e8gKFxrQLL3-9a+Wf1zrxtQ@mail.gmail.com>

Hi,

On 2023-11-12 07:17:02 +1300, Thomas Munro wrote:
> On Sun, Nov 12, 2023 at 12:53 AM Christoph Berg <myon@debian.org> wrote:
> > Re: Thomas Munro
> > > In the 13 branch we see that's in the new scan_server_header()
> > > subroutine where it tries to open the header, after asking pg_config
> > > --includedir-server where it lives.  Hmm...
> >
> > It's no ok to use pg_config at test time since `make install` might
> > not have been called yet:
> >
> > https://www.postgresql.org/message-id/2023925.1644591595@sss.pgh.pa.us
> > https://www.postgresql.org/message-id/YqkV/hoi2SX91it8@paquier.xyz
> 
> [CC'ing Michael who was involved in that analysis and who also wrote
> those bits of this commit]
> 
> We don't have an installation into the final --prefix, but we have
> tmp_install, surely?

Yea, that should work and does work locally.  I guess it'd fail though, if you
somehow ran the tests with NO_TEMP_INSTALL=1 or such.


> And the tests are run with PATH set to point to
> tmp_install's bin directory.  It looks like it did actually find a
> pg_config executable because otherwise we'd have hit die "could not
> execute pg_config" and failed sooner.  So now I'm wondering if the
> pg_config it found gives the wrong answer for --includedir-server,
> because of Debian's local patches that insert a major version into
> some paths.



view thread (18+ messages)  latest in thread

Message-ID: <20231111194325.d44tjbsofirhqutb@alap3.anarazel.de>
Permalink:  ../20231111194325.d44tjbsofirhqutb@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20231111194325.d44tjbsofirhqutb@alap3.anarazel.de

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de, thomas.munro@gmail.com, myon@debian.org, michael@paquier.xyz
  Subject: Re: pgsql: Don't trust unvalidated xl_tot_len.
  In-Reply-To: <20231111194325.d44tjbsofirhqutb@alap3.anarazel.de>

* 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