[Libreoffice-commits] core.git: sc/source
Fridrich Å trba
fridrich.strba at bluewin.ch
Mon Jun 3 05:56:21 PDT 2013
sc/source/core/tool/rangeutl.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit cacc516693b879c08bd3b1963eeed9c38928615f
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date: Mon Jun 3 14:55:52 2013 +0200
And this one has the same potential to crash
Change-Id: Icd2b2f2c11b7e86a10cae887b96f96a6fbe8a44e
diff --git a/sc/source/core/tool/rangeutl.cxx b/sc/source/core/tool/rangeutl.cxx
index 1fbf007..38305f6 100644
--- a/sc/source/core/tool/rangeutl.cxx
+++ b/sc/source/core/tool/rangeutl.cxx
@@ -394,7 +394,7 @@ sal_Int32 ScRangeStringConverter::IndexOfDifferent(
sal_Int32 nIndex = nOffset;
sal_Bool bExitLoop = false;
- while( !bExitLoop && (nIndex < nLength) )
+ while( !bExitLoop && (nIndex >= 0 && nIndex < nLength) )
{
bExitLoop = (rString[ nIndex ] != cSearchChar);
if( !bExitLoop )
More information about the Libreoffice-commits
mailing list