diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-09-11 17:17:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-09-11 22:03:42 +0200 |
commit | 1c5de2934d2e3fa1c7718c57152f471e2b17a575 (patch) | |
tree | 1afad761eeb981feadd66e7c326e325d035eb54d /xmloff | |
parent | f3bf4d62d57f6f0fdce3539a67e0777afcd83e61 (diff) |
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.mcnamara@collabora.com>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |