pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Bruce Momjian <bruce@momjian.us>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: move hex_decode() to /common so it can be called from frontend
Date: Fri, 25 Dec 2020 09:04:41 +0900
Message-ID: <X+UsmYFlBALRMpM7@paquier.xyz> (raw)
In-Reply-To: <20201224231620.GA21105@momjian.us>
References: <E1ksZ3Y-0006le-FE@gemulon.postgresql.org>
	<1080268.1608851689@sss.pgh.pa.us>
	<20201224231620.GA21105@momjian.us>

On Thu, Dec 24, 2020 at 06:16:20PM -0500, Bruce Momjian wrote:
> On Thu, Dec 24, 2020 at 06:14:49PM -0500, Tom Lane wrote:
>> Bruce Momjian <bruce@momjian.us> writes:
>> > move hex_decode() to /common so it can be called from frontend
>> 
>> The buildfarm seems pretty unimpressed with this.
> 
> Yes, we are working on reverting the ecpg part.

Looks like the defense put in place by 6b1c5ca has allowed to catch up
a bug here.  When base64 has been copied from encode.c to src/common/
for SCRAM (newlines should not be handled by SCRAM, hence the copy),
we have done the same.  The copied code just returns -1 for error
paths.  For this case, I think that you should also prefix those
functions with "pg_", and also include the encode part for
completeness.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (7+ messages)  latest in thread

Message-ID: <X+UsmYFlBALRMpM7@paquier.xyz>
Permalink:  ../X+UsmYFlBALRMpM7@paquier.xyz/
Also on:    postgresql.org/message-id/X+UsmYFlBALRMpM7@paquier.xyz

 · 

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 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-committers@postgresql.org
  Cc: michael@paquier.xyz, bruce@momjian.us, tgl@sss.pgh.pa.us
  Subject: Re: pgsql: move hex_decode() to /common so it can be called from frontend
  In-Reply-To: <X+UsmYFlBALRMpM7@paquier.xyz>
  References: <E1ksZ3Y-0006le-FE@gemulon.postgresql.org> <1080268.1608851689@sss.pgh.pa.us> <20201224231620.GA21105@momjian.us> <X+UsmYFlBALRMpM7@paquier.xyz>

* 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