From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Follow-up fixes for SHA-2 patch (commit 749a9e20c). |
Date: | 2025-04-07 18:14:33 |
Message-ID: | E1u1qzR-003A9q-2d@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Follow-up fixes for SHA-2 patch (commit 749a9e20c).
This changes the check for valid characters in the salt string to
only allow plain ASCII letters and digits. The previous coding was
locale-dependent which doesn't really seem like a great idea here;
moreover it could not work correctly in multibyte encodings.
This fixes a careless pointer-use-after-pfree, too.
Reported-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Reported-by: Andres Freund <andres(at)anarazel(dot)de>
Author: Bernd Helmle <mailings(at)oopsware(dot)de>
Discussion: https://postgr.es/m/6fab35422df6b6b9727fdcc243c5fa1c667dd3b5.camel@oopsware.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/969ab9d4f5d141ac25db092a0e5cd004d3d60a60
Modified Files
--------------
contrib/pgcrypto/crypt-sha.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Masahiko Sawada | 2025-04-07 19:13:52 | pgsql: doc: Fix a typo in pg_recvlogical documentation. |
Previous Message | Tom Lane | 2025-04-07 17:32:09 | pgsql: Fix erroneous construction of functions' dependencies on transfo |