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

update fork #1

Merged
merged 12 commits into from
Jul 25, 2018
Merged

update fork #1

merged 12 commits into from
Jul 25, 2018

Conversation

CamW
Copy link
Owner

@CamW CamW commented Jul 25, 2018

No description provided.

dbwiddis and others added 12 commits July 8, 2018 13:49
- com.sun.jna.Platform#isAix
- com.sun.jna.platform.win32.Ole32#CoCreateGuid(GUID.ByReference pguid)
- com.sun.jna.platform.win32.Ole32#CLSIDFromString(WString lpsz, CLSID.ByReference pclsid)
… code

The success of attaching to the JVM was checked to late in callback.c.
After trying to attach the native thread to the JVM, the JNIEnv pointer
is passed to `get_thread_storage`, which uses it to access the JVM.

At this point it is assumed, that the JNIEnv pointer is valid and can
be used. This is not correct, as the attach can fail and if so the
JNIEnv pointer is not valid.

The pointer is later validated, but to late, so a SEGFAULT occurs.

The result check needs to be moved directly after the attachment
code, to be effective.

Forward port of c23cde6
Fix bug with recursive IP_ADDR_STRING ByReference
…988)

* Zero-check counter and instance lists, add English lookup

* Don't zero-check what we're not fetching
@CamW CamW merged commit f062487 into CamW:master Jul 25, 2018
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.

3 participants