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

Extism host functions should take ownership of memory passed in #99

Closed
zshipko opened this issue Sep 19, 2024 · 0 comments · Fixed by #101
Closed

Extism host functions should take ownership of memory passed in #99

zshipko opened this issue Sep 19, 2024 · 0 comments · Fixed by #101
Assignees

Comments

@zshipko
Copy link
Contributor

zshipko commented Sep 19, 2024

var_get, var_set, config_get, error_set, log_*, output_set and http_request all expect the host to take ownership of the memory block, the blocks passed as arguments should not be freed in the PDK.

See extism/extism#743

@zshipko zshipko changed the title Extism functions take ownership of memory passed in Extism host functions should take ownership of memory passed in Sep 20, 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 a pull request may close this issue.

2 participants