Kaydet (Commit) 2128f3c9 authored tarafından Miklos Vajna's avatar Miklos Vajna

SwIoSystem::GetFileFilter: prevent out of bounds string access

Change-Id: I0f2ebc9cbad16534b50083cc6d13ee042c2ff869
üst 0dc61dab
......@@ -171,7 +171,7 @@ const SfxFilter* SwIoSystem::GetFileFilter(const OUString& rFileName)
{
while ( pFilter )
{
if( 'C' == pFilter->GetUserData()[0] && IsValidStgFilter( xStor, *pFilter ) )
if( !pFilter->GetUserData().isEmpty() && 'C' == pFilter->GetUserData()[0] && IsValidStgFilter( xStor, *pFilter ) )
{
if (pFilter->IsOwnTemplateFormat())
{
......
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