[Libreoffice-commits] core.git: starmath/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sun Aug 29 09:47:13 UTC 2021


 starmath/source/mathtype.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5ecc01990dbdd21501d49a1a5a66a2348d0e229b
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Aug 28 10:23:50 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Aug 29 11:46:39 2021 +0200

    ofz: MemorySanitizer: use-of-uninitialized-value
    
    Change-Id: I35210b36a927b96f29d0a07a3cf63e226e4c4453
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121191
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index acdeba5fcfb6..b32ad0c555ec 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -2815,8 +2815,8 @@ void MathType::HandleEmblishments()
 
 void MathType::HandleSetSize()
 {
-    sal_uInt8 nTemp;
-    pS->ReadUChar( nTemp );
+    sal_uInt8 nTemp(0);
+    pS->ReadUChar(nTemp);
     switch (nTemp)
     {
         case 101:


More information about the Libreoffice-commits mailing list