Kaydet (Commit) 047830de authored tarafından Caolán McNamara's avatar Caolán McNamara

There are three positive return codes from inflate

 #define Z_OK            0
 #define Z_STREAM_END    1
 #define Z_NEED_DICT     2

and we don't support dictionaries, so a Z_NEED_DICT return
creates an infinite loop

Change-Id: Iafb1da594962b3cb456a3223cc6d4122791718c5
üst 08243fba
...@@ -281,7 +281,7 @@ long ZCodec::ReadAsynchron( SvStream& rIStm, sal_uInt8* pData, sal_uIntPtr nSize ...@@ -281,7 +281,7 @@ long ZCodec::ReadAsynchron( SvStream& rIStm, sal_uInt8* pData, sal_uIntPtr nSize
break; break;
} }
} }
while ( (err != Z_STREAM_END) && while ( (err == Z_OK) &&
(PZSTREAM->avail_out != 0) && (PZSTREAM->avail_out != 0) &&
(PZSTREAM->avail_in || mnInToRead) ); (PZSTREAM->avail_in || mnInToRead) );
if ( err == Z_STREAM_END ) if ( err == Z_STREAM_END )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment