Important information: this site is currently scheduled to go offline indefinitely by end of the year.

How reliable is python's parameterless zlib.decompress?

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Post Reply
JohnHudeski
mega-veteran
mega-veteran
Posts: 177
Joined: Wed Mar 02, 2011 10:38 pm
Has thanked: 10 times
Been thanked: 58 times

How reliable is python's parameterless zlib.decompress?

Post by JohnHudeski »

I decompressed a bunch of text files from Backbreaker and there are some strange artifacts like duplicated strings or fragmented.
Basically, it works 90% of the time and then fails catastrophically. I dont know if it is because of my call conventions

Code: Select all

bReader = open(f, "rb")  
outData = zlib.decompress(bReader.read(sz))
PS would it matter if I used a file larger than Compressed (AKA i added extra bits to the compressed data)
JohnHudeski
mega-veteran
mega-veteran
Posts: 177
Joined: Wed Mar 02, 2011 10:38 pm
Has thanked: 10 times
Been thanked: 58 times

Re: How reliable is python's parameterless zlib.decompress?

Post by JohnHudeski »

Zlib was not the problem
Post Reply