diff options
author | Tom Lane | 2025-04-07 18:14:28 +0000 |
---|---|---|
committer | Tom Lane | 2025-04-07 18:14:28 +0000 |
commit | 969ab9d4f5d141ac25db092a0e5cd004d3d60a60 (patch) | |
tree | 239184d55f44243c8516ea701cc838ba71ed0a8e /contrib/btree_gist/sql | |
parent | b73e6d71a89f92436c71467acda1d47552f568a0 (diff) |
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@sss.pgh.pa.us>
Reported-by: Andres Freund <andres@anarazel.de>
Author: Bernd Helmle <mailings@oopsware.de>
Discussion: https://postgr.es/m/6fab35422df6b6b9727fdcc243c5fa1c667dd3b5.camel@oopsware.de
Diffstat (limited to 'contrib/btree_gist/sql')
0 files changed, 0 insertions, 0 deletions