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

[CHERIoT] Allow __cheri_libcall function pointers to decay to normal function pointers. #76

Open
wants to merge 1 commit into
base: cheriot
Choose a base branch
from

Conversation

resistor
Copy link
Collaborator

#16

@v01dXYZ
Copy link

v01dXYZ commented Dec 19, 2024

I know C++ is stricter with types but do you think the decay is still valid in this language too ? It doesn't seem this patch implements it for C++ (I tested your test case by renaming it to a cpp file).

@resistor
Copy link
Collaborator Author

I know C++ is stricter with types but do you think the decay is still valid in this language too ? It doesn't seem this patch implements it for C++ (I tested your test case by renaming it to a cpp file).

Good catch, thanks. Added a C++ test and fixed it. Unfortunately the C and C++ paths don't seem to coincide here.

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.

2 participants