recommit invalid free w/o smallstack

pull/91/head
toddouska 2015-07-07 09:23:02 -07:00
parent 14723b7e65
commit dafb5a80e7
2 changed files with 3 additions and 1 deletions

View File

@ -2201,8 +2201,10 @@ static int wolfssl_decrypt_buffer_key(buffer* der, byte* password,
if ((ret = EVP_BytesToKey(info->name, "MD5", info->iv,
password, passwordSz, 1, key, iv)) <= 0) {
#ifdef WOLFSSL_SMALL_STACK
XFREE(key, NULL, DYNAMIC_TYPE_TMP_BUFFER);
XFREE(iv, NULL, DYNAMIC_TYPE_TMP_BUFFER);
#endif
return ASN_INPUT_E;
}

View File

@ -1908,7 +1908,7 @@ int chacha_test(void)
byte plain[128];
byte sliver[64];
byte input[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
word32 keySz;
word32 keySz = 32;
int ret = 0;
int i;
int times = 4;