xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 1c5de2934d2e3fa1c7718c57152f471e2b17a575 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Wed Sep 11 17:17:52 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Wed Sep 11 22:03:42 2024 +0200 cid#1608244 Overflowed constant Change-Id: I0af85988e04b479b7dae5d68a97bdc41332e9d7e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173227 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx b/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx index 3b2b20315961..a9657038c7f0 100644 --- a/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx +++ b/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx @@ -176,7 +176,7 @@ void XMLFootnoteConfigurationImportContext::SetAttribute( sal_Int32 nElement, case XML_ELEMENT(TEXT, XML_OFFSET): // for backwards compatibility with SRC630 & earlier { sal_Int32 nTmp; - if (::sax::Converter::convertNumber(nTmp, rValue)) + if (::sax::Converter::convertNumber(nTmp, rValue, 0, SAL_MAX_UINT16)) { nOffset = static_cast<sal_uInt16>(nTmp); }