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

JNA callback should check inputs and outputs for null. #30

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

evacchi
Copy link
Contributor

@evacchi evacchi commented Aug 30, 2024

This addresses #27 once we merge extism/extism#760 and release a new version of libextism.

This PR simply check the parameters for null and the counts to be valid, in preparation for extism/extism#760 which otherwise would cause a NullPointerException when outputs and inputs are empty.

@evacchi evacchi requested review from zshipko and bhelx August 30, 2024 17:44
@evacchi
Copy link
Contributor Author

evacchi commented Aug 30, 2024

clearly CI is not fixed yet because libextism does not include the fix :)

This addresses extism#27
once we merge extism/extism#760
and release a new version of libextism.

This PR simply check the parameters for null and the counts
to be valid, in preparation for extism/extism#760
which otherwise would cause a NullPointerException when
outputs and inputs are empty.

Signed-off-by: Edoardo Vacchi <[email protected]>
@evacchi evacchi force-pushed the null-check-hostfuncs-callback branch from 16a9d1e to e87d25f Compare September 3, 2024 14:42
Copy link
Contributor

@zshipko zshipko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good - let's wait to merge until after extism/extism#760 is merged so we can re-run CI to make sure it's passing

@evacchi
Copy link
Contributor Author

evacchi commented Sep 5, 2024

looks fine! merge?

@zshipko zshipko merged commit 89a286a into extism:main Sep 5, 2024
2 checks passed
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