Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

java: remove code_size argument from execute()#552

Merged
axic merged 2 commits intomasterfrom
java-execute-size
Oct 14, 2020
Merged

java: remove code_size argument from execute()#552
axic merged 2 commits intomasterfrom
java-execute-size

Conversation

@axic
Copy link
Copy Markdown
Member

@axic axic commented Oct 9, 2020

No description provided.

@axic
Copy link
Copy Markdown
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 atoulme, chfast and jrhea 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
@axic axic force-pushed the java-execute-size branch from 602575e to a10ebed Compare October 12, 2020 20:57
@axic axic requested a review from chfast October 12, 2020 20:57
@axic axic force-pushed the java-execute-size branch 2 times, most recently from 03a4fe6 to b328832 Compare October 12, 2020 21:08
* <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
Copy Markdown
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 force-pushed the java-execute-size branch from b328832 to 1b5bc7c Compare October 13, 2020 22:25
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants