sc/source/core/tool/rangeutl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit cacc516693b879c08bd3b1963eeed9c38928615f Author: Fridrich Å trba <fridrich.st...@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 )
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits