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

java: remove code_size argument from execute() #552

Merged
merged 2 commits into from
Oct 14, 2020
Merged

Conversation

axic
Copy link
Member

@axic axic commented Oct 9, 2020

No description provided.

@axic
Copy link
Member Author

axic commented Oct 9, 2020

@atoulme @jrhea this is another potential place where buffer overread could happen, the unchecked copying prior to this PR.

@axic axic requested review from chfast, jrhea and atoulme October 9, 2020 17:23
@axic axic force-pushed the java-execute-size branch 2 times, most recently from 5209d81 to 602575e Compare October 9, 2020 19:21
bindings/java/c/evmc-vm.c Outdated Show resolved Hide resolved
@axic axic force-pushed the java-execute-size branch 2 times, most recently from 03a4fe6 to b328832 Compare October 12, 2020 21:08
@@ -114,11 +113,11 @@ native void execute(
* <p>This allows the context to managed in one method
*/
public synchronized ByteBuffer execute(
HostContext context, int rev, ByteBuffer msg, ByteBuffer code, int size) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: this is a breaking change, but the Java binding we have is not stable enough and more changes are coming.

Everything merged so far were non-breaking changes.

@axic axic merged commit 9445ec5 into master Oct 14, 2020
@axic axic deleted the java-execute-size branch October 14, 2020 10:20
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