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

Handle 'Z_STREAM_END' in zlib stream decompression #74

Merged
merged 1 commit into from
Mar 4, 2023

Conversation

gujjwal00
Copy link
Contributor

From zlib manual (https://zlib.net/manual.htm):

"inflate() returns Z_OK if some progress has been made (more input processed or more output produced), Z_STREAM_END if the end of the compressed data has been reached and all uncompressed output has been produced"

I was testing the Extended Clipboard implementation of LibVNCClient with UltraVNC server. Calling inflate() on stream sent by client results in Z_STREAM_END, which ultimately results in server crash.

From zlib manual (https://zlib.net/manual.htm):

"inflate() returns Z_OK if some progress has been made (more input processed or more output produced), 
Z_STREAM_END if the end of the compressed data has been reached and all uncompressed output has been produced"

I was testing the Extended Clipboard implementation of LibVNCClient with UltraVNC server. 
Calling inflate() on stream sent by client results in Z_STREAM_END, which ultimately results in server crash.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants