Skip to content

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

Merged
zshipko merged 1 commit intoextism:mainfrom
evacchi:null-check-hostfuncs-callback
Sep 5, 2024
Merged

JNA callback should check inputs and outputs for null.#30
zshipko merged 1 commit intoextism:mainfrom
evacchi:null-check-hostfuncs-callback

Conversation

@evacchi
Copy link
Copy Markdown
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 bhelx and zshipko August 30, 2024 17:44
@evacchi
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

evacchi commented Sep 5, 2024

looks fine! merge?

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