| commit | b832d7019f7e7499f5fb3da5d5f49ddbf0f35585 | [log] |
|---|---|---|
| author | Caolán McNamara <caolanm@redhat.com> | Fri Dec 09 15:26:59 2016 +0000 |
| committer | Caolán McNamara <caolanm@redhat.com> | Fri Dec 09 15:40:20 2016 +0000 |
| tree | 370733c11e62b7712a93286515013d60e6e9c80f | |
| parent | 56261b0bb06e29b71e2cc555086100282e54d62e [diff] |
oss-fuzz we don't want this stream to automatically resize on seeks past end Change-Id: Ie42b2e173cd3ed9faaf17c3c978227613129fa84 (cherry picked from commit f212bd45a7c7d97fb16380cd9fa7c6abbfb71e05)
diff --git a/vcl/source/filter/wmf/winwmf.cxx b/vcl/source/filter/wmf/winwmf.cxx index f1b907f..a93c79a 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 {