diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-21 15:07:22 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-21 20:48:56 +0100 |
commit | 23316f2ef210960f22cba225be3d74e29b3182f4 (patch) | |
tree | d48ae9c7b98e63f8e4ccba90e4ac24fcc5c92d38 /sdext | |
parent | 9752a4261f0707d6767eb0647d0b9be4e3d63952 (diff) |
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.cxx | 1 | ||||
-rw-r--r-- | sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx | 1 |
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); |