diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-09-11 11:46:47 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-09-11 14:35:31 +0200 |
commit | 6891347a3d0896918e4aec64c9d255fe6b58163a (patch) | |
tree | 55c529e4233f7fc4ab9797225163aaa58c8606b3 /sc | |
parent | 650773993529aee030a0161d131a361e8e9ab227 (diff) |
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@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xistream.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
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 ); } |