diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-10-04 09:10:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-10-04 11:39:47 +0200 |
commit | 93d2d55b1df6bc850d6beecbabf1fb602abe9809 (patch) | |
tree | 236baf69c86da0d563b1cc449a40be172ea0913f /filter | |
parent | 80da4d6d4bfe3607a7fd9641f83ebb49a1886697 (diff) |
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: If6ebf0fb1fa0e3db830ff9d22b1a90446bd3c2d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123039
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/svdfppt.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx index 76b7a8a07701..0bc723e7c379 100644 --- a/filter/source/msfilter/svdfppt.cxx +++ b/filter/source/msfilter/svdfppt.cxx @@ -6659,9 +6659,9 @@ PPTTextObj::PPTTextObj( SvStream& rIn, SdrPowerPointImport& rSdrPowerPointImport return; // TextHeaderAtom is always the first Atom - sal_uInt16 nTmp; - rIn.ReadUInt16( nTmp ); // this number tells us the TxMasterStyleAtom Instance - if ( nTmp > 8 ) + sal_uInt16 nTmp(0); + rIn.ReadUInt16(nTmp); // this number tells us the TxMasterStyleAtom Instance + if (nTmp > 8) nTmp = 4; TSS_Type nInstance = static_cast<TSS_Type>(nTmp); aTextHd.SeekToEndOfRecord( rIn ); |