From b14f44dcf7478892d38dda55a2aa20665b110cf4 Mon Sep 17 00:00:00 2001 From: jsteube Date: Tue, 19 Sep 2017 11:58:18 +0200 Subject: [PATCH] Fix uninitialized keymic buffer --- OpenCL/m02500.cl | 10 ++++++++++ OpenCL/m02501.cl | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/OpenCL/m02500.cl b/OpenCL/m02500.cl index 1d92fd877..0c766e90c 100644 --- a/OpenCL/m02500.cl +++ b/OpenCL/m02500.cl @@ -384,6 +384,11 @@ __kernel void m02500_comp (__global pw_t *pws, __global const kernel_rule_t *rul u32 keymic[4]; + keymic[0] = 0; + keymic[1] = 0; + keymic[2] = 0; + keymic[3] = 0; + if (wpa->keyver == 1) { sha1_hmac_ctx_t ctx1; @@ -658,6 +663,11 @@ __kernel void m02500_comp (__global pw_t *pws, __global const kernel_rule_t *rul u32 keymic[4]; + keymic[0] = 0; + keymic[1] = 0; + keymic[2] = 0; + keymic[3] = 0; + if (wpa->keyver == 1) { sha1_hmac_ctx_t ctx1; diff --git a/OpenCL/m02501.cl b/OpenCL/m02501.cl index 839831493..d7eed5eb1 100644 --- a/OpenCL/m02501.cl +++ b/OpenCL/m02501.cl @@ -258,6 +258,11 @@ __kernel void m02501_comp (__global pw_t *pws, __global const kernel_rule_t *rul u32 keymic[4]; + keymic[0] = 0; + keymic[1] = 0; + keymic[2] = 0; + keymic[3] = 0; + if (wpa->keyver == 1) { sha1_hmac_ctx_t ctx1; @@ -532,6 +537,11 @@ __kernel void m02501_comp (__global pw_t *pws, __global const kernel_rule_t *rul u32 keymic[4]; + keymic[0] = 0; + keymic[1] = 0; + keymic[2] = 0; + keymic[3] = 0; + if (wpa->keyver == 1) { sha1_hmac_ctx_t ctx1;