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

Ensure static fields set during signed jar process #763

Commits on Sep 19, 2024

  1. Ensure static fields set during signed jar process

    When loading a signed jar file that is on the classpath, such as the
    bouncy castle signed JCE jar file, it has been observed that the value
    of `jarVerificationProviders` is set to null. This causes a
    NullPointerException during the loading process.
    
    This update moves the static declaration of `jarVerificationProviders`
    to be prior to the method call `RestrictedSecurity.checkHashValues()`
    since this method call needs the value of the field
    `jarVerificationProviders` to be initialized in order to work correctly.
    
    Signed-off-by: Jason Katonica <katonica@us.ibm.com>
    jasonkatonica committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    e294b46 View commit details
    Browse the repository at this point in the history