Index: native-src/shared/archive/inflater.c =================================================================== --- native-src/shared/archive/inflater.c (revision 398842) +++ native-src/shared/archive/inflater.c (working copy) @@ -133,6 +133,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 */