git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 9ffe227) | patch
Fix and simplify some code related to cryptohashes
Fri, 8 Jan 2021 01:37:03 +0000 (10:37 +0900)
Fri, 8 Jan 2021 01:37:03 +0000 (10:37 +0900)
commit 15b824da97afb45f47e51b6b5b7e5eca09e5d03d
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
contrib/pgcrypto/internal.c diff | blob | blame | history
src/common/checksum_helper.c diff | blob | blame | history
src/include/common/checksum_helper.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /