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

CID#736208 out of bounds access

Change-Id: I7f428106a4d64e2ee8990b2ddbe1a40a9ddd0a3e
üst ebfa1e6c
...@@ -3317,7 +3317,15 @@ void AttributeOutputBase::ParaNumRule( const SwNumRuleItem& rNumRule ) ...@@ -3317,7 +3317,15 @@ void AttributeOutputBase::ParaNumRule( const SwNumRuleItem& rNumRule )
if( pTxtNd->IsCountedInList()) if( pTxtNd->IsCountedInList())
{ {
nLvl = static_cast< sal_uInt8 >(pTxtNd->GetActualListLevel()); int nLevel = pTxtNd->GetActualListLevel();
if (nLevel < 0)
nLevel = 0;
if (nLevel >= MAXLEVEL)
nLevel = MAXLEVEL - 1;
nLvl = static_cast< sal_uInt8 >(nLevel);
if ( pTxtNd->IsListRestart() ) if ( pTxtNd->IsListRestart() )
{ {
......
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