Compression errors with zlib 1.2.10

Bug #1656049 reported by maksis
This bug report is a duplicate of:  Bug #1656050: Compression errors with zlib 1.2.11. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DC++
New
Undecided
Unassigned

Bug Description

After updating zlib to version 1.2.10, transfers randomly fail because of compression errors. Such errors happening on uploader's side won't reported anywhere, the upload just gets disconnected.

Based on some debugging with AirDC++, the actual location where the error happens in zlib is https://github.com/madler/zlib/blob/master/deflate.c#L595

I'm not sure whether that's a bug in zlib or something intended as there are also breaking changes in version 1.2.10: https://github.com/madler/zlib/issues/190 (avail_out is not originally zero when the call is made)

Setting compression level at https://sourceforge.net/p/dcplusplus/code/ci/default/tree/dcpp/ZUtils.cpp#l59 to a non-zero value seems to help with avoiding the issue.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.