cid#1606710 Overflowed constant

Change-Id: Ic1ed59ffa3d3dd8224e3eaaf2cf98db9fb920a6a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171928
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2024-08-15 21:08:57 +01:00
parent c93eb54c87
commit d9841ab378

View file

@ -101,7 +101,7 @@ void XMLIndexChapterInfoEntryContext::startFastElement(
case XML_ELEMENT(TEXT, XML_OUTLINE_LEVEL):
{
sal_Int32 nTmp;
if (::sax::Converter::convertNumber(nTmp, aIter.toView()))
if (::sax::Converter::convertNumber(nTmp, aIter.toView(), 0, SAL_MAX_UINT16))
{
//control on range is carried out in the UNO level
nOutlineLevel = static_cast<sal_uInt16>(nTmp);