Skip to content

Enable onForeignFunction and proxy-specific extensions to the ABI. #23

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 13 commits into from
Jun 26, 2020

Conversation

jplevyak
Copy link
Contributor

Signed-off-by: John Plevyak jplevyak@gmail.com

Signed-off-by: John Plevyak <jplevyak@gmail.com>
@jplevyak jplevyak requested review from PiotrSikora and lizan May 28, 2020 17:36
jplevyak added 10 commits May 28, 2020 13:43
Signed-off-by: John Plevyak <jplevyak@gmail.com>
…to extending

Signed-off-by: John Plevyak <jplevyak@gmail.com>
Signed-off-by: John Plevyak <jplevyak@gmail.com>
Signed-off-by: John Plevyak <jplevyak@gmail.com>
Signed-off-by: John Plevyak <jplevyak@gmail.com>
Signed-off-by: John Plevyak <jplevyak@gmail.com>
Signed-off-by: John Plevyak <jplevyak@gmail.com>
Signed-off-by: John Plevyak <jplevyak@gmail.com>
Signed-off-by: John Plevyak <jplevyak@gmail.com>
@jplevyak jplevyak requested a review from kyessenov June 16, 2020 16:48
Signed-off-by: John Plevyak <jplevyak@gmail.com>
}
WasmResult copyTo(WasmBase *wasm, size_t start, size_t length, uint64_t ptr_ptr,
uint64_t size_ptr) const override;
WasmResult copyFrom(size_t /* start */, size_t /* length */, string_view /* data */) override {
Copy link
Member

Choose a reason for hiding this comment

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

Now that this is independent from Envoy, we should probably stop using string_view to represent bytes, and use span instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll open an issue for that. I presume that absl::Span is a suitable substitute. #28

ContextBase *parent = parent_context_;
while (parent != previous) {
previous = parent;
parent = parent->parent_context_;
Copy link
Member

Choose a reason for hiding this comment

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

I think that will result in nullptr dereference when (accidentally) called on the root context itself. Maybe add a check?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

parent_context_ is never nullptr. The list is terminated by parent_context_ == this. This is enforced by the constructors for Context.

@jplevyak jplevyak requested a review from PiotrSikora June 25, 2020 17:49
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