diff options
author | Rüdiger Timm <rt@openoffice.org> | 2007-07-06 09:22:03 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2007-07-06 09:22:03 +0000 |
commit | 9ef4228d9dc8c585d403113c35d938d19a7cd8f0 (patch) | |
tree | 08435ac918b71631ab42c42ca54d3fa6f32d772a | |
parent | ddf7630c2b38787e61a6ca7431642e4b666f1dfe (diff) |
INTEGRATION: CWS oj14 (1.15.30); FILE MERGED
2006/11/08 08:11:33 oj 1.15.30.1: add assertion for length check
-rw-r--r-- | comphelper/source/property/propagg.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/comphelper/source/property/propagg.cxx b/comphelper/source/property/propagg.cxx index 7c3835498acd..c21655694bf6 100644 --- a/comphelper/source/property/propagg.cxx +++ b/comphelper/source/property/propagg.cxx @@ -4,9 +4,9 @@ * * $RCSfile: propagg.cxx,v $ * - * $Revision: 1.15 $ + * $Revision: 1.16 $ * - * last change: $Author: obo $ $Date: 2006-09-17 17:18:10 $ + * last change: $Author: rt $ $Date: 2007-07-06 10:22:03 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -241,6 +241,7 @@ sal_Bool OPropertyArrayAggregationHelper::fillAggregatePropertyInfoByHandle( *_pOriginalHandle = (*i).second.nOriginalHandle; if (_pPropName) { + OSL_ENSURE((*i).second.nPos < m_aProperties.getLength(),"Invalid index for sequence!"); const ::com::sun::star::beans::Property& rProperty = m_aProperties.getConstArray()[(*i).second.nPos]; *_pPropName = rProperty.Name; } |