[Libreoffice-commits] core.git: sc/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sat Sep 11 12:36:04 UTC 2021
sc/source/filter/excel/xistream.cxx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 6891347a3d0896918e4aec64c9d255fe6b58163a
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Sep 11 11:46:47 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat Sep 11 14:35:31 2021 +0200
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: I55d99602316b0f7322244b70a44c4786144054e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121935
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/source/filter/excel/xistream.cxx b/sc/source/filter/excel/xistream.cxx
index 702ae253e143..e4891ff90a1e 100644
--- a/sc/source/filter/excel/xistream.cxx
+++ b/sc/source/filter/excel/xistream.cxx
@@ -635,7 +635,7 @@ sal_Int16 XclImpStream::ReadInt16()
{
if( mbUseDecr )
{
- SVBT16 pnBuffer;
+ SVBT16 pnBuffer{0};
mxDecrypter->Read( mrStrm, pnBuffer, 2 );
nValue = static_cast< sal_Int16 >( SVBT16ToUInt16( pnBuffer ) );
}
@@ -653,7 +653,7 @@ sal_uInt16 XclImpStream::ReaduInt16()
{
if( mbUseDecr )
{
- SVBT16 pnBuffer;
+ SVBT16 pnBuffer{0};
mxDecrypter->Read( mrStrm, pnBuffer, 2 );
nValue = SVBT16ToUInt16( pnBuffer );
}
@@ -671,7 +671,7 @@ sal_Int32 XclImpStream::ReadInt32()
{
if( mbUseDecr )
{
- SVBT32 pnBuffer;
+ SVBT32 pnBuffer{0};
mxDecrypter->Read( mrStrm, pnBuffer, 4 );
nValue = static_cast< sal_Int32 >( SVBT32ToUInt32( pnBuffer ) );
}
@@ -689,7 +689,7 @@ sal_uInt32 XclImpStream::ReaduInt32()
{
if( mbUseDecr )
{
- SVBT32 pnBuffer;
+ SVBT32 pnBuffer{0};
mxDecrypter->Read( mrStrm, pnBuffer, 4 );
nValue = SVBT32ToUInt32( pnBuffer );
}
@@ -707,7 +707,7 @@ double XclImpStream::ReadDouble()
{
if( mbUseDecr )
{
- SVBT64 pnBuffer;
+ SVBT64 pnBuffer{0};
mxDecrypter->Read( mrStrm, pnBuffer, 8 );
nValue = SVBT64ToDouble( pnBuffer );
}
More information about the Libreoffice-commits
mailing list