Jan 2022

3 commits
Improve error handling of HMAC computations
13 Jan 2022Michael Paquiermaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #60 of 1 reviewer saw the final version

Retains the implementation from #6, adding missing allocation-failure errstr assignments in scram_SaltedPassword() and scram_ClientKey(), explanatory comments, and pg_hmac_errno in src/tools/pgindent/typedefs.list. Michael confirms the final error-path audit and application in #8.

  • Sergey Shinderuksaw an earlier versiontrailerSergey questioned comments and error-string behavior in #2, then thoroughly reviewed #6 and reported missing errstr assignments in #7; error-path fixes followed before commitment.
Fix incorrect comments in hmac.c and hmac_openssl.c
13 Jan 2022Michael Paquiermaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1REL_14_STABLE14.2
LLM analysis, 99% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Changes only the obsolete pg_hmac_ctx->data comments in src/common/hmac.c and src/common/hmac_openssl.c; neither indexed patchset contains these edits. The commit credits Sergey as author, and #8 confirms that the comment correction arising from his review in #7 was applied independently.

  • Michael Paquiersaw the final versioncommittercommitted the patch
Fix comment related to pg_cryptohash_error()
12 Jan 2022Michael Paquiermaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1REL_14_STABLE14.2
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Replaces 'providing errors' with 'providing details' in src/common/cryptohash.c and src/common/cryptohash_openssl.c, which neither indexed patchset modifies. Sergey identified the existing wording in #4, and Michael confirmed the separate correction in #5.

  • Sergey Shinderuksaw the final versionLLM analysis, 100% sureSergey identified the misleading cryptohash comment and endorsed the replacement wording in #4, which was committed unchanged.

Credits across 3 commits

Author
Michael PaquierLLM1
Sergey Shinderuk1
Reviewer
Michael Paquiercommitter1
Sergey Shinderuk1
Reported by
Sergey Shinderuk1
Committer
Michael Paquier3

N LLM means N of the credits come from LLM analysis, not from commit trailers.