summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-12-09 15:26:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-12-09 15:39:58 +0000
commitf212bd45a7c7d97fb16380cd9fa7c6abbfb71e05 (patch)
tree5fb04a3489fe8adb01f935c21df7b3f421760fe2 /vcl
parent99fd3b2a2759864caf519dfd89173e301b74c24e (diff)
oss-fuzz we don't want this stream to automatically resize on seeks past end
Change-Id: Ie42b2e173cd3ed9faaf17c3c978227613129fa84
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/wmf/winwmf.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/filter/wmf/winwmf.cxx b/vcl/source/filter/wmf/winwmf.cxx
index 757da51ac0bf..883fb24d58c2 100644
--- a/vcl/source/filter/wmf/winwmf.cxx
+++ b/vcl/source/filter/wmf/winwmf.cxx
@@ -1091,7 +1091,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
{