From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix and simplify some code related to cryptohashes
Date: Fri, 08 Jan 2021 01:37:59 +0000
Message-ID: <E1kxgj1-0005c6-Pa@gemulon.postgresql.org> (raw)
Fix and simplify some code related to cryptohashes
This commit addresses two issues:
- In pgcrypto, MD5 computation called pg_cryptohash_{init,update,final}
without checking for the result status.
- Simplify pg_checksum_raw_context to use only one variable for all the
SHA2 options available in checksum manifests.
Reported-by: Heikki Linnakangas
Discussion: https://postgr.es/m/f62f26bb-47a5-8411-46e5-4350823e06a5@iki.fi
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/15b824da97afb45f47e51b6b5b7e5eca09e5d03d
Modified Files
--------------
contrib/pgcrypto/internal.c | 9 ++++--
src/common/checksum_helper.c | 59 +++++++++++++++---------------------
src/include/common/checksum_helper.h | 5 +--
3 files changed, 32 insertions(+), 41 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz
Subject: Re: pgsql: Fix and simplify some code related to cryptohashes
In-Reply-To: <E1kxgj1-0005c6-Pa@gemulon.postgresql.org>
References: <E1kxgj1-0005c6-Pa@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox