Skip to content

Conversation

@mquigley
Copy link
Contributor

@mquigley mquigley commented Jul 5, 2019

Previously, a long was used instead of a pointer in the JNA binding library.
This would work until the allocated pointers exceeded 32-bits. On modern JVMs,
allocations may produce pointers in excess of 32-bits which would result in
invalid memory access errors.

This also updates the binding version to 5.0.

…ongs

Previously, a long was used instead of a pointer in the JNA binding library.
This would work until the allocated pointers exceeded 32-bits. On modern JVMs,
allocations may produce pointers in excess of 32-bits which would result in
invalid memory access errors.

This also updates the binding version to 5.0.
@aquynh
Copy link
Collaborator

aquynh commented Jul 5, 2019

is this change still backward compatible (with older Java)?

@mquigley
Copy link
Contributor Author

mquigley commented Jul 9, 2019

I tried it with JVM 8, JVM 9, and JVM 11, and they all worked. I did not try anything earlier than 8 which is the latest JVM that worked previously.

@aquynh aquynh merged commit 6680814 into capstone-engine:master Jul 11, 2019
@aquynh
Copy link
Collaborator

aquynh commented Jul 11, 2019

merged, thanks!

aquynh pushed a commit that referenced this pull request Jul 11, 2019
Previously, a long was used instead of a pointer in the JNA binding library.
This would work until the allocated pointers exceeded 32-bits. On modern JVMs,
allocations may produce pointers in excess of 32-bits which would result in
invalid memory access errors.

This also updates the binding version to 5.0.
aquynh pushed a commit that referenced this pull request Jul 11, 2019
Previously, a long was used instead of a pointer in the JNA binding library.
This would work until the allocated pointers exceeded 32-bits. On modern JVMs,
allocations may produce pointers in excess of 32-bits which would result in
invalid memory access errors.

This also updates the binding version to 5.0.
@riptl riptl mentioned this pull request Jul 22, 2022
6 tasks
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