> The method createLockObject will return NULL if any exception is thrown, but > there is no NULL verification in p11_general.c after the following line is > invoked > notifyListLock = createLockObject(env); > > There may be a pending exception when invoking prefetchFields(env, thisClass); > > So adding exception check to return immediately and do not call any further > JNI functions when there is exception pending.
Koushik Muthukrishnan Thirupattur has updated the pull request incrementally with one additional commit since the last revision: 8366807: Updated Copyright ------------- Changes: - all: https://git.openjdk.org/jdk/pull/28799/files - new: https://git.openjdk.org/jdk/pull/28799/files/67be25b6..e44edfa5 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=28799&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=28799&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/28799.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/28799/head:pull/28799 PR: https://git.openjdk.org/jdk/pull/28799
