aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/runtime/CachedJarFileCallback.java
diff options
context:
space:
mode:
authorJiri Vanek <[email protected]>2013-04-17 14:22:01 +0200
committerJiri Vanek <[email protected]>2013-04-17 14:22:01 +0200
commit72ac500dc654bbc82332712022cca573db0bc3e6 (patch)
tree2c6e9d8702ba39d30f0daad5d00dd9edbfcb5a10 /netx/net/sourceforge/jnlp/runtime/CachedJarFileCallback.java
parent8b462c07f200a80028ffc59027a291837fcf2f1b (diff)
Fixed gifar vulnereability with automated testcase
Diffstat (limited to 'netx/net/sourceforge/jnlp/runtime/CachedJarFileCallback.java')
-rw-r--r--netx/net/sourceforge/jnlp/runtime/CachedJarFileCallback.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/netx/net/sourceforge/jnlp/runtime/CachedJarFileCallback.java b/netx/net/sourceforge/jnlp/runtime/CachedJarFileCallback.java
index 48364df..7824881 100644
--- a/netx/net/sourceforge/jnlp/runtime/CachedJarFileCallback.java
+++ b/netx/net/sourceforge/jnlp/runtime/CachedJarFileCallback.java
@@ -49,7 +49,7 @@ import java.security.PrivilegedActionException;
import java.security.PrivilegedExceptionAction;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
-import java.util.jar.JarFile;
+import net.sourceforge.jnlp.util.JarFile;
import net.sourceforge.jnlp.util.UrlUtils;
@@ -81,7 +81,7 @@ final class CachedJarFileCallback implements URLJarFileCallBack {
}
@Override
- public JarFile retrieve(URL url) throws IOException {
+ public java.util.jar.JarFile retrieve(URL url) throws IOException {
URL localUrl = mapping.get(url);
if (localUrl == null) {
@@ -122,8 +122,8 @@ final class CachedJarFileCallback implements URLJarFileCallBack {
/*
* This method is a copy of URLJarFile.retrieve() without the callback check.
*/
- private JarFile cacheJarFile(URL url) throws IOException {
- JarFile result = null;
+ private java.util.jar.JarFile cacheJarFile(URL url) throws IOException {
+ java.util.jar.JarFile result = null;
final int BUF_SIZE = 2048;
@@ -132,9 +132,9 @@ final class CachedJarFileCallback implements URLJarFileCallBack {
try {
result =
- AccessController.doPrivileged(new PrivilegedExceptionAction<JarFile>() {
+ AccessController.doPrivileged(new PrivilegedExceptionAction<java.util.jar.JarFile>() {
@Override
- public JarFile run() throws IOException {
+ public java.util.jar.JarFile run() throws IOException {
OutputStream out = null;
File tmpFile = null;
try {