Pádraig Brady <[email protected]> writes: >> wrong to have DIGEST_STREAM return an error, but continue the program if >> errno is not set. That seems like it is prone to printing uninitialized >> memory. ENOMEM seems like a reasonable fallback. > > Won't the lower level functions have already set that?
Thanks for checking. Pushed the attached patch to update the gnulib module to incorporate the SHA-3 errno changes and other fixes. Collin
>From a777b99ffe7eb3aedfd54828e140fc0eaf93722e Mon Sep 17 00:00:00 2001 Message-ID: <a777b99ffe7eb3aedfd54828e140fc0eaf93722e.1757204166.git.collin.fu...@gmail.com> From: Collin Funk <[email protected]> Date: Sat, 6 Sep 2025 17:14:47 -0700 Subject: [PATCH] cksum: don't leak memory using -a sha3 with OpenSSL * gnulib: Update to the latest commit for latest changes to the crypto/sha3-buffer and crypto/sha3 modules. --- gnulib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnulib b/gnulib index 06e7da510..68ecc26f3 160000 --- a/gnulib +++ b/gnulib @@ -1 +1 @@ -Subproject commit 06e7da510bd055f524c1baff0890c861bef2b6a4 +Subproject commit 68ecc26f30b284a26ab9aa0a08299869ea713c71 -- 2.51.0
