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

Added Java11 Fixes by ggmuelle #133

Merged
merged 2 commits into from
Dec 5, 2018
Merged

Conversation

irfman12
Copy link

I've added ggmuelle's patches to fix java 11 fixes.

Not tested for backwards compatibility yet.

Irfan Ahmed added 2 commits November 16, 2018 09:14
The function get_java_var_long() in SerialImp.c casts the Java-long-value to a long in case of type == 'J'. But Java-Long is 64 bit and C-long is only 32 bit. Later this long is casted to a 64-bit-memory-address -> crash. A possible solution is to return always size_t instead of long
@irfman12 irfman12 mentioned this pull request Nov 16, 2018
@madhephaestus
Copy link
Member

Since this change alters the C stack it should include the re-compiled binaries reflecting the change. this can be merged when the binaries are added to the PR.

@ggmuelle
Copy link

ggmuelle commented Nov 19, 2018

Cool, thanks!
@irfman12 Will you add the binaries?

@scriptator
Copy link

There is now another MR by @ggmuelle which includes the binaries: #135

@madhephaestus madhephaestus merged commit a190730 into NeuronRobotics:java11 Dec 5, 2018
rssgit added a commit to Tibbo-Systems/nrjavaserial that referenced this pull request Mar 6, 2020
"The function get_java_var_long() in SerialImp.c casts the Java-long-value to a long in case of type == 'J'. But Java-Long is 64 bit and C-long is only 32 bit. Later this long is cast to a 64-bit-memory-address -> crash. A possible solution is to return always size_t instead of long."

NeuronRobotics#131
NeuronRobotics#133
NeuronRobotics#135
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.

None yet

4 participants