jdk/src/share/native/com/sun/java/util/jar/pack/zip.cpp
changeset 21278 ef8a3a2a72f2
parent 20797 bb3ea44a7875
child 21428 e408bf58d482
equal deleted inserted replaced
21277:bd380b80f9ea 21278:ef8a3a2a72f2
   465       // skip 8-byte trailer
   465       // skip 8-byte trailer
   466       if (zs.avail_in >= TRAILER_LEN) {
   466       if (zs.avail_in >= TRAILER_LEN) {
   467         zs.avail_in -= TRAILER_LEN;
   467         zs.avail_in -= TRAILER_LEN;
   468       } else {
   468       } else {
   469         // Bug: 5023768,we read past the TRAILER_LEN to see if there is
   469         // Bug: 5023768,we read past the TRAILER_LEN to see if there is
   470         // any extraneous data, as we dont support concatenated .gz
   470         // any extraneous data, as we don't support concatenated .gz
   471         // files just yet.
   471         // files just yet.
   472         int extra = (int) read_gzin_fn(u, inbuf, 1, inbuflen);
   472         int extra = (int) read_gzin_fn(u, inbuf, 1, inbuflen);
   473         zs.avail_in += extra - TRAILER_LEN;
   473         zs.avail_in += extra - TRAILER_LEN;
   474       }
   474       }
   475       // %%% should check final CRC and length here
   475       // %%% should check final CRC and length here