Kaydet (Commit) c46f28ec authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz#4982 Integer-overflow

Change-Id: I429d07962acb372be460bee4e1c2b1e05dcce19b
Reviewed-on: https://gerrit.libreoffice.org/47500Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 9dfd1f62
......@@ -25,6 +25,7 @@
#include <rangeutl.hxx>
#include <unonames.hxx>
#include <o3tl/safeint.hxx>
#include <xmloff/xmlnmspe.hxx>
#include <xmloff/xmltypes.hxx>
#include <xmloff/families.hxx>
......@@ -1530,9 +1531,8 @@ bool XmlScPropHdl_RotateAngle::importXML(
bool bRetval(false);
sal_Int32 nValue;
if (::sax::Converter::convertNumber(nValue, rStrImpValue))
if (::sax::Converter::convertNumber(nValue, rStrImpValue) && !o3tl::checked_multiply<sal_Int32>(nValue, 100, nValue))
{
nValue *= 100;
rValue <<= nValue;
bRetval = true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment