| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Replace px_memset() with explicit_bzero() |
| Date: | 2026-09-01 11:50:00 |
| Message-ID: | E1x1N03-00000003233-3HCJ@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Replace px_memset() with explicit_bzero()
The former was trying to do the same as the latter, but the latter has
more robust and portable implementations, and it's the standard across
the tree, so replace and remove px_memset().
Co-authored-by: Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org>
Discussion: https://www.postgresql.org/message-id/flat/a035c67f-4aa8-42e0-bb24-7b5abe927af4%40eisentraut.org
Discussion: https://www.postgresql.org/message-id/flat/87ldew2yqu.fsf%40wibble.ilmari.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/8534b0b4c765b06de30d249c9bacecc2d10ac68b
Modified Files
--------------
contrib/pgcrypto/crypt-blowfish.c | 4 ++--
contrib/pgcrypto/crypt-md5.c | 4 ++--
contrib/pgcrypto/crypt-sha.c | 4 ++--
contrib/pgcrypto/mbuf.c | 12 ++++++------
contrib/pgcrypto/pgp-cfb.c | 2 +-
contrib/pgcrypto/pgp-compress.c | 4 ++--
contrib/pgcrypto/pgp-decrypt.c | 20 ++++++++++----------
contrib/pgcrypto/pgp-encrypt.c | 10 +++++-----
contrib/pgcrypto/pgp-mpi.c | 2 +-
contrib/pgcrypto/pgp-pgsql.c | 2 +-
contrib/pgcrypto/pgp-pubenc.c | 6 +++---
contrib/pgcrypto/pgp-pubkey.c | 8 ++++----
contrib/pgcrypto/pgp-s2k.c | 6 +++---
contrib/pgcrypto/pgp.c | 2 +-
contrib/pgcrypto/px-crypt.c | 2 +-
contrib/pgcrypto/px-hmac.c | 8 ++++----
contrib/pgcrypto/px.c | 9 +--------
contrib/pgcrypto/px.h | 2 --
18 files changed, 49 insertions(+), 58 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2026-09-01 11:56:56 | pgsql: pgcrypto: remove unused BF_ASM macro |
| Previous Message | Peter Eisentraut | 2026-09-01 10:11:27 | pgsql: Fix memset invocation |