Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bzip2::Write mutates payload - critical! #23

Open
maasha opened this issue Sep 26, 2013 · 0 comments
Open

Bzip2::Write mutates payload - critical! #23

maasha opened this issue Sep 26, 2013 · 0 comments

Comments

@maasha
Copy link

maasha commented Sep 26, 2013

Consider the test dataset from issue #22:

bunzip2 the test dataset
bzip2 the test dataset with Bzip2::Write in test1.bz2
bzip2 the test dataset with command line bzip2 in test2.bz2

Notice the huge size difference between test1.bz2 and test2.bz2
Notice that bzcat test1.bz2 | md5sum differs from bzcat test2.bz2 | md5sum

Versions:
Linux orsted 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1 x86_64 GNU/Linux
bzip2, a block-sorting file compressor. Version 1.0.6, 6-Sept-2010.
bzip2-ruby (0.2.7)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant