sc/source/core/data/dpobject.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 4e75f724cc59d457cdd905c68666633e3b2612f4
Author: Eike Rathke <er...@redhat.com>
Date:   Sat Dec 7 00:28:01 2013 +0100

    check string bounds
    
    Change-Id: I92f2dbbe12956ee9432d592851f10bceaa5ce25d

diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index 83532e2..cb107ba 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -1541,7 +1541,7 @@ bool isAtStart(
             while (nStartPos < nListLen && rList[nStartPos] == ' ')
                 ++nStartPos;
 
-            if (rList[nStartPos] == '\'')         // quoted within the 
brackets?
+            if (nStartPos < nListLen && rList[nStartPos] == '\'')         // 
quoted within the brackets?
             {
                 if ( dequote( rList, nStartPos, nQuoteEnd, aDequoted ) )
                 {
@@ -1760,7 +1760,7 @@ bool ScDPObject::ParseFilters(
                     aRemaining = comphelper::string::stripStart(aRemaining, ' 
');
 
                     // field name has to be followed by item name in brackets
-                    if (aRemaining[0] == '[')
+                    if (!aRemaining.isEmpty() && aRemaining[0] == '[')
                     {
                         bHasFieldName = true;
                         // bUsed remains false - still need the item
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to