Skip to content

Commit 70dced2

Browse files
authored
Merge pull request ARMmbed#15405 from IVOES/fix-stack-address-escape
Change storage-class of secret_buf to static
2 parents a987273 + 1b77cda commit 70dced2

File tree

1 file changed

+1
-1
lines changed
  • connectivity/nanostack/sal-stack-nanostack/source/Security/TLS

1 file changed

+1
-1
lines changed

connectivity/nanostack/sal-stack-nanostack/source/Security/TLS/tls_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2095,7 +2095,7 @@ void tls_master_key_cal(tls_heap_t *heap_ptr, sec_suite_t *tls_suite)
20952095
{
20962096
uint8_t *ptr;
20972097
prf_sec_param_t *prf_ptr = shalib_prf_param_get();
2098-
uint8_t secret_buf[2 + 16 + 2 + 16];
2098+
static uint8_t secret_buf[2 + 16 + 2 + 16];
20992099
tr_debug("CAL Master secret:");
21002100
//Her have to to be set check is
21012101
#ifdef ECC

0 commit comments

Comments
 (0)