Re: Fix infinite loop from setting scram_iterations to INT_MAX - Mailing list pgsql-hackers

From Richard Guo
Subject Re: Fix infinite loop from setting scram_iterations to INT_MAX
Date
Msg-id CAMbWs4_rCrs=y7DGJcGAvfScUCpAECqg3344WxLuPTOU1v6b2A@mail.gmail.com
Whole thread Raw
In response to Re: Fix infinite loop from setting scram_iterations to INT_MAX  (Richard Guo <guofenglinux@gmail.com>)
Responses Re: Fix infinite loop from setting scram_iterations to INT_MAX
Re: Fix infinite loop from setting scram_iterations to INT_MAX
List pgsql-hackers
On Mon, Mar 24, 2025 at 9:59 AM Richard Guo <guofenglinux@gmail.com> wrote:
> On Mon, Mar 24, 2025 at 9:54 AM Michael Paquier <michael@paquier.xyz> wrote:
> > On Mon, Mar 24, 2025 at 09:50:36AM +0900, Richard Guo wrote:
> > > Nice catch.  The fix looks good to me.  It seems to me that it's fine
> > > to go without a test case, since the fix is quite straightforward.

> > One could argue about using an injection point to force trick the
> > iteration loop to be cheaper, but I could not really get excited about
> > the coverage vs the cycles spent for it..

> Exactly.

I plan to go ahead and push Kevin's fix, barring any objections.

Thanks
Richard



pgsql-hackers by date:

Previous
From: Richard Guo
Date:
Subject: Re: Reduce "Var IS [NOT] NULL" quals during constant folding
Next
From: Peter Eisentraut
Date:
Subject: Re: Update LDAP Protocol in fe-connect.c to v3