forked from wolfSSL/wolfssl
Fix build error for un-initialized "kb" variable when built with fixed point cache and small stack enabled.
This commit is contained in:
@@ -4177,7 +4177,7 @@ static int accel_fp_mul(int idx, mp_int* k, ecc_point *R, mp_int* a,
|
|||||||
#define KB_SIZE 128
|
#define KB_SIZE 128
|
||||||
|
|
||||||
#ifdef WOLFSSL_SMALL_STACK
|
#ifdef WOLFSSL_SMALL_STACK
|
||||||
unsigned char* kb;
|
unsigned char* kb = NULL;
|
||||||
#else
|
#else
|
||||||
unsigned char kb[KB_SIZE];
|
unsigned char kb[KB_SIZE];
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user