sc/source/filter/excel/excimp8.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 80652a80da6f86974a2ce0b0367d27a5e797b85d Author: Eike Rathke <er...@redhat.com> Date: Fri Mar 21 18:57:24 2014 +0100 always resize vector, reserve is just that Change-Id: I6e6c54e5e6ee87039b8337258bb78da2f0201d06 diff --git a/sc/source/filter/excel/excimp8.cxx b/sc/source/filter/excel/excimp8.cxx index 2a52df8..75bc1bb 100644 --- a/sc/source/filter/excel/excimp8.cxx +++ b/sc/source/filter/excel/excimp8.cxx @@ -377,8 +377,7 @@ void ImportExcel8::Feat( void ) // TODO: could here be some sanity check applied to not allocate 4GB? aProt.maSecurityDescriptor.reserve( nCbSD); sal_Size nRead = aIn.Read( &aProt.maSecurityDescriptor.front(), nCbSD); - if (nRead != nCbSD) - aProt.maSecurityDescriptor.resize( nRead); + aProt.maSecurityDescriptor.resize( nRead); } GetSheetProtectBuffer().AppendEnhancedProtection( aProt, GetCurrScTab() ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits