diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-10-27 15:40:13 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-10-27 15:53:06 +0100 |
commit | 2128f3c969ff6103511b7d485b9cbb2647427342 (patch) | |
tree | ebf4bcbc724345c332bafcf0c00d948adbfbfaa5 | |
parent | 0dc61dab04507cb4b3698a1fa1ed696a123b9219 (diff) |
SwIoSystem::GetFileFilter: prevent out of bounds string access
Change-Id: I0f2ebc9cbad16534b50083cc6d13ee042c2ff869
-rw-r--r-- | sw/source/filter/basflt/iodetect.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/basflt/iodetect.cxx b/sw/source/filter/basflt/iodetect.cxx index 9fdfe131a295..64da6065df16 100644 --- a/sw/source/filter/basflt/iodetect.cxx +++ b/sw/source/filter/basflt/iodetect.cxx @@ -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()) { |