summaryrefslogtreecommitdiffstats
path: root/sdext
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-21 15:07:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-03-21 20:48:56 +0100
commit23316f2ef210960f22cba225be3d74e29b3182f4 (patch)
treed48ae9c7b98e63f8e4ccba90e4ac24fcc5c92d38 /sdext
parentcid#1474207 silence Unchecked return value from library (diff)
downloadcore-23316f2ef210960f22cba225be3d74e29b3182f4.tar.gz
core-23316f2ef210960f22cba225be3d74e29b3182f4.zip
cid#1474243 Uninitialized scalar variable
and cid#1473901 Uninitialized scalar variable Change-Id: I6a1d0784865c1a77eacbe25497b97ea63cf3705c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112849 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/pdfparse/pdfentries.cxx1
-rw-r--r--sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/sdext/source/pdfimport/pdfparse/pdfentries.cxx b/sdext/source/pdfimport/pdfparse/pdfentries.cxx
index 0789268372e4..1e4c861df8dc 100644
--- a/sdext/source/pdfimport/pdfparse/pdfentries.cxx
+++ b/sdext/source/pdfimport/pdfparse/pdfentries.cxx
@@ -727,6 +727,7 @@ static void unzipToBuffer( char* pBegin, unsigned int nLen,
z_stream aZStr;
aZStr.next_in = reinterpret_cast<Bytef *>(pBegin);
aZStr.avail_in = nLen;
+ aZStr.total_out = aZStr.total_in = 0;
aZStr.zalloc = nullptr;
aZStr.zfree = nullptr;
aZStr.opaque = nullptr;
diff --git a/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx b/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx
index 39a1df6f4a76..a6390f0157e9 100644
--- a/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx
@@ -82,6 +82,7 @@ sal_uInt32 PngHelper::deflateBuffer( const Output_t* i_pBuf, size_t i_nLen, Outp
aStream.zalloc = Z_NULL;
aStream.zfree = Z_NULL;
aStream.opaque = Z_NULL;
+ aStream.total_out = aStream.total_in = 0;
if (Z_OK != deflateInit(&aStream, Z_BEST_COMPRESSION))
return 0;
aStream.avail_in = uInt(i_nLen);