| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Fix memset invocation |
| Date: | 2026-09-01 10:11:27 |
| Message-ID: | E1x1LSg-000000031Tw-2qgp@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Fix memset invocation
It was setting sha_buf_tmp but sizing it by sizeof sha_buf. These
happen to be the same size, so it's not an actual problem, but for
correctness make the sizeof match.
Reported-by: Sehrope Sarkuni <sehrope(at)jackdb(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/a035c67f-4aa8-42e0-bb24-7b5abe927af4%40eisentraut.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/2a2dab67dc40a41a003545308423c1d3def02dea
Modified Files
--------------
contrib/pgcrypto/crypt-sha.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2026-09-01 11:50:00 | pgsql: Replace px_memset() with explicit_bzero() |
| Previous Message | Daniel Gustafsson | 2026-09-01 09:29:50 | pgsql: Wait for checksum state transition in test |