diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-13 11:08:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-14 14:44:02 +0200 |
commit | 8eabb8839dd81a1055aa0416ab5f3f67c7d3bb29 (patch) | |
tree | dcacbc69cd777b245f15c21067a51a32ea18f50c /package | |
parent | 832c17278c9497de4b4b4a461cf858e8a62420da (diff) |
reserve space in map in ZipFile::readCEN
Change-Id: I4d7764f00b7d05ba5d43a3fb35596f5ec4653da3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134302
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package')
-rw-r--r-- | package/source/zipapi/ZipFile.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/source/zipapi/ZipFile.cxx b/package/source/zipapi/ZipFile.cxx index 98f60bd4ab1d..aff8cce8fd34 100644 --- a/package/source/zipapi/ZipFile.cxx +++ b/package/source/zipapi/ZipFile.cxx @@ -918,6 +918,7 @@ sal_Int32 ZipFile::readCEN() ZipEntry aEntry; sal_Int16 nCommentLen; + aEntries.reserve(nTotal); for (nCount = 0 ; nCount < nTotal; nCount++) { sal_Int32 nTestSig = aMemGrabber.ReadInt32(); |