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:
@@ -101,7 +101,7 @@ void XMLIndexChapterInfoEntryContext::startFastElement(
|
|||||||
case XML_ELEMENT(TEXT, XML_OUTLINE_LEVEL):
|
case XML_ELEMENT(TEXT, XML_OUTLINE_LEVEL):
|
||||||
{
|
{
|
||||||
sal_Int32 nTmp;
|
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
|
//control on range is carried out in the UNO level
|
||||||
nOutlineLevel = static_cast<sal_uInt16>(nTmp);
|
nOutlineLevel = static_cast<sal_uInt16>(nTmp);
|
||||||
|
Reference in New Issue
Block a user