Skip to content

Optimize library loading#1013

Merged
matthiasblaesing merged 2 commits intojava-native-access:masterfrom
matthiasblaesing:optimize_library_loading
Sep 21, 2018
Merged

Optimize library loading#1013
matthiasblaesing merged 2 commits intojava-native-access:masterfrom
matthiasblaesing:optimize_library_loading

Conversation

@matthiasblaesing
Copy link
Copy Markdown
Member

@matthiasblaesing matthiasblaesing commented Sep 15, 2018

Two problems are addressed here:

  1. it is a long standing issue, that JNA should default to not load the jnidispatch library from the system search path. This was again observed when introducing appveyor builds, as there somehow a jnidispatch library is on the system path
  2. Unix systems (Mac OS X and Linux at least) default to a global system temp directory. This is unsafe, as an attacker could gain control over that directory. This is nor fixed.

…ive library.

On Mac OS X systems `~/Library/Caches/JNA/temp` and on
other Unix like systems `$XDG_CACHE_DIR/JNA/temp` (Default value is:
`~/.cache/JNA/temp`) is used.

Behaviour on windows is unchanged, as since Vista the tempdir is by
default inside the user profile directory.

Closes: java-native-access#985
@matthiasblaesing matthiasblaesing merged commit 088ad82 into java-native-access:master Sep 21, 2018
@matthiasblaesing matthiasblaesing deleted the optimize_library_loading branch September 22, 2018 21:08
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.

1 participant