Skip to content

feat: add CompiledPlugin #784

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

Merged
merged 8 commits into from
Nov 14, 2024
Merged

feat: add CompiledPlugin #784

merged 8 commits into from
Nov 14, 2024

Conversation

zshipko
Copy link
Contributor

@zshipko zshipko commented Oct 29, 2024

No description provided.

@zshipko zshipko marked this pull request as ready for review November 8, 2024 23:53
/**
* Create a new plugin from an `ExtismCompiledPlugin`
*/
ExtismPlugin *extism_plugin_new_from_compiled(const ExtismCompiledPlugin *compiled, char **errmsg);
Copy link
Contributor

Choose a reason for hiding this comment

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

Something i still can't quite tell from this. Is there any way to point this at native code on disk somehow? My concern is someone writes some code that takes native code off disk and runs it. and somehow some user input can manipulate that. Are we protecting from that at all?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This still doesn't open up the ability to run native code. It pretty much just splits out the linking into two steps to allow the pre-instance to be instantiated multiple times.

@zshipko zshipko merged commit 14477ce into main Nov 14, 2024
5 checks passed
@zshipko zshipko deleted the compiled-plugin branch November 14, 2024 20:32
@nilslice nilslice mentioned this pull request Nov 22, 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