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

Takeshi Abe tabe at fixedpoint.jp
Fri Apr 15 10:53:24 UTC 2016


 starmath/source/parse.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit a3569e968713598270cf97a1ea4636913cf4b984
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Thu Apr 14 17:34:13 2016 +0900

    starmath: Fix bounds checking
    
    Change-Id: I6b7eae01838eaf8138f777c0a9e84a3ad9f97082
    Reviewed-on: https://gerrit.libreoffice.org/24078
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx
index 90dfb28..9b3a785 100644
--- a/starmath/source/parse.cxx
+++ b/starmath/source/parse.cxx
@@ -1247,8 +1247,7 @@ void SmParser::DoSubSup(sal_uLong nActiveGroup)
                 SAL_WARN( "starmath", "unknown case");
         }
         nIndex++;
-        OSL_ENSURE(1 <= nIndex  &&  nIndex <= 1 + SUBSUP_NUM_ENTRIES,
-                   "SmParser::Power() : sub-/supscript index falsch");
+        assert(1 <= nIndex  &&  nIndex <= SUBSUP_NUM_ENTRIES);
 
         // set sub-/supscript if not already done
         if (aSubNodes[nIndex] != nullptr)


More information about the Libreoffice-commits mailing list