Re: [PATCH] pgcrypto: Fix sha-crypt rounds= values that do not fit in int (BUG #19743)

From: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
To: Prashant Chinnam <crprashant(at)hotmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org, "Ideriha, Takeshi" <iderihatakeshi(at)gmail(dot)com>, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: [PATCH] pgcrypto: Fix sha-crypt rounds= values that do not fit in int (BUG #19743)
Date: 2026-12-01 21:18:01
Message-ID: CAN4CZFO-6rHeN1koRSRZu5H9qKceDHuj7KJu4HtByTcbXHqpvg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello

This is mostly nitpicking, but:

SELECT crypt('sample', '$5$rounds=' || repeat(' ', 10) || '5$abc') =
crypt('sample', '$5$rounds=1000$abc');
-- patched: NOTICE: rounds= ... is below supported value
(1000), using 1000 instead
-- master: NOTICE: rounds=5 is below supported value (1000), using
1000 instead

is this definitely an improvement?

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Smith 2026-12-01 21:34:38 Re: [PATCH] Report changes discarded for relations not in the subscription
Previous Message David Rowley 2026-12-01 21:08:24 Re: Should we add timing output to pg_upgrade?