Skip to content

Commit

Permalink
CVE-2023-22899 CVE-2018-1002202 CVE-2022-24615 Bump net.lingala.zip4j…
Browse files Browse the repository at this point in the history
… 2.11.5 (#43)
  • Loading branch information
vharseko authored Jun 25, 2024
1 parent a6dbfe2 commit b2c91dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public interface UpdateManager {
* Get the contents of an archive file as a string
* @param archive
* @param file
* @return
* @return JsonValue
* @throws UpdateException
*/
JsonValue getArchiveFile(Path archive, Path file) throws UpdateException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

import difflib.DiffUtils;
import difflib.Patch;
import net.lingala.zip4j.core.ZipFile;
import net.lingala.zip4j.ZipFile;
import net.lingala.zip4j.exception.ZipException;
import org.apache.commons.io.FileUtils;
import org.forgerock.commons.launcher.OSGiFrameworkService;
Expand Down Expand Up @@ -805,7 +805,7 @@ public JsonValue getLicense(Path archiveFile) throws UpdateException {
} catch (IOException e) {
throw new UpdateException("Unable to load license file.", e);
}
} catch (IOException | ZipException e) {
} catch (IOException e) {
return json(object());
}
}
Expand Down Expand Up @@ -1429,7 +1429,7 @@ Path extractFileToDirectory(File zipFile, Path fileToExtract) throws UpdateExcep
Path tmpDir = Files.createTempDirectory(UUID.randomUUID().toString());
zip.extractFile(fileToExtract.toString(), tmpDir.toString());
return tmpDir.resolve(fileToExtract).getParent();
} catch (IOException | ZipException e) {
} catch (IOException e) {
throw new UpdateException("Unable to load " + fileToExtract + ".", e);
}
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@
<dependency>
<groupId>net.lingala.zip4j</groupId>
<artifactId>zip4j</artifactId>
<version>1.3.2</version>
<version>2.11.5</version>
</dependency>

<dependency>
Expand Down

0 comments on commit b2c91dd

Please sign in to comment.