summaryrefslogtreecommitdiff
path: root/lib/gc-gnulib.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2017-11-21 00:11:14 +0100
committerBruno Haible <bruno@clisp.org>2017-11-21 00:11:14 +0100
commitd552ac3fa6d0a95e614293b655253654743b6aae (patch)
tree9899199dcf156636c66aaa13d61d5c0a44d1df61 /lib/gc-gnulib.c
parent230c5fabac192536c524053162abbb9fa0b18905 (diff)
downloadgnulib-d552ac3fa6d0a95e614293b655253654743b6aae.tar.gz
crypto/gc-sm3: Fix buffer overrun.
* lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32. Reported by Coverity.
Diffstat (limited to 'lib/gc-gnulib.c')
-rw-r--r--lib/gc-gnulib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gc-gnulib.c b/lib/gc-gnulib.c
index f888cf5970..62074b16b7 100644
--- a/lib/gc-gnulib.c
+++ b/lib/gc-gnulib.c
@@ -602,7 +602,7 @@ gc_cipher_close (gc_cipher_handle handle)
/* Hashes. */
-#define MAX_DIGEST_SIZE 20
+#define MAX_DIGEST_SIZE 32
typedef struct _gc_hash_ctx
{