diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-06-03 14:55:52 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-06-03 15:16:27 +0200 |
commit | 864dc65f8fb02348eaf0d83f38591f913342191f (patch) | |
tree | a401f1ceed4a39fe7af2392d217169da5cad64c5 /sc | |
parent | 48cbf49e3c03e64192046211ca42e277bf89eab8 (diff) |
And this one has the same potential to crash
Change-Id: Icd2b2f2c11b7e86a10cae887b96f96a6fbe8a44e
(cherry picked from commit cacc516693b879c08bd3b1963eeed9c38928615f)
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/rangeutl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/rangeutl.cxx b/sc/source/core/tool/rangeutl.cxx index 1fbf0074f3c8..38305f698c71 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 ) |