sc/source/ui/app/inputhdl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1db25c330abdc5f3c3b27a6b4029f306ab497af1
Author: Eike Rathke <[email protected]>
Date:   Fri Nov 1 12:47:49 2013 +0100

    fixed out-of-bounds string access when backspacing in a formula
    
    Change-Id: Ic586ce857574e1d28e0e4d754bea0d5251d0efdf

diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index de88da3..eaa05a1 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -967,7 +967,7 @@ void ScInputHandler::ShowTipCursor()
                         findText(*pFormulaDataPara, pFormulaDataPara->end(), 
aText, aNew, false);
                     if (it != pFormulaDataPara->end())
                     {
-                        if( aFormula[ nPosition ] =='(' )
+                        if( nPosition < aFormula.getLength() && aFormula[ 
nPosition ] =='(' )
                         {
                             ShowTipBelow( aNew );
                             bFound = true;
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to