From 89f84b64a3fe9f7199333aaee17d201f265e3048 Mon Sep 17 00:00:00 2001 From: magnum Date: Sun, 16 Aug 2020 21:19:59 +0200 Subject: [PATCH] -m 21200 bugfix: Array declared too small. We're using indeces 0..4 so it has to be pc[5]. --- src/modules/module_21200.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module_21200.c b/src/modules/module_21200.c index 14414e293..8edb8d836 100644 --- a/src/modules/module_21200.c +++ b/src/modules/module_21200.c @@ -114,7 +114,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE sha1_update (&sha1_ctx, s, salt->salt_len); sha1_final (&sha1_ctx); - u32 pc[4]; + u32 pc[5]; pc[0] = byte_swap_32 (sha1_ctx.h[0]); pc[1] = byte_swap_32 (sha1_ctx.h[1]);