cid#1500496: Uninitialized pointer read
Values retrieved from SmMlAttribute::setDefaultAttributeValue in case SmMlAttributeValueType::MlMaxsize see https://opengrok.libreoffice.org/xref/core/starmath/source/mathml/attribute.cxx?r=ffaaec23#94 Change-Id: Ie36254157da7ce85223ca71e2070fbd075b52699 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130620 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins
This commit is contained in:
@@ -1049,7 +1049,10 @@ void SmMLImportContext::handleAttributes(const Reference<XFastAttributeList>& aA
|
||||
{
|
||||
SmMlMaxsize aMaxsize;
|
||||
if (IsXMLToken(aIter, XML_INFINITY))
|
||||
{
|
||||
aMaxsize.m_aMaxsize = SmMlAttributeValueMaxsize::MlInfinity;
|
||||
aMaxsize.m_aLengthValue = { SmLengthUnit::MlP, 10000, new OUString(u"10000%") };
|
||||
}
|
||||
else
|
||||
{
|
||||
aMaxsize.m_aMaxsize = SmMlAttributeValueMaxsize::MlFinite;
|
||||
|
||||
Reference in New Issue
Block a user