diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-11-01 15:22:27 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-11-01 15:22:27 +0000 |
commit | 6c2adea68285fe2b063700dbe0f2b0f8d1dd6cef (patch) | |
tree | 1f6e4ba83239ead7441df9fe5a4f5725a7daabda /sc/source/core/data/compressedarray.cxx | |
parent | b12957407da361865d833f6dffdc6c45853825a8 (diff) |
INTEGRATION: CWS dr59_SRC680 (1.8.350); FILE MERGED
2007/10/23 13:37:00 er 1.8.350.1: #i80954# possible heap corruption
Diffstat (limited to 'sc/source/core/data/compressedarray.cxx')
-rw-r--r-- | sc/source/core/data/compressedarray.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/compressedarray.cxx b/sc/source/core/data/compressedarray.cxx index dc279cba50fb..875161eae908 100644 --- a/sc/source/core/data/compressedarray.cxx +++ b/sc/source/core/data/compressedarray.cxx @@ -4,9 +4,9 @@ * * $RCSfile: compressedarray.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: kz $ $Date: 2006-07-21 10:50:30 $ + * last change: $Author: hr $ $Date: 2007-11-01 16:22:27 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -325,7 +325,7 @@ void ScCompressedArray<A,D>::Remove( A nStart, size_t nAccessCount ) // make the algorithm used in SetValue() work correctly, it relies on // the fact that consecutive values actually differ. size_t nRemove; - if (pData[nIndex-1].aValue == pData[nIndex+1].aValue) + if (nIndex > 0 && pData[nIndex-1].aValue == pData[nIndex+1].aValue) { nRemove = 2; --nIndex; |