harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mloe...@apache.org
Subject svn commit: r428658 - /incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/inflater.c
Date Fri, 04 Aug 2006 08:30:29 GMT
Author: mloenko
Date: Fri Aug  4 01:30:28 2006
New Revision: 428658

URL: http://svn.apache.org/viewvc?rev=428658&view=rev
Log:
applied patch for HARMONY-81
java.util.zip.Inflater.infalate() throws DataFormatException instead of actual number of uncompressed
bytes

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/inflater.c

Modified: incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/inflater.c
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/inflater.c?rev=428658&r1=428657&r2=428658&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/inflater.c
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/inflater.c
Fri Aug  4 01:30:28 2006
@@ -134,6 +134,9 @@
 
   if (err != Z_OK)
     {
+      if(err == Z_STREAM_ERROR) {
+          return 0;
+      }
       if (err == Z_STREAM_END || err == Z_NEED_DICT)
         {
           ((*env)->SetIntField (env, recv, fid, (jint) stream->stream->total_in
- sin + inBytes));      /* Update inRead */



Mime
View raw message