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

zlib.error: Error -3 while decompressing data: incorrect header check #47

Closed
FracturedCodeIsChanging opened this issue Jul 27, 2015 · 3 comments
Labels

Comments

@FracturedCodeIsChanging

This is what happens when I run start.py:
List count: 0
List count: 20
List count: 40
List count: 60
List count: 80
List count: 100
List count: 120
List count: 140
List count: 160
List count: 180
List count: 200
List count: 220
List count: 240
List count: 260
List count: 280
Exploit length: 26666408
Exploit packet length: 38892
Logged in as *****************
Exception in thread Networking Thread:
Traceback (most recent call last):
File "C:\Python34\lib\threading.py", line 921, in _bootstrap_inner
self.run()
File "C:\Users\Ginna\Downloads\pyCraft-nbt_exploit\minecraft\networking\connec
tion.py", line 195, in run
self.connection.file_object)
File "C:\Users\Ginna\Downloads\pyCraft-nbt_exploit\minecraft\networking\connec
tion.py", line 232, in read_packet
packet_data.read(compressed_size))
zlib.error: Error -3 while decompressing data: incorrect header check

@subdavis
Copy link

I'm seeing this too. Spent quite a while on http://stackoverflow.com/questions/3122145/zlib-error-error-3-while-decompressing-incorrect-header-check to no avail.

Interestingly, I only see this problem with Python3, not with Python2

@joodicator
Copy link
Collaborator

joodicator commented Jun 18, 2016

Fixed by c8b3e7a.

The error was caused when the length of a packet was erroneously read from the underlying socket instead of from the BufferedReader wrapping it, bypassing the buffer of the latter, and corrupting the subsequent data stream. It went unnoticed in Python 2.7 but was exposed in Python 3.

@ammaraskar
Copy link
Owner

This issue was very nicely fixed in particular, I would have never thought it was a py2/3 problem. Again, thank you very much.

@joodicator joodicator added the bug label Jun 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants