diff options
-rw-r--r-- | starmath/source/mathml/mathmlattr.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/starmath/source/mathml/mathmlattr.cxx b/starmath/source/mathml/mathmlattr.cxx index ce28ec7836e9..5e54f0d92e3e 100644 --- a/starmath/source/mathml/mathmlattr.cxx +++ b/starmath/source/mathml/mathmlattr.cxx @@ -40,6 +40,7 @@ static std::size_t ParseMathMLUnsignedNumber(std::u16string_view rStr, Fraction& if (validNomDen && (o3tl::checked_multiply(nom, sal_Int64(10), nom) || o3tl::checked_add(nom, sal_Int64(cD - u'0'), nom) + || nom >= std::numeric_limits<sal_Int32>::max() || (nDecimalPoint != std::u16string_view::npos && o3tl::checked_multiply(den, sal_Int64(10), den)))) { |