diff options
author | Jiri Vanek <[email protected]> | 2013-04-17 14:30:05 +0200 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2013-04-17 14:30:05 +0200 |
commit | 6325a345014f6fce359637aab3ce6c6a969cf655 (patch) | |
tree | 20bc154ed69647497e7341954ea1baba6dad5532 /netx/net/sourceforge/jnlp/NetxPanel.java | |
parent | 72ac500dc654bbc82332712022cca573db0bc3e6 (diff) |
Fixed CVE-2013-1926, RH916774: Class-loader incorrectly shared for applets with same relative-path.
Diffstat (limited to 'netx/net/sourceforge/jnlp/NetxPanel.java')
-rw-r--r-- | netx/net/sourceforge/jnlp/NetxPanel.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/netx/net/sourceforge/jnlp/NetxPanel.java b/netx/net/sourceforge/jnlp/NetxPanel.java index 8a51566..e9647c8 100644 --- a/netx/net/sourceforge/jnlp/NetxPanel.java +++ b/netx/net/sourceforge/jnlp/NetxPanel.java @@ -72,7 +72,7 @@ public class NetxPanel extends AppletViewerPanel implements SplashController { this.parameters = params; - String uniqueKey = params.getUniqueKey(); + String uniqueKey = params.getUniqueKey(getCodeBase()); synchronized(TGMapMutex) { if (!uKeyToTG.containsKey(uniqueKey)) { ThreadGroup tg = new ThreadGroup(Launcher.mainGroup, this.documentURL.toString()); @@ -199,7 +199,7 @@ public class NetxPanel extends AppletViewerPanel implements SplashController { public ThreadGroup getThreadGroup() { synchronized(TGMapMutex) { - return uKeyToTG.get(parameters.getUniqueKey()); + return uKeyToTG.get(parameters.getUniqueKey(getCodeBase())); } } @@ -209,7 +209,7 @@ public class NetxPanel extends AppletViewerPanel implements SplashController { } // only create a new context if one hasn't already been created for the // applets with this unique key. - if (null == appContextCreated.putIfAbsent(parameters.getUniqueKey(), Boolean.TRUE)) { + if (null == appContextCreated.putIfAbsent(parameters.getUniqueKey(getCodeBase()), Boolean.TRUE)) { SunToolkit.createNewAppContext(); } } |