Prevent overrunning stack for large benchmarks

This commit is contained in:
Joost Rijneveld 2018-09-11 15:57:50 +02:00
parent 75a42a86a6
commit bb2d285814
No known key found for this signature in database
GPG Key ID: A4FE39CF49CBC553

View File

@ -108,7 +108,7 @@ int main()
unsigned long long mlen;
unsigned long long t0, t1;
unsigned long long t[XMSS_SIGNATURES];
unsigned long long *t = malloc(sizeof(unsigned long long) * XMSS_SIGNATURES);
struct timespec start, stop;
double result;
@ -153,6 +153,7 @@ int main()
free(m);
free(sm);
free(mout);
free(t);
return ret;
}