Kaydet (Commit) 225fe06a authored tarafından Herbert Dürr's avatar Herbert Dürr

#i123409# prevent invalid iterator dereference in SwTaggedPDFHelper::CheckReopenTag()

Found by: potassium19
Patch by: hdu@apache.org
Review by: orw@apache.org
üst c98566be
...@@ -375,8 +375,9 @@ bool SwTaggedPDFHelper::CheckReopenTag() ...@@ -375,8 +375,9 @@ bool SwTaggedPDFHelper::CheckReopenTag()
if ( pKey ) if ( pKey )
{ {
FrmTagIdMap& rFrmTagIdMap = SwEnhancedPDFExportHelper::GetFrmTagIdMap(); FrmTagIdMap& rFrmTagIdMap = SwEnhancedPDFExportHelper::GetFrmTagIdMap();
const FrmTagIdMap::const_iterator aIter = rFrmTagIdMap.find( pKey ); const FrmTagIdMap::const_iterator aIter = rFrmTagIdMap.find( pKey );
nReopenTag = (*aIter).second; if( aIter != rFrmTagIdMap.end())
nReopenTag = (*aIter).second;
} }
} }
} }
......
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