Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This violates the principle of least privilege because a caller who does not have the required privileges may also be able to load cause the specified library to be loaded.

Compliant Solution

This compliant solution moves the call to System.loadLibrary() outside the doPrivileged() block.

...