diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2020-03-28 02:31:10 +0300 |
---|---|---|
committer | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2020-03-28 02:33:15 +0300 |
commit | 55a3cb0fa4b46c52b610125e080fae306dbf355d (patch) | |
tree | 31d53138ce6fe579e00c488770b88507676a58a9 | |
parent | f8918981407814dcdc9d70afd00ebf22df04fade (diff) | |
download | gnutls-55a3cb0fa4b46c52b610125e080fae306dbf355d.tar.gz |
padlock: fix exception in wrap_padlock_hash_fast
wrap_padlock_hash_fast() allocates a context on a stack (via local
variable) then tries to free it by calling wrap_padlock_hash_deinit()
causing a crash. Remove a call to deinit() to fix a crash.
Fixes #930
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
-rw-r--r-- | lib/accelerated/x86/sha-padlock.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/accelerated/x86/sha-padlock.c b/lib/accelerated/x86/sha-padlock.c index bfb67f62e9..1030d4f63e 100644 --- a/lib/accelerated/x86/sha-padlock.c +++ b/lib/accelerated/x86/sha-padlock.c @@ -364,7 +364,6 @@ int wrap_padlock_hash_fast(gnutls_digest_algorithm_t algo, wrap_padlock_hash_update(&ctx, text, text_size); wrap_padlock_hash_output(&ctx, digest, ctx.length); - wrap_padlock_hash_deinit(&ctx); } return 0; |