[Libreoffice-commits] core.git: filter/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Oct 4 09:40:50 UTC 2021
filter/source/msfilter/svdfppt.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 93d2d55b1df6bc850d6beecbabf1fb602abe9809
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Oct 4 09:10:18 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Oct 4 11:39:47 2021 +0200
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 at redhat.com>
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 );
More information about the Libreoffice-commits
mailing list