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

service: Static assert arguments aren't pointers to prevent failure-to-deref #623

Merged
merged 2 commits into from
Oct 11, 2023

Conversation

SciresM
Copy link
Contributor

@SciresM SciresM commented Oct 11, 2023

I got very frustrated just now by failing to dereference an output pointer argument, so I added a static assertion that the input/output to the service dispatch macros aren't pointers.

This immediately caught three cases where we failed to invoke dispatch function correctly, so this also fixes those.

@fincs fincs merged commit cb6f366 into switchbrew:master Oct 11, 2023
1 check passed
@fincs fincs deleted the static_assert_pointer_args branch October 11, 2023 23:29
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