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

try loading the library with System.loadLibrary() #96

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

paulo-raca
Copy link

Some environments have their own way to ship native libraries (e.g., Android).

On those it is preferrable to rely on System.loadLibrary instead of manually
extracting/loading the library from resources

Some environments have their own way to ship native libraries (e.g., Android).

On those it is preferrable to rely on System.loadLibrary instead of manually
]extracting/loading the library from resources
@headius
Copy link
Member

headius commented Dec 18, 2020

This seems like a fine thing to add, but if the other forms of loading fail couldn't we put this at the end of the method?

My concern is that by putting this at the front of the list, we defer all searching and loading to the JVM first, which may cause it to load a library from a default location rather than a location configured by a user (which is important on secure systems).

Can you get the same effect moving the loadLibrary call to the end? If so, do that and I will happily merge and release this.

@headius headius added this to the 1.3.2 milestone Dec 18, 2020
@headius headius modified the milestones: 1.3.2, 1.3.3 Mar 26, 2021
@headius headius modified the milestones: 1.3.3, 1.4.0 May 4, 2021
@headius
Copy link
Member

headius commented May 19, 2021

No follow-up so I have not merged this. Still willing to consider it!

@headius headius modified the milestones: 1.4.0, 1.3.4, 1.3.5 May 19, 2021
@headius headius modified the milestones: 1.3.5, 1.3.6 Sep 1, 2021
@headius headius modified the milestones: 1.3.6, 1.3.7 Oct 26, 2021
@headius headius removed this from the 1.3.7 milestone Nov 22, 2021
@paulo-raca
Copy link
Author

@headius, my apologies, I lost track of this.

Yes, moving it to the end also works, and the security considerations make sense 👍

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

2 participants