[Libreoffice-commits] core.git: vcl/source

Caolán McNamara caolanm at redhat.com
Fri Dec 9 15:40:28 UTC 2016


 vcl/source/filter/wmf/winwmf.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f212bd45a7c7d97fb16380cd9fa7c6abbfb71e05
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Dec 9 15:26:59 2016 +0000

    oss-fuzz we don't want this stream to automatically resize on seeks past end
    
    Change-Id: Ie42b2e173cd3ed9faaf17c3c978227613129fa84

diff --git a/vcl/source/filter/wmf/winwmf.cxx b/vcl/source/filter/wmf/winwmf.cxx
index 757da51..883fb24 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
                             {


More information about the Libreoffice-commits mailing list