starmath/source/parse.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit a3569e968713598270cf97a1ea4636913cf4b984 Author: Takeshi Abe <t...@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 <c...@libreoffice.org> Reviewed-by: Michael Stahl <mst...@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) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits