diff options
author | Bruno Haible <bruno@clisp.org> | 2017-11-21 00:11:14 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2017-11-21 00:11:14 +0100 |
commit | d552ac3fa6d0a95e614293b655253654743b6aae (patch) | |
tree | 9899199dcf156636c66aaa13d61d5c0a44d1df61 /lib/gc-gnulib.c | |
parent | 230c5fabac192536c524053162abbb9fa0b18905 (diff) | |
download | gnulib-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.c | 2 |
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 { |