[Libreoffice-commits] core.git: sfx2/source
Eike Rathke
erack at redhat.com
Thu May 3 22:09:31 UTC 2018
sfx2/source/dialog/filtergrouping.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 8c65f839633f57e57e9f748af87983377b705d24
Author: Eike Rathke <erack at redhat.com>
Date: Fri May 4 00:08:08 2018 +0200
Debug string access out-of-bounds
Change-Id: Ie5afbcdc9818e09261c2458f03ce26da1fefcf49
diff --git a/sfx2/source/dialog/filtergrouping.cxx b/sfx2/source/dialog/filtergrouping.cxx
index 1666e81b258f..fc8104801207 100644
--- a/sfx2/source/dialog/filtergrouping.cxx
+++ b/sfx2/source/dialog/filtergrouping.cxx
@@ -464,7 +464,7 @@ namespace sfx2
{
DBG_ASSERT( !_rWildCard.isEmpty(),
"AppendWildcardToDescriptor::AppendWildcardToDescriptor: invalid wildcard!" );
- DBG_ASSERT( _rWildCard[0] != s_cWildcardSeparator,
+ DBG_ASSERT( !_rWildCard.isEmpty() && _rWildCard[0] != s_cWildcardSeparator,
"AppendWildcardToDescriptor::AppendWildcardToDescriptor: wildcard already separated!" );
aWildCards.reserve( comphelper::string::getTokenCount(_rWildCard, s_cWildcardSeparator) );
More information about the Libreoffice-commits
mailing list