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

ubsan: fix "call to function through pointer to incorrect function type" #4598

Merged
merged 3 commits into from
Feb 6, 2025

Conversation

dipinhora
Copy link
Contributor

ubsan doesn't like call's through function pointers of incorrect function types. This is used in both hash/list stuff along with in genprim. This commit fixes things to make ubsan happy.

Makes ubsan runtime errors such as the following go away:

runtime error: call to function flag_free through pointer to incorrect function type 'void (*)(void *)'

ubsan doesn't like call's through function pointers of incorrect function
types. This is used in both hash/list stuff along with in genprim. This
commit fixes things to make ubsan happy.

Makes ubsan runtime errors such as the following go away:

`runtime error: call to function flag_free through pointer to incorrect function type 'void (*)(void *)'`
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Feb 5, 2025
@SeanTAllen SeanTAllen merged commit c96929b into ponylang:main Feb 6, 2025
22 checks passed
@SeanTAllen
Copy link
Member

@dipinhora thanks for this and all the others

@ponylang-main ponylang-main added discuss during sync Should be discussed during an upcoming sync and removed discuss during sync Should be discussed during an upcoming sync labels Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss during sync Should be discussed during an upcoming sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants