changeset 58861:ca6c676cab64

8238502: sunmscapi.dll causing EXCEPTION_ACCESS_VIOLATION Reviewed-by: wetmore, coffeys, mullan
author weijun
date Tue, 04 Feb 2020 13:15:15 -0800
parents cf7c8e28ff9a
children 4f9dc5bee9c4
files src/jdk.crypto.mscapi/windows/native/libsunmscapi/security.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.crypto.mscapi/windows/native/libsunmscapi/security.cpp	Tue Feb 04 14:48:28 2020 -0500
+++ b/src/jdk.crypto.mscapi/windows/native/libsunmscapi/security.cpp	Tue Feb 04 13:15:15 2020 -0800
@@ -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 @@
                                         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);