GNU bug report logs - #37665
Concatenation of gzip compressed bytearray

Previous Next

Package: gzip;

Reported by: Zhu Li <zhu.andrew.li <at> gmail.com>

Date: Tue, 8 Oct 2019 15:52:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37665 in the body.
You can then email your comments to 37665 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gzip <at> gnu.org:
bug#37665; Package gzip. (Tue, 08 Oct 2019 15:52:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Zhu Li <zhu.andrew.li <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gzip <at> gnu.org. (Tue, 08 Oct 2019 15:52:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Zhu Li <zhu.andrew.li <at> gmail.com>
To: bug-gzip <at> gnu.org
Subject: Concatenation of gzip compressed bytearray
Date: Tue, 8 Oct 2019 10:28:49 -0500
[Message part 1 (text/plain, inline)]
Hello there,

Our team has a use case where we want to concatenate gzip-compressed byte
arrays. We do compression with GZIPOutputStream.java with Java 8 and
decompression with GZIPInputStream.java.
In a simple test case I compressed several instances of byte[] with
GZIPOutputStream and output the compressed results to several instances of
byte[], and then put all of them into a ByteBuffer. Then I tried to
decompress the concatenated data in the final ByteBuffer with
GZIPInputStream.
And I found that sometimes this works as expected but other times the last
few instances of input byte[] are ignored by GZIPInputStream(it seems to
get EOF at the end of a compressed byte[], which is not the last compressed
byte[] in the ByteBuffer) I was testing with the default setting.
So does this mean that GZIPInputStream and GZIPOutputStream don't support
such operation by design or is there something we can configure/change for
this to work?

Regards,
Zhu
[Message part 2 (text/html, inline)]

Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Tue, 08 Oct 2019 16:53:02 GMT) Full text and rfc822 format available.

Notification sent to Zhu Li <zhu.andrew.li <at> gmail.com>:
bug acknowledged by developer. (Tue, 08 Oct 2019 16:53:02 GMT) Full text and rfc822 format available.

Message #10 received at 37665-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Zhu Li <zhu.andrew.li <at> gmail.com>
Cc: 37665-done <at> debbugs.gnu.org
Subject: Re: bug#37665: Concatenation of gzip compressed bytearray
Date: Tue, 8 Oct 2019 09:52:31 -0700
On 10/8/19 8:28 AM, Zhu Li wrote:
> does this mean that GZIPInputStream and GZIPOutputStream don't support
> such operation by design

Sorry, but you seem to be writing about some gzip-compatible software, 
not about gzip itself. Please write to whoever maintains that other 
software, instead of to bug-gzip.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 06 Nov 2019 12:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 143 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.