[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - starmath/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Aug 30 09:44:13 UTC 2021
starmath/source/mathtype.cxx | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
New commits:
commit 8de7ba6b3947b8885947749be0d12d650fecd2a6
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Aug 28 22:03:36 2021 +0100
Commit: Michael Stahl <michael.stahl at allotropia.de>
CommitDate: Mon Aug 30 11:43:39 2021 +0200
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: I3ced8d55a7c725e8efb80a49b4fa7e4c84d1be5b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121162
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl at allotropia.de>
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index 43602a491d03..c720116de562 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -614,16 +614,16 @@ static void lcl_AppendDummyTerm(OUStringBuffer &rRet)
void MathType::HandleNudge()
{
- sal_uInt8 nXNudge;
- pS->ReadUChar( nXNudge );
- sal_uInt8 nYNudge;
- pS->ReadUChar( nYNudge );
+ sal_uInt8 nXNudge(0);
+ pS->ReadUChar(nXNudge);
+ sal_uInt8 nYNudge(0);
+ pS->ReadUChar(nYNudge);
if (nXNudge == 128 && nYNudge == 128)
{
- sal_uInt16 nXLongNudge;
- sal_uInt16 nYLongNudge;
- pS->ReadUInt16( nXLongNudge );
- pS->ReadUInt16( nYLongNudge );
+ sal_uInt16 nXLongNudge(0);
+ sal_uInt16 nYLongNudge(0);
+ pS->ReadUInt16(nXLongNudge);
+ pS->ReadUInt16(nYLongNudge);
}
}
More information about the Libreoffice-commits
mailing list