Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pthreads.h: avoid undefined behavior #967

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

botovq
Copy link
Contributor

@botovq botovq commented Dec 12, 2023

You can't pass a function pointer through a void pointer. So wrap the pthread callback in a struct.

Fixes #966

You can't pass a function pointer through a void pointer.
So wrap the pthread callback in a struct.

Fixes libressl#966
@botovq botovq merged commit 368eed9 into libressl:master Dec 14, 2023
35 checks passed
@botovq botovq deleted the pthread_undefined_behavior branch December 19, 2023 19:46
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.

review windows warnings
2 participants