equal
deleted
inserted
replaced
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 |