diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-12-09 15:26:59 +0000 |
---|---|---|
committer | jan Iversen <jani@documentfoundation.org> | 2016-12-19 10:02:39 +0100 |
commit | 014394f10a11a1b36f8a2e8a0722ec2fddf74b40 (patch) | |
tree | faf7b65ee7a93253a87389445e7e08752772d64c | |
parent | b2873d0f93637f8242533f3e39959b8360ff61de (diff) |
oss-fuzz we don't want this stream to automatically resize on seeks past end
Change-Id: Ie42b2e173cd3ed9faaf17c3c978227613129fa84
(cherry picked from commit f212bd45a7c7d97fb16380cd9fa7c6abbfb71e05)
(cherry picked from commit b832d7019f7e7499f5fb3da5d5f49ddbf0f35585)
Reviewed-on: https://gerrit.libreoffice.org/31803
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r-- | vcl/source/filter/wmf/winwmf.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/filter/wmf/winwmf.cxx b/vcl/source/filter/wmf/winwmf.cxx index 88ab38fd457a..c4f7e7889666 100644 --- a/vcl/source/filter/wmf/winwmf.cxx +++ b/vcl/source/filter/wmf/winwmf.cxx @@ -1093,7 +1093,7 @@ void WMFReader::ReadRecordParams( sal_uInt16 nFunc ) { // first EMF comment nEMFRecCount = nComRecCount; nEMFSize = nEMFTotalSize; - pEMFStream = o3tl::make_unique<SvMemoryStream>( nEMFSize ); + pEMFStream = o3tl::make_unique<SvMemoryStream>(nEMFSize, 0); } else if( ( nEMFRecCount != nComRecCount ) || ( nEMFSize != nEMFTotalSize ) ) // add additional checks here { |