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

Caolán McNamara caolanm at redhat.com
Wed Dec 6 08:56:08 UTC 2017


 starmath/source/mathtype.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 870f23b69b09dc28e3d750373d057477d931fe87
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Dec 5 11:22:58 2017 +0000

    ofz: avoid oom, tmLDIV has only two slots
    
    Change-Id: I6df2ec0790e94008eba6a7d97256440db5a26ac7
    Reviewed-on: https://gerrit.libreoffice.org/45870
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index 085b7cfc452b..11ce178bf6b6 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -1461,7 +1461,7 @@ bool MathType::HandleRecords(int nLevel, sal_uInt8 nSelector,
                                     sMainTerm = rRet;
                                     rRet.clear();
                                 }
-                                else
+                                else if (nPart == 1)
                                 {
                                     sPush += rRet;
                                     rRet = sPush;


More information about the Libreoffice-commits mailing list