]> source.dussan.org Git - tigervnc.git/commit
Revert r4498 and fix #3305357 properly. The issue was two-fold: (1) the compress...
authorDRC <dcommander@users.sourceforge.net>
Tue, 9 Aug 2011 11:12:55 +0000 (11:12 +0000)
committerDRC <dcommander@users.sourceforge.net>
Tue, 9 Aug 2011 11:12:55 +0000 (11:12 +0000)
commitf4a341bc85c931e24e27a088f27f19f574b0c455
tree73fc7f4bea4939aace01fdc8fe30390ec73ef7b4
parent754ff598d5c21605ed4dbf02ec938acb168f5dba
Revert r4498 and fix #3305357 properly.  The issue was two-fold:  (1) the compress buffer allocated by the Tight encoder was not large enough, and (2) Zlib 1.2.5 can sometimes call deflate(..., Z_BLOCK) within the body of deflateParams(), so we need to check avail_in after calling checkCompressionLevel() to ensure that there is still data left to compress before we call deflate() again.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4617 3789f03b-4d11-0410-bbf8-ca57d06f2519
common/rdr/ZlibOutStream.cxx
common/rfb/tightEncode.h