Join also our Discord channel! Click here.

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: 176
Joined: Wed Mar 02, 2011 10:38 pm
Has thanked: 10 times
Been thanked: 57 times

How reliable is python's parameterless zlib.decompress?

Post by JohnHudeski » Tue Oct 22, 2019 4:07 pm

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: 176
Joined: Wed Mar 02, 2011 10:38 pm
Has thanked: 10 times
Been thanked: 57 times

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

Post by JohnHudeski » Wed Oct 23, 2019 12:07 am

Zlib was not the problem

Post Reply