mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-17 05:45:05 +00:00
6994263: Untrusted code can replace JRE's XML DSig Transform or C14N algorithm implementations
Reviewed-by: xuelei
This commit is contained in:
parent
5d95cda553
commit
bb1d39eef8
@ -210,6 +210,8 @@ public final class Transform extends SignatureElementProxy {
|
||||
public static void init() {
|
||||
if (!alreadyInitialized) {
|
||||
transformClassHash = new HashMap(10);
|
||||
// make sure builtin algorithms are all registered first
|
||||
com.sun.org.apache.xml.internal.security.Init.init();
|
||||
alreadyInitialized = true;
|
||||
}
|
||||
}
|
||||
@ -236,12 +238,7 @@ public final class Transform extends SignatureElementProxy {
|
||||
"algorithm.alreadyRegistered", exArgs);
|
||||
}
|
||||
|
||||
ClassLoader cl = (ClassLoader) AccessController.doPrivileged(
|
||||
new PrivilegedAction() {
|
||||
public Object run() {
|
||||
return Thread.currentThread().getContextClassLoader();
|
||||
}
|
||||
});
|
||||
ClassLoader cl = Thread.currentThread().getContextClassLoader();
|
||||
|
||||
try {
|
||||
transformClassHash.put
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user