Re: Fix infinite loop from setting scram_iterations to INT_MAX

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Richard Guo <guofenglinux(at)gmail(dot)com>
Cc: Kevin K Biju <kevinkbiju(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Fix infinite loop from setting scram_iterations to INT_MAX
Date: 2025-03-24 00:54:50
Message-ID: Z-CtWorth2Lb6FPs@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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..
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Richard Guo 2025-03-24 00:59:25 Re: Fix infinite loop from setting scram_iterations to INT_MAX
Previous Message Richard Guo 2025-03-24 00:50:36 Re: Fix infinite loop from setting scram_iterations to INT_MAX