From b3b1e0dba6dcacfa6faaff6793ff7c3aedfea859 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 29 Jan 2014 14:37:14 +0000 Subject: final fix for #577 git-svn-id: http://svn.miranda-ng.org/main/trunk@7947 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_secur.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/JabberG/src') diff --git a/protocols/JabberG/src/jabber_secur.cpp b/protocols/JabberG/src/jabber_secur.cpp index b2158cb410..5758565b1f 100644 --- a/protocols/JabberG/src/jabber_secur.cpp +++ b/protocols/JabberG/src/jabber_secur.cpp @@ -231,7 +231,7 @@ TScramAuth::~TScramAuth() void TScramAuth::Hi(BYTE* res, char* passw, size_t passwLen, char* salt, size_t saltLen, int ind) { - BYTE u[MIR_SHA1_HASH_SIZE]; + BYTE *u = (BYTE*)_alloca(saltLen + sizeof(unsigned)); memcpy(u, salt, saltLen); *(unsigned*)(u + saltLen) = htonl(1); saltLen += 4; memset(res, 0, MIR_SHA1_HASH_SIZE); -- cgit v1.2.3