Closed skilau closed 1 month ago
Can one of the admins verify this patch?
Thanks @skilau for using wolfSSL and bringing up this issue! I don't see you listed on the contributor agreement list. Am going to consider this a bug report and implement a fix for it. If you have contributions in the future that you'd like added in, we're happy to get the contributor agreement process going through our support@wolfssl.com email channel.
This 1 line patch fixes a typo (or copy/paste error) in wc_port.c contained under a NETOS defined section.
TESTSUITE_THREAD_STACK_SZ is currently used in tx_thread_create() call for the size of the stack.
However, WOLFSSL_NETOS_STACK_SZ should be used instead.
The WOLFSSL_NETOS_STACK_SZ is used a few lines above to actually allocate the stack and its size, so the same value should be used to tell tx_thread_create() what the size of the stack is.
Description
This 1 line patch fixes a typo (or copy/paste error) in wc_port.c contained under the NETOS section.
TESTSUITE_THREAD_STACK_SZ is currently used in tx_thread_create() call for the size of the stack.
However, WOLFSSL_NETOS_STACK_SZ should be used instead.
The WOLFSSL_NETOS_STACK_SZ is used a few lines above to actually allocate the stack and its size, so the same value should be used to tell tx_thread_create() what the size of the stack is.
Fixes zd#
Testing
Without this change, the compile will fail when TESTSUITE_THREAD_STACK_SZ is not defined. (It is not required to be defined)
With this change, the compile succeeds, and with the proper values.
Checklist