diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-04-07 22:48:58 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-04-07 22:49:09 +0200 |
commit | 53494630705692dec31587d746aa84d5d998c62f (patch) | |
tree | c2bc25f675e48f1fd0fd6355139d722fdc9eb486 /svl/source | |
parent | 29339357cfba19e80c3687639fe33e847d3e6f93 (diff) |
Fix Array index "i" is used before limits check
Change-Id: Ie7a4b836db7391f4e625bfeaeab55c2ed4304604
Diffstat (limited to 'svl/source')
-rw-r--r-- | svl/source/numbers/zforscan.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/numbers/zforscan.cxx b/svl/source/numbers/zforscan.cxx index 24bfde33a220..43a4bbc5e3a5 100644 --- a/svl/source/numbers/zforscan.cxx +++ b/svl/source/numbers/zforscan.cxx @@ -1474,8 +1474,8 @@ bool ImpSvNumberformatScan::InsertSymbol( sal_uInt16 & nPos, svt::NfSymbolType e int ImpSvNumberformatScan::FinalScanGetCalendar( sal_Int32& nPos, sal_uInt16& i, sal_uInt16& rAnzResStrings ) { - if ( sStrArray[i][0] == '[' && - i < nAnzStrings-1 && + if ( i < nAnzStrings-1 && + sStrArray[i][0] == '[' && nTypeArray[i+1] == NF_SYMBOLTYPE_STRING && sStrArray[i+1][0] == '~' ) { |