Skip to content

wc_port: change zephyr struct k_thread tid member to pointer.#8236

Merged
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
philljj:zephyr_thread_type
Dec 5, 2024
Merged

wc_port: change zephyr struct k_thread tid member to pointer.#8236
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
philljj:zephyr_thread_type

Conversation

@philljj
Copy link
Copy Markdown
Contributor

@philljj philljj commented Nov 27, 2024

Description

Update Zephyr THREAD_TYPE struct k_thread tid member to be pointer rather than value. Less intrusive alternative to #8234.

Fixes coverity PASS_BY_VALUE issue in zd#17705.

The struct struct k_thread { (defined here) is potentially large and shouldn't be passed by value.

Testing

Tested with:

@philljj philljj self-assigned this Nov 27, 2024
@philljj
Copy link
Copy Markdown
Contributor Author

philljj commented Nov 28, 2024

retest this please.

@philljj philljj assigned wolfSSL-Bot and unassigned philljj Dec 5, 2024
@JacobBarthelmeh JacobBarthelmeh merged commit aa32027 into wolfSSL:master Dec 5, 2024
@philljj philljj deleted the zephyr_thread_type branch March 6, 2025 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants