Skip to content
Permalink
Browse files

8238502: sunmscapi.dll causing EXCEPTION_ACCESS_VIOLATION

Reviewed-by: wetmore, coffeys, mullan
  • Loading branch information
wangweij committed Feb 4, 2020
1 parent a88734e commit b75d37538dc79392b7915daec08c67970eeafea8
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/jdk.crypto.mscapi/windows/native/libsunmscapi/security.cpp
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -660,14 +660,14 @@ JNIEXPORT void JNICALL Java_sun_security_mscapi_CKeyStore_loadKeysOrCertificateC
env->CallVoidMethod(obj, mGenKeyAndCertChain,
0,
name,
(jlong) hCryptProv, 0,
(jlong) hCryptProv, (jlong) 0,
dwPublicKeyLength, jArrayList);
} else if (buffer[0] == 'R' && buffer[2] == 'S'
&& buffer[4] == 'A') {
env->CallVoidMethod(obj, mGenKeyAndCertChain,
1,
name,
(jlong) hCryptProv, 0,
(jlong) hCryptProv, (jlong) 0,
dwPublicKeyLength, jArrayList);
} else {
dump("Unknown NCRYPT_ALGORITHM_PROPERTY", buffer, len);

0 comments on commit b75d375

Please sign in to comment.