summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-11 17:16:23 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-11-11 17:28:23 +0000
commit047830de46fc40629dc9bdf1e8b9f427b6648c36 (patch)
tree40c71475217c09648b1616f02c58c86259d8519d /tools
parent08243fbab68e503241d158525f88c051bffb189e (diff)
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
Diffstat (limited to 'tools')
-rw-r--r--tools/source/zcodec/zcodec.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/zcodec/zcodec.cxx b/tools/source/zcodec/zcodec.cxx
index 224963cf2191..5069b7c7d750 100644
--- a/tools/source/zcodec/zcodec.cxx
+++ b/tools/source/zcodec/zcodec.cxx
@@ -281,7 +281,7 @@ long ZCodec::ReadAsynchron( SvStream& rIStm, sal_uInt8* pData, sal_uIntPtr nSize
break;
}
}
- while ( (err != Z_STREAM_END) &&
+ while ( (err == Z_OK) &&
(PZSTREAM->avail_out != 0) &&
(PZSTREAM->avail_in || mnInToRead) );
if ( err == Z_STREAM_END )