Kaydet (Commit) 836dd78e authored tarafından Markus Mohrhard's avatar Markus Mohrhard

coverity#1000707: out of bounds access

Change-Id: I889ccb08f8f44bd558d95505342af0336dca0b0f
üst 3ece9b4e
......@@ -240,7 +240,7 @@ PropertyMapPtr TableStyleSheetEntry::GetLocalPropertiesFromMask( sal_Int32 nMask
// Get the properties applying according to the mask
PropertyMapPtr pProps( new PropertyMap( ) );
for (size_t i = 0; i < sizeof(aOrderedStyleTable); ++i)
for (size_t i = 0; i < sizeof(aOrderedStyleTable)/sizeof(aOrderedStyleTable[0]); ++i)
{
TblStylePrs::iterator pIt = m_aStyles.find( aOrderedStyleTable[ i ].type );
if ( ( nMask & aOrderedStyleTable[ i ].mask ) && ( pIt != m_aStyles.end( ) ) )
......
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