Skip to main content

[truezip-commits] [truezip~v7:6182] Fixed #TRUEZIP-329.

  • From: christian_schlichtherle@...
  • To: commits@...
  • Subject: [truezip-commits] [truezip~v7:6182] Fixed #TRUEZIP-329.
  • Date: Sat, 28 Sep 2013 13:41:58 +0000

Project:    truezip
Repository: v7
Revision:   6182
Author:     christian_schlichtherle
Date:       2013-09-28 13:37:22 UTC
Link:       

Log Message:
------------
Fixed #TRUEZIP-329.


Revisions:
----------
6182


Modified Paths:
---------------
truezip-driver/truezip-driver-zip/src/main/java/de/schlichtherle/truezip/zip/RawZipFile.java


Diffs:
------
diff -r f9b8f6d580e5 -r 032a8ba59274 
truezip-driver/truezip-driver-zip/src/main/java/de/schlichtherle/truezip/zip/RawZipFile.java
--- 
a/truezip-driver/truezip-driver-zip/src/main/java/de/schlichtherle/truezip/zip/RawZipFile.java
      Fri Jul 19 21:25:20 2013 +0200
+++ 
b/truezip-driver/truezip-driver-zip/src/main/java/de/schlichtherle/truezip/zip/RawZipFile.java
      Sat Sep 28 15:37:22 2013 +0200
@@ -992,8 +992,15 @@
         fp += LFH_MIN_LEN
                 + readUShort(lfh, LFH_FILE_NAME_LENGTH_OFF) // file name 
length
                 + readUShort(lfh, LFH_FILE_NAME_LENGTH_OFF + 2); // extra 
field length
-        ReadOnlyFile erof = new EntryReadOnlyFile(
-                fp, entry.getCompressedSize());
+        ReadOnlyFile erof;
+        try {
+            erof = new EntryReadOnlyFile(
+                    fp, entry.getCompressedSize());
+        } catch (IllegalArgumentException ex) {
+            throw (IOException) new ZipException(name +
+                    " (invalid meta data in Local File Header or Central 
Directory Record)"
+                    ).initCause(ex);
+        }
         try {
             if (!process) {
                 assert UNKNOWN != entry.getCrc();






[truezip-commits] [truezip~v7:6182] Fixed #TRUEZIP-329.

christian_schlichtherle 09/28/2013
 
 
Close
loading
Please Confirm
Close